Skip to content

Commit 74d01b4

Browse files
committed
vertical context navigation: Simplify styles
This removes bunch of magic numbers and rules that aren't needed anymore
1 parent 7082fc7 commit 74d01b4

File tree

1 file changed

+5
-8
lines changed

1 file changed

+5
-8
lines changed

chrome/vertical_context_navigation.css

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ See the above repository for updates as well as full license text. */
1111
}
1212
scrollbox[orient="vertical"]{
1313
display: var(--uc-popup-display,inherit);
14-
grid-template-columns: 38px 1fr;
14+
grid-template-columns: auto 1fr;
1515
grid-template-rows: 0;
1616
}
1717

@@ -26,14 +26,11 @@ scrollbox[orient="vertical"]::before{
2626
flex-direction: column !important;
2727
grid-area: 1 / 1 / auto / 1;
2828
min-width: unset !important;
29-
margin-top: -3px;
3029
align-items: flex-start;
3130
}
32-
#context-navigation > .menuitem-iconic{ min-height: 38px; width: unset !important; }
33-
#context-navigation > .menuitem-iconic[_moz-menuactive="true"] > .menu-iconic-left > .menu-iconic-icon{
34-
border-radius: calc(var(--panel-border-radius) / 2) !important;
31+
#context-navigation > .menuitem-iconic{ width: unset !important; }
32+
#context-navigation .menuitem-iconic > .menu-iconic-left > .menu-iconic-icon{
33+
width: auto !important;
3534
}
36-
#context-navigation > .menuitem-iconic > .menu-iconic-left{ margin: 0 !important; padding: 0 !important; }
3735
#context-sep-navigation{ display: none }
38-
#context-navigation ~ * { grid-area: auto / 2 / auto / 2; }
39-
#context-navigation[hidden] ~ *{ margin-inline-start: -38px; }
36+
#context-navigation ~ * { grid-area: auto / 2 / auto / 2; }

0 commit comments

Comments
 (0)