From 467564eb8294c2a2fef2dd9f4156ec5dbe4380b6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9gis=20Hanol?= Date: Wed, 24 Aug 2016 22:04:30 +0200 Subject: [PATCH] fix unread/new badge in /categories page --- .../stylesheets/common/components/badges.css.scss | 2 +- app/assets/stylesheets/desktop/category-list.scss | 15 +++++++++++++-- 2 files changed, 14 insertions(+), 3 deletions(-) diff --git a/app/assets/stylesheets/common/components/badges.css.scss b/app/assets/stylesheets/common/components/badges.css.scss index 77330e382c4..ed145348943 100644 --- a/app/assets/stylesheets/common/components/badges.css.scss +++ b/app/assets/stylesheets/common/components/badges.css.scss @@ -54,7 +54,7 @@ &.bullet { //bullet category style display: inline-flex; align-items: baseline; - margin-right: 10px; + margin-right: 5px; font-size: 12px; line-height: 15px; diff --git a/app/assets/stylesheets/desktop/category-list.scss b/app/assets/stylesheets/desktop/category-list.scss index b089f41ce65..30b570a59ea 100644 --- a/app/assets/stylesheets/desktop/category-list.scss +++ b/app/assets/stylesheets/desktop/category-list.scss @@ -25,6 +25,12 @@ width: 45%; } + .topics .badge-notification, + .category .badge-notification { + background-color: transparent; + color: dark-light-choose(scale-color($primary, $lightness: 50%), scale-color($secondary, $lightness: 40%)); + } + .topics { width: 80px; text-align: right; @@ -37,8 +43,6 @@ } .badge-notification { display: block; - background-color: transparent; - color: dark-light-choose(scale-color($primary, $lightness: 50%), scale-color($secondary, $lightness: 40%)); text-align: right; padding-right: 0; margin-top: 5px; @@ -50,6 +54,13 @@ margin-top: 10px; } + .subcategories { + .badge-notification.new-posts { + padding: 0; + margin: 0 5px 0 0; + } + } + .featured-topic { margin: 10px 0 0;