From 1fbc5c1cfbf5ad41960c2c9e5e48ee54d323f081 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thibault=20Delavall=C3=A9e?= Date: Thu, 15 May 2014 11:38:00 +0200 Subject: [PATCH] [FIX] website_forum: fixed issues with images in question / answers, now limited in width + auto height. Improved rule for img-avatar to avoid being overriden by the default img rule. --- .../static/src/css/website_forum.css | 19 ++++++++++++++----- .../static/src/css/website_forum.sass | 17 +++++++++++++---- 2 files changed, 27 insertions(+), 9 deletions(-) diff --git a/addons/website_forum/static/src/css/website_forum.css b/addons/website_forum/static/src/css/website_forum.css index 75befd62b1c..54a7f47380f 100644 --- a/addons/website_forum/static/src/css/website_forum.css +++ b/addons/website_forum/static/src/css/website_forum.css @@ -24,16 +24,25 @@ .question .badge-active { background-color: #428bca; } +.question img { + max-width: 600px; + height: auto !important; +} + +.forum_answer img { + max-width: 600px; + height: auto !important; +} + +img.img-avatar { + max-width: 50px; + margin-right: 10px; +} .oe_grey { background-color: #eeeeee; } -.img-avatar { - max-width: 50px; - margin-right: 10px; -} - .badge-gold { color: #ffcc00; } diff --git a/addons/website_forum/static/src/css/website_forum.sass b/addons/website_forum/static/src/css/website_forum.sass index d800d293de8..4a16f48e77e 100644 --- a/addons/website_forum/static/src/css/website_forum.sass +++ b/addons/website_forum/static/src/css/website_forum.sass @@ -19,14 +19,23 @@ margin-left: 4px .badge-active background-color: #428bca + img + max-width: 600px + height: auto !important + +.forum_answer + img + max-width: 600px + height: auto !important + +img.img-avatar + max-width: 50px + margin-right: 10px + .oe_grey background-color: #eeeeee -.img-avatar - max-width: 50px - margin-right: 10px - .badge-gold color: #ffcc00