[libadwaita/wip/exalm/borderless: 41/46] stylesheet: Reset toolbar styles for popovers




commit 1ef539cced631f74b508350c56c31116dbdaf29d
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 046453a8..83356d02 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]