[libadwaita/wip/exalm/stylesheet2: 20/97] stylesheet: Properly style toolbar buttons




commit d3c78a7873520cc898c9db00053f148ce96f15d0
Author: Alexander Mikhaylenko <alexm gnome org>
Date:   Thu Apr 8 16:08:01 2021 +0500

    stylesheet: Properly style toolbar buttons
    
    Flat style has changed since they were added and they weren't flat in
    some states.

 src/stylesheet/_common.scss | 8 +++-----
 1 file changed, 3 insertions(+), 5 deletions(-)
---
diff --git a/src/stylesheet/_common.scss b/src/stylesheet/_common.scss
index e5a07ab..85d73eb 100644
--- a/src/stylesheet/_common.scss
+++ b/src/stylesheet/_common.scss
@@ -847,11 +847,9 @@ modelbutton.flat {
   margin: 1px;
   @extend %undecorated_button;
 
-  &:hover { @include button('hover'); }
-  &:active { @include button('active'); }
-  &:disabled { @include button('insensitive'); }
-  &:backdrop { @include button('backdrop'); }
-  &:backdrop:disabled { @include button('backdrop-insensitive'); }
+  &:hover { @include button(undecorated-hover); }
+  &:active { @include button(undecorated-active); }
+  &:backdrop, &:disabled, &:backdrop:disabled { @include button(undecorated); }
 }
 
 button.color {


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