[gnome-shell-sass] theme: Style .selected menu items instead of :focus/:hover



commit a84637bf55bca3b515bc5602cf02ec48b8450dfd
Author: Florian Müllner <fmuellner gnome org>
Date:   Wed Mar 11 19:17:45 2015 +0100

    theme: Style .selected menu items instead of :focus/:hover
    
    The .selected style class indicates the "active" menu item, which
    is generally the last hovered or focused one (whichever happened
    last). Styling that instead of :focus and :hover directly guarantees
    that only a single item will be selected at a time, which removes
    ambiguity and matches the behavior of GTK+ menus.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=745246

 _common.scss |    6 +-----
 1 files changed, 1 insertions(+), 5 deletions(-)
---
diff --git a/_common.scss b/_common.scss
index 9bce5bb..ce5996e 100644
--- a/_common.scss
+++ b/_common.scss
@@ -438,15 +438,11 @@ StScrollBar {
       box-shadow: inset 0 1px 0px lighten($borders_color,5%);
       font-weight: bold;
     }
-    &:hover,&:focus { background-color: transparentize($fg_color,0.9); color: $fg_color; }
+    &.selected { background-color: transparentize($fg_color,0.9); color: $fg_color; }
     &:active { background-color: $selected_bg_color; color: $selected_fg_color; }
     &:insensitive { color: transparentize($fg_color,.5); }
   }
 
-  .selected {
-    background-color: $selected_bg_color;
-  }
-
   .popup-inactive-menu-item { //all icons and other graphical elements
     color: $fg_color;
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]