Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
refactor: Extract pseudoclass based tags out of span in tab_bar.
YashRE4294746977ad17
diff --git a/static/styles/zulip.scss b/static/styles/zulip.scssindex 96c1bfaa622..124f6235341 100644--- a/static/styles/zulip.scss+++ b/static/styles/zulip.scss@@ -1482,27 +1482,7 @@ div.focused_table {@media (max-width: 500px) {padding: 7px 3.5px; // based on having ~41.66% decrease}- &:not(.search_closed):not(.sub_count):not(.narrow_description) {- flex-shrink: 1;- overflow: hidden;- }- &:not(.stream) {- text-overflow: ellipsis;- }- &:nth-last-child(2) {- flex-grow: 1;- }- // We extend the clickable area for the search_closed icon over the- // 2nd last navbar element for better design (user convenience) this- // selector makes it so mousing over that element also gives the user- // a visual cue about the results of clicking the element- &:nth-last-child(2) {- cursor: pointer;- &:hover + .search_closed {- color: hsl(0, 0%, 0%);- }- }i {margin-right: 3px;}@@ -1603,6 +1583,30 @@ div.focused_table {padding: 5px 15px 0px 0px;}}++ > :not(.search_closed):not(.sub_count):not(.narrow_description) {+ flex-shrink: 1;+ overflow: hidden;+ }++ > :not(.stream) {+ text-overflow: ellipsis;+ }++ > :nth-last-child(2) {+ flex-grow: 1;+ }++ // We extend the clickable area for the search_closed icon over the+ // 2nd last navbar element for better design (user convenience) this+ // selector makes it so mousing over that element also gives the user+ // a visual cue about the results of clicking the element+ > :nth-last-child(2) {+ cursor: pointer;+ &:hover + .search_closed {+ color: hsl(0, 0%, 0%);+ }+ }}}