some menu fixes

This commit is contained in:
Sam Hewitt 2016-03-16 20:49:21 -04:00
parent c430e479d2
commit 06ce219c6e
1 changed files with 10 additions and 49 deletions

View File

@ -20,46 +20,20 @@
* Menu * * Menu *
********/ ********/
.menu {
padding: 4px 0;
border-radius: 4px;
box-shadow: 0 2px 3px 2px @shadow,
inset 0 1px 0 0 rgba(255,255,255,0.1);
}
.content-view .menu, .content-view .menu,
.context-menu, .context-menu,
.menu, .menu,
.popup { .popup {
border-radius: 2px; padding: 4px 0;
border-image: none; border-radius: 4px;
box-shadow: 0 2px 4px 0 alpha(#000,0.1),
inset 0 1px 0 0 alpha(#fff,0.1);
background-color: @background; background-color: @background;
color: @text; color: @text;
} }
/*Context Menu*/
.context-menu {
font: initial;
box-shadow: 0 2px 3px 2px @shadow;
}
.content-view .menu {
padding: 0 1px;
background-color: @base;
background-image: none;
}
.content-view .menu .menuitem:active,
.content-view .menu .menuitem:hover {
background-color: @selection;
color: @selection_foreground;
}
/* Menu Item */ /* Menu Item */
.menuitem, .menuitem {
.menu .menuitem,
.popup .menuitem {
border:none; border:none;
padding: 8px 4px; padding: 8px 4px;
@ -68,24 +42,19 @@
} }
/* Active */ /* Active */
.menuitem:active, .menuitem:active {
.menu .menuitem:active,
.popup .menuitem:active {
background-color: @selection; background-color: @selection;
color: @selection_foreground; color: @selection_foreground;
-gtk-icon-style: symbolic; -gtk-icon-style: symbolic;
} }
/* Hover*/ /* Hover*/
.menuitem:hover, .menuitem:hover {
.menu .menuitem:hover,
.popup .menuitem:hover {
background-color: @selection; background-color: @selection;
color: @selection_foreground; color: @selection_foreground;
-gtk-icon-style: symbolic; -gtk-icon-style: symbolic;
} }
.menuitem:backdrop, .menuitem:backdrop,
.menu .menuitem:backdrop { .menu .menuitem:backdrop {
box-shadow: none; box-shadow: none;
@ -114,8 +83,6 @@
/* Separator color */ /* Separator color */
.menuitem.separator { .menuitem.separator {
padding-left: 2px;
padding-right: 2px;
border: none; border: none;
color: @border; color: @border;
-GtkMenuItem-horizontal-padding: 0; -GtkMenuItem-horizontal-padding: 0;
@ -174,13 +141,7 @@
color: @text; color: @text;
} }
.menuitem:hover GtkImage { .menuitem:hover GtkImage,
.menu .menuitem:hover GtkImage {
color: @selection_foreground; color: @selection_foreground;
} }
.menu .menuitem GtkImage,
.popup .menuitem GtkImage {
padding-left: 6px;
}
/* Something is utterly broken where I've had to do this ugly bit of styling. */