[libadwaita/wip/exalm/borderless: 22/32] stylesheet: Reset toolbar styles for popovers




commit 2e936a7bc99ad2a58feefabab41960e30606422c
Author: Alexander Mikhaylenko <alexm gnome org>
Date:   Tue Jul 20 15:32:03 2021 +0500

    stylesheet: Reset toolbar styles for popovers
    
    We've already been propagating button and switch margins. On top of that,
    now we're also making buttons flat. Don't do this and explicitly reset the
    styles instead.

 src/stylesheet/widgets/_toolbars.scss | 22 ++++++++++++++++++++--
 1 file changed, 20 insertions(+), 2 deletions(-)
---
diff --git a/src/stylesheet/widgets/_toolbars.scss b/src/stylesheet/widgets/_toolbars.scss
index 4fec6100..3bdfba8e 100644
--- a/src/stylesheet/widgets/_toolbars.scss
+++ b/src/stylesheet/widgets/_toolbars.scss
@@ -37,8 +37,7 @@
   splitbutton,
   separator:not(.sidebar),
   button,
-  menubutton,
-  .linked2 {
+  menubutton {
     margin-top: 6px;
     margin-bottom: 6px;
   }
@@ -55,6 +54,25 @@
     margin-top: 10px;
     margin-bottom: 10px;
   }
+
+  // Reset styles for popovers
+  popover {
+    button.image-button:not(.raised),
+    button.arrow-button:not(.raised) {
+      @extend %button;
+    }
+
+    entry,
+    spinbutton,
+    splitbutton,
+    separator:not(.sidebar),
+    button,
+    menubutton,
+    switch {
+      margin-top: 0;
+      margin-bottom: 0;
+    }
+  }
 }
 
 .toolbar {


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