From ef34e5827e4988f249c64c3aa9871a64583cf199 Mon Sep 17 00:00:00 2001 From: Nicolas Lempereur Date: Fri, 8 May 2015 14:50:21 +0200 Subject: [PATCH] [FIX] website_forum: css in case of empty title If the title of a thread was empty, some floating used in the post list caused an appearance issue. opw-634687 --- .../static/src/css/website_forum.css | 103 ++++++++++++------ .../static/src/css/website_forum.sass | 3 + 2 files changed, 71 insertions(+), 35 deletions(-) diff --git a/addons/website_forum/static/src/css/website_forum.css b/addons/website_forum/static/src/css/website_forum.css index 79fd7dd330c..38f9f102f0e 100644 --- a/addons/website_forum/static/src/css/website_forum.css +++ b/addons/website_forum/static/src/css/website_forum.css @@ -1,103 +1,136 @@ .vote { min-width: 38px; - margin-right: 12px; } - .vote .vote_count { - font-size: 160%; - font-weight: bold; - line-height: 12px; } - .vote .vote_up, .vote .vote_down { - font-size: 130%; } + margin-right: 12px; +} +.vote .vote_count { + font-size: 160%; + font-weight: bold; + line-height: 12px; +} +.vote .vote_up, .vote .vote_down { + font-size: 130%; +} .author-box { min-width: 200px; padding: 4px; - background-color: whitesmoke; } + background-color: #f5f5f5; +} .question-block { - margin-left: 50px; } + margin-left: 50px; +} + +.question { + clear: left; +} .question .question-name { - font-size: 150%; } + font-size: 150%; +} .question .badge { - background-color: #cccccc; - margin-left: 4px; } + background-color: #ccc; + margin-left: 4px; +} .question .badge-active { - background-color: #428bca; } + background-color: #428bca; +} .question img { max-width: 600px; - height: auto !important; } + height: auto !important; +} .forum_answer img { max-width: 600px; - height: auto !important; } + height: auto !important; +} img.img-avatar { max-height: 40px; - margin-right: 10px; } + margin-right: 10px; +} .oe_grey { - background-color: #eeeeee; } + background-color: #eeeeee; +} .badge-gold { - color: #ffcc00; } + color: #ffcc00; +} .badge-silver { - color: #cccccc; } + color: #cccccc; +} .badge-bronze { - color: #eea91e; } + color: #eea91e; +} .oe_answer_true { - color: #3c763d; } + color: #3c763d; +} .oe_answer_false { - color: #bbbbbb; } + color: #bbbbbb; +} .favourite_question { - color: #bbbbbb !important; } + color: #bbbbbb !important; +} .forum_favourite_question { - color: #ffcc00 !important; } + color: #ffcc00 !important; +} a.no-decoration { cursor: pointer; - text-decoration: none !important; } + text-decoration: none !important; +} .faq-question:hover { text-decoration: none !important; - color: #428bca; } + color: #428bca; +} .oe_comment_grey { - background-color: whitesmoke; - padding: 4px; } + background-color: #f5f5f5; + padding: 4px; +} .close.comment_delete { - font-size: 16px; } + font-size: 16px; +} .country_flag { max-height: 16px; display: inline-block; - margin-left: 2px; } + margin-left: 2px; +} .tag_text .text-core .text-wrap textarea, .tag_text .text-core .text-wrap input, .tag_text .text-core .text-wrap .text-dropdown, .tag_text .text-core .text-wrap .text-prompt { - font: 1.2em "Helvetica Neue", Helvetica, Arial, sans-serif !important; } + font: 1.2em "Helvetica Neue", Helvetica, Arial, sans-serif !important; +} .tag_text .text-core .text-wrap .text-tags .text-tag .text-button { font: 1.2em "Helvetica Neue", Helvetica, Arial, sans-serif !important; - height: 1.2em !important; } + height: 1.2em !important; +} .oe_forum_alert { position: absolute; margin-top: -30px; margin-left: 90px; width: 300px; - z-index: 9999; } + z-index: 9999; +} .oe_forum_email_required { position: absolute; margin-top: 155px; margin-left: 500px; margin-right: 100px; - z-index: 5; } + z-index: 5; +} button.btn-link.text-muted { - color: #999999; } + color: #999; +} diff --git a/addons/website_forum/static/src/css/website_forum.sass b/addons/website_forum/static/src/css/website_forum.sass index 8ade74975ea..4eb0c786d13 100644 --- a/addons/website_forum/static/src/css/website_forum.sass +++ b/addons/website_forum/static/src/css/website_forum.sass @@ -16,6 +16,9 @@ .question-block margin-left: 50px +.question + clear: left + .question .question-name font-size: 150%