From 9b616e2411e5700f12ec082e5776f7fffc88397e Mon Sep 17 00:00:00 2001 From: Steve Howell Date: Sat, 2 Mar 2019 15:21:53 +0000 Subject: [PATCH] css: Use more specific selectors for sidebar icons. This paves the way to tweak chevron geometry on an individual basis without accidentally breaking other stuff. It's also more self-documenting CSS. --- static/styles/left-sidebar.scss | 6 ++++-- static/styles/right-sidebar.scss | 6 ++++++ 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/static/styles/left-sidebar.scss b/static/styles/left-sidebar.scss index 2f89cfa060..645890f7be 100644 --- a/static/styles/left-sidebar.scss +++ b/static/styles/left-sidebar.scss @@ -241,9 +241,11 @@ a.conversation-partners:hover { text-decoration: underline; } -ul.filters i { +.filter-icon i, +.all-messages-arrow i, +.stream-sidebar-arrow i, +.topic-sidebar-arrow i { padding-right: 0.25em; - /* Make filter icons the same width so labels line up. */ display: inline-block; width: 13px; } diff --git a/static/styles/right-sidebar.scss b/static/styles/right-sidebar.scss index be2457c6d1..d5953f13cc 100644 --- a/static/styles/right-sidebar.scss +++ b/static/styles/right-sidebar.scss @@ -57,6 +57,12 @@ display: none; } +.user-list-arrow i { + padding-right: 0.25em; + display: inline-block; + width: 13px; +} + #user_presences li:hover .user-list-arrow { display: inline; cursor: pointer;