Adwaita: fix up submenus again

- move menubar section under more generic popover.menu
  rather than resort to specificity dir(ltr) hacks
This commit is contained in:
Jakub Steiner
2020-11-16 19:48:11 +01:00
parent 4befd13744
commit 47e49acc7d

View File

@@ -4134,35 +4134,9 @@ popover.entry-completion > contents {
padding: 0;
}
// initial styling for popover menu and bar
menubar {
padding: 0px;
box-shadow: inset 0 -1px transparentize(black, 0.9);
> item {
min-height: 16px;
padding: 4px 8px;
&:selected { //Seems like it :hover even with keyboard focus
box-shadow: inset 0 -3px $selected_bg_color;
color: $link_color;
}
&:disabled {
color: $insensitive_fg_color;
box-shadow: none;
}
}
& > item popover.menu.background > contents {
padding: 0;
}
//nested submenus
& > item popover.menu.background popover.menu.background > contents {
margin: 0;
border-radius: $popover_radius; //including top
}
}
/**********************
* Popover Base Menus *
**********************/
$_menu-padding: 12px;
@@ -4263,6 +4237,39 @@ popover.menu {
}
}
// initial styling for popover menu and bar
menubar {
padding: 0px;
box-shadow: inset 0 -1px transparentize(black, 0.9);
> item {
min-height: 16px;
padding: 4px 8px;
&:selected { //Seems like it :hover even with keyboard focus
box-shadow: inset 0 -3px $selected_bg_color;
color: $link_color;
}
&:disabled {
color: $insensitive_fg_color;
box-shadow: none;
}
}
& > item popover.menu.background > contents {
padding: 0;
}
//nested submenus
& > item popover.menu popover.menu {
padding: 0 0 4px 0;
}
& > item popover.menu.background popover.menu.background > contents {
margin: 0;
border-radius: $popover_radius; //including top
}
}
statusbar {
padding: 6px 10px 6px 10px;
}