[libadwaita/wip/exalm/stylesheet2: 35/97] stylesheet: Only use GtkWindowControls headerbar style in headerbar




commit b0b0e0b8515e4205672dec1e3a9a53b4b6fa9052
Author: Alexander Mikhaylenko <alexm gnome org>
Date:   Thu Apr 8 19:05:55 2021 +0500

    stylesheet: Only use GtkWindowControls headerbar style in headerbar

 src/stylesheet/_common.scss | 16 ++++++++--------
 1 file changed, 8 insertions(+), 8 deletions(-)
---
diff --git a/src/stylesheet/_common.scss b/src/stylesheet/_common.scss
index 9843218..986c77d 100644
--- a/src/stylesheet/_common.scss
+++ b/src/stylesheet/_common.scss
@@ -1347,24 +1347,24 @@ windowcontrols {
 
   button {
     @extend %button_basic;
-
     @extend %button_basic_flat;
 
-
     border-radius: 9999px;
     padding: 6px;
     margin: 0 2px;
     min-width: 0;
     min-height: 0;
-    &:hover {
-      //special case hover colors inside a headerbar
-      @include button(undecorated-hover,$c:darken($headerbar_bg_color,6%));
-    }
-    &:active,
-    &:checked { @include button(undecorated-active,$c:darken($headerbar_bg_color,10%)); }
   }
 }
 
+// special case hover colors inside a headerbar
+headerbar windowcontrols button {
+  &:hover {
+    @include button(undecorated-hover,$c:darken($headerbar_bg_color,6%));
+  }
+  &:active,
+  &:checked { @include button(undecorated-active,$c:darken($headerbar_bg_color,10%)); }
+}
 
 /***************
  * Header bars *


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