/* Copyright 2015 Sam Hewitt. * * This file is part of the Paper GTK theme. * * The Paper GTK theme is free software: you can redistribute it * and/or modify it under the terms of the GNU General Public License as * published by the Free Software Foundation, either version 3 of the * License, or (at your option) any later version. * * The Paper GTK theme is distributed in the hope that it will be * useful, but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General * Public License for more details. * * You should have received a copy of the GNU General Public License along * with the Paper GTK theme. If not, see http://www.gnu.org/licenses/. */ /******** * Menu * ********/ .menu { box-shadow: 0 2px 3px 2px @menu_shadow, inset 0 1px 0 0 rgba(255,255,255,0.1); } .content-view .menu, .context-menu, .menu, .popup { padding: 4px 0; border-radius: 2px; border-image: none; background-color: @background; color: @text; } /*Context Menu*/ .context-menu { font: initial; box-shadow: 0 2px 3px 2px @menu_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: @text; } /* Menu Item */ .menuitem, .menu .menuitem, .popup .menuitem { padding: 6px 4px; border:none; -GtkMenuItem-arrow-scaling: 0.5; -gtk-icon-style: symbolic; } /* Active */ .menuitem:active, .menu .menuitem:active, .popup .menuitem:active { background-color: @selection; color: @selection_foreground; -gtk-icon-style: symbolic; } /* Hover*/ .menuitem:hover, .menu .menuitem:hover, .popup .menuitem:hover { background-color: @selection; color: @selection_foreground; -gtk-icon-style: symbolic; } .menuitem:backdrop, .menu .menuitem:backdrop { box-shadow: none; border: none; } .menuitem:insensitive, .menu .menuitem:insensitive { box-shadow: none; color: @insensitive_text; border: none; } /* Arrows */ .menu .menuitem.arrow { color: @text; -GtkComboBox-arrow-scaling: 0.5; } .menu .menuitem.arrow { -gtk-icon-source: -gtk-icontheme("pan-end-symbolic"); } .menu .menuitem.arrow:dir(rtl) { -gtk-icon-source: -gtk-icontheme("pan-end-symbolic-rtl"); } /* Separator color */ .menuitem.separator { padding-left: 2px; padding-right: 2px; border: none; color: @border; -GtkMenuItem-horizontal-padding: 0; -GtkWidget-separator-height: 1; } .menuitem .entry { border: none; background-color: @base; background-image: none; } .menuitem .entry:active, .menuitem .entry:focus { border: none; } /* Accelerators */ .menuitem .accelerator, .menuitem .accelerator:insensitive { background: none; } .menuitem .accelerator:hover, .menuitem .accelerator:active { background: none; } /* Menu Text */ .menuitem GtkLabel { padding-left: 2px; padding-right: 2px; color: @text; } .menu .menuitem GtkLabel, .popup .menuitem GtkLabel { padding-left: 6px; } /* Menu Image */ .menuitem GtkImage { padding-left: 2px; padding-right: 2px; color: @text; } .menu .menuitem GtkImage, .popup .menuitem GtkImage { padding-left: 6px; } /* Something is utterly broken where I've had to do this ugly bit of styling. */