[gnome-shell-sass] theme: Style .selected menu items instead of :focus/:hover
- From: Florian Müllner <fmuellner src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell-sass] theme: Style .selected menu items instead of :focus/:hover
- Date: Tue, 17 Mar 2015 14:41:27 +0000 (UTC)
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]