From d69da482a4fd5b647fcf40b0f49aa4286a99debf Mon Sep 17 00:00:00 2001 From: igoradamenko Date: Fri, 21 Dec 2018 01:26:36 +0200 Subject: [PATCH] fix admin's username color --- .../_view/_admin/comment_view_admin.scss | 8 +++-- .../_view/_preview/comment_view_preview.scss | 34 +++++++++++-------- 2 files changed, 25 insertions(+), 17 deletions(-) diff --git a/web/app/components/comment/_view/_admin/comment_view_admin.scss b/web/app/components/comment/_view/_admin/comment_view_admin.scss index 17221e1e..f9c15152 100644 --- a/web/app/components/comment/_view/_admin/comment_view_admin.scss +++ b/web/app/components/comment/_view/_admin/comment_view_admin.scss @@ -1,5 +1,9 @@ .comment_view_admin { - .comment__username { - color: #0e7e9d; + &, + &.comment_theme_light, + &.comment_theme_dark { + .comment__username { + color: #0e7e9d; + } } } diff --git a/web/app/components/comment/_view/_preview/comment_view_preview.scss b/web/app/components/comment/_view/_preview/comment_view_preview.scss index a43eaf1b..82968fcb 100644 --- a/web/app/components/comment/_view/_preview/comment_view_preview.scss +++ b/web/app/components/comment/_view/_preview/comment_view_preview.scss @@ -1,22 +1,26 @@ .comment_view_preview { - font-size: 14px; - padding-bottom: 0; + &, + &.comment_theme_light, + &.comment_theme_dark { + font-size: 14px; + padding-bottom: 0; - .comment__username { - color: #0aa; - } + .comment__username { + color: #0aa; + } - .comment__info { - display: inline; - padding-right: 0; + .comment__info { + display: inline; + padding-right: 0; - &::after { - content: ' '; - color: #777; + &::after { + content: ' '; + color: #777; + } + } + + .comment__text { + display: inline; } } - - .comment__text { - display: inline; - } }