From d99b0cf7f552d1f6766930fd88f2c84986fe735f Mon Sep 17 00:00:00 2001 From: shubhamgupta2956 Date: Thu, 19 Mar 2020 19:31:07 +0530 Subject: [PATCH] css: Use SCSS nesting for '.hashtag' in left-sidebar.scss --- static/styles/left-sidebar.scss | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/static/styles/left-sidebar.scss b/static/styles/left-sidebar.scss index 00f64b293f..a8c130ebe1 100644 --- a/static/styles/left-sidebar.scss +++ b/static/styles/left-sidebar.scss @@ -12,9 +12,15 @@ $topic_indent: calc($far_left_gutter_size + $left_col_size + 4px); display: none; } -.hashtag:empty::after { - font-size: 18px; - font-weight: 800; +.hashtag { + &:empty { + &::after { + content: "#"; + line-height: 0; + font-size: 18px; + font-weight: 800; + } + } } .stream-privacy { @@ -73,11 +79,6 @@ li.show-more-topics { margin-right: 10px; } -.hashtag:empty::after { - content: "#"; - line-height: 0; -} - .tooltip { max-width: 18em; }