[libadwaita/wip/exalm/borderless: 10/15] stylesheet: Specificity bump for spinbutton buttons




commit 44dc0b30398803c16b0ac06d07db8d41624e16c0
Author: Alexander Mikhaylenko <alexm gnome org>
Date:   Fri Sep 3 04:38:07 2021 +0500

    stylesheet: Specificity bump for spinbutton buttons
    
    Make sure they don't get messed up in a toolbar popover.

 src/stylesheet/widgets/_spin-button.scss | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)
---
diff --git a/src/stylesheet/widgets/_spin-button.scss b/src/stylesheet/widgets/_spin-button.scss
index 9a2c5457..c22af4da 100644
--- a/src/stylesheet/widgets/_spin-button.scss
+++ b/src/stylesheet/widgets/_spin-button.scss
@@ -6,8 +6,8 @@ spinbutton {
   border-spacing: 0;
 
   /* :not here just to bump specificity above that of the list button styling */
-  > button.image-button.up:not(.flat),
-  > button.image-button.down:not(.flat) {
+  > button.image-button.up:not(.flat):not(.raised):not(.suggested-action):not(.destructive-action),
+  > button.image-button.down:not(.flat):not(.raised):not(.suggested-action):not(.destructive-action) {
     margin: 0;
     background: none;
     border-style: solid;
@@ -33,8 +33,8 @@ spinbutton {
     }
 
     /* :not here just to bump specificity above that of the list button styling */
-    > button.image-button.up:not(.flat),
-    > button.image-button.down:not(.flat) {
+    > button.image-button.up:not(.flat):not(.raised):not(.suggested-action):not(.destructive-action),
+    > button.image-button.down:not(.flat):not(.raised):not(.suggested-action):not(.destructive-action) {
       min-height: 16px;
       min-width: 22px;
       padding-bottom: 0;
@@ -56,8 +56,8 @@ spinbutton {
     }
 
     /* :not here just to bump specificity above that of the list button styling */
-    > button.image-button.up:not(.flat),
-    > button.image-button.down:not(.flat) {
+    > button.image-button.up:not(.flat):not(.raised):not(.suggested-action):not(.destructive-action),
+    > button.image-button.down:not(.flat):not(.raised):not(.suggested-action):not(.destructive-action) {
       &:last-child {
         border-width: 1px 0 0 0;
         border-radius: 0 0 $button_radius $button_radius;


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