Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

navbar: Refactor >:nth-last-child(2) style to use scss nesting.

YashRE42437b9a1a905d
diff --git a/static/styles/zulip.scss b/static/styles/zulip.scss
index 4be6aebda8d..51f428871a1 100644
--- a/static/styles/zulip.scss
+++ b/static/styles/zulip.scss
@@ -1618,13 +1618,11 @@ div.focused_table {
// elements take up the entirety of the white space.
> :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) {
+ // 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
cursor: pointer;
&:hover + .search_closed {
color: hsl(0, 0%, 0%);