[gnome-themes-standard] csd: List :hover rule before :backdrop rule for csd buttons



commit d2c4fbbd8819b5c7db1b5b1be529d5deab858855
Author: Kristian Høgsberg <krh bitplanet net>
Date:   Sun Mar 31 21:19:27 2013 -0400

    csd: List :hover rule before :backdrop rule for csd buttons
    
    This way the :backdrop rule overrides the :hover rule and we don't highlight
    buttens in :backdrop mode.

 themes/Adwaita/gtk-3.0/gtk-widgets.css |   20 ++++++++------------
 1 files changed, 8 insertions(+), 12 deletions(-)
---
diff --git a/themes/Adwaita/gtk-3.0/gtk-widgets.css b/themes/Adwaita/gtk-3.0/gtk-widgets.css
index ea6f748..cef7c57 100644
--- a/themes/Adwaita/gtk-3.0/gtk-widgets.css
+++ b/themes/Adwaita/gtk-3.0/gtk-widgets.css
@@ -3988,16 +3988,19 @@ GtkBubbleWindow .toolbar {
     text-shadow: none;
 }
 
-.titlebar GtkButton:backdrop {
-    border-image: none;
-    background-image: none;
-}
-
 .titlebar .button {
     icon-shadow: 0px 1px darker (darker (@theme_bg_color));
 }
 
+.titlebar .button:hover {
+    background-image: linear-gradient(to bottom,
+                                      shade(@theme_bg_color, 1.35),
+                                      shade(@theme_bg_color, 0.88) 55%,
+                                      shade(@theme_bg_color, 0.94));
+}
+
 .titlebar .button:backdrop {
+    background-image: none;
     color: darker (@theme_bg_color);
     icon-shadow: none;
 }
@@ -4013,13 +4016,6 @@ GtkBubbleWindow .toolbar {
                                       shade(@theme_bg_color, 0.90));
 }
 
-.titlebar .button:hover {
-    background-image: linear-gradient(to bottom,
-                                      shade(@theme_bg_color, 1.35),
-                                      shade(@theme_bg_color, 0.88) 55%,
-                                      shade(@theme_bg_color, 0.94));
-}
-
 .titlebar .button:first-child {
     border-radius: 10px 0px 0px 0px;
     border-width: 0px 1px 0px 0px;


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