[libadwaita/wip/exalm/stylesheet2: 32/97] stylesheet: Inline searchbar/infobar close buttons




commit debd2c128f3f2101dee849b2c6d99c40e0ac16cd
Author: Alexander Mikhaylenko <alexm gnome org>
Date:   Thu Apr 8 18:59:01 2021 +0500

    stylesheet: Inline searchbar/infobar close buttons
    
    Yet, it's more repetition, but is cleaner overall than having a weird
    separate cluster.

 src/stylesheet/_common.scss | 29 ++++++++++++++++-------------
 1 file changed, 16 insertions(+), 13 deletions(-)
---
diff --git a/src/stylesheet/_common.scss b/src/stylesheet/_common.scss
index 7936e01..657d1f4 100644
--- a/src/stylesheet/_common.scss
+++ b/src/stylesheet/_common.scss
@@ -1253,6 +1253,14 @@ searchbar > revealer > box {
   @extend %darkbar;
 
   border-width: 0 0 1px;
+
+ .close {
+    min-width: 16px;
+    min-height: 16px;
+    padding: 4px;
+    border-radius: 50%;
+    @extend %button_basic_flat;
+  }
 }
 
 %darkbar {
@@ -1293,20 +1301,15 @@ infobar {
                         desaturate(darken(invert($selected_bg_color), 40%), 70%));
     }
   }
-}
-
-   //close button for info and searchbar (#3215)
-
-   infobar .close,
-   searchbar .close {
-      @include button(undecorated);
-      min-width: 16px;
-      min-height: 16px;
-      padding: 4px;
-      border-radius: 50%;
 
-      &:hover { @include button(hover); }
-   }
+ .close {
+    min-width: 16px;
+    min-height: 16px;
+    padding: 4px;
+    border-radius: 50%;
+    @extend %button_basic_flat;
+  }
+}
 
 
 /*****************


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