[gtk/wip/jimmac/button-shed: 1/4] Adwaita: duplicate selector




commit 7442bdc383436ca8252a01c02def0691e39f4959
Author: Jakub Steiner <jimmac gmail com>
Date:   Thu Dec 10 13:51:10 2020 +0100

    Adwaita: duplicate selector
    
    - awkward duplicate selector that should have no effect
      (resulting in the same css)

 gtk/theme/Adwaita/_common.scss | 7 ++-----
 1 file changed, 2 insertions(+), 5 deletions(-)
---
diff --git a/gtk/theme/Adwaita/_common.scss b/gtk/theme/Adwaita/_common.scss
index 2fb68a6f8e..b66b1001fb 100644
--- a/gtk/theme/Adwaita/_common.scss
+++ b/gtk/theme/Adwaita/_common.scss
@@ -496,9 +496,9 @@ button {
       &:hover {
         transition: $button_transition;
         transition-duration: 500ms;
-
-        &:active { transition: $button_transition; }
       }
+      &:active { transition: $button_transition; }
+      &:backdrop, &:disabled, &:backdrop:disabled { @include button(undecorated); }
     }
 
     &:hover {
@@ -532,9 +532,6 @@ button {
       }
     }
 
-    @at-root %button_basic_flat,
-    &.flat { &:backdrop, &:disabled, &:backdrop:disabled { @include button(undecorated); }}
-
     &:disabled {
       @include button(insensitive);
 


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