[libadwaita/wip/exalm/stylesheet2: 29/103] stylesheet: Nest spinbutton.vertical.osd styles




commit 91cd139b09e73343ac1629681ddc9f37d418ae2a
Author: Alexander Mikhaylenko <alexm gnome org>
Date:   Thu Apr 8 17:35:18 2021 +0500

    stylesheet: Nest spinbutton.vertical.osd styles

 src/stylesheet/_common.scss | 53 ++++++++++++++++++++++-----------------------
 1 file changed, 26 insertions(+), 27 deletions(-)
---
diff --git a/src/stylesheet/_common.scss b/src/stylesheet/_common.scss
index 1a94d53..29f7df4 100644
--- a/src/stylesheet/_common.scss
+++ b/src/stylesheet/_common.scss
@@ -1004,42 +1004,41 @@ spinbutton {
 
       &:dir(rtl):first-child { border-radius: $button_radius 0 0 $button_radius; }
     }
-  }
-
-  // OSD horizontal
-  .osd &:not(.vertical) {
-    > button.image-button.up:not(.flat),
-    > button.image-button.down:not(.flat) {
-      @include button(undecorated);
 
-      color: $osd_fg_color;
-      border-style: none none none solid;
-      border-color: transparentize($osd_borders_color, 0.3);
-      border-radius: 0;
-      box-shadow: none;
-
-      &:dir(rtl) { border-style: none solid none none; }
-
-      &:hover {
+    .osd {
+      > button.image-button.up:not(.flat),
+      > button.image-button.down:not(.flat) {
         @include button(undecorated);
 
         color: $osd_fg_color;
-        border-color: transparentize(opacify($osd_borders_color, 1), 0.5);
-        background-color: darken($osd_bg_color,10%);
+        border-style: none none none solid;
+        border-color: transparentize($osd_borders_color, 0.3);
+        border-radius: 0;
         box-shadow: none;
-      }
 
-      &:disabled {
-        @include button(undecorated);
+        &:dir(rtl) { border-style: none solid none none; }
 
-        color: $osd_insensitive_fg_color;
-        border-color: transparentize(opacify($osd_borders_color, 1), 0.5);
-        box-shadow: none;
-      }
+        &:hover {
+          @include button(undecorated);
 
-      &:dir(ltr):last-child { border-radius: 0 $button_radius $button_radius 0; }
+          color: $osd_fg_color;
+          border-color: transparentize(opacify($osd_borders_color, 1), 0.5);
+          background-color: darken($osd_bg_color,10%);
+          box-shadow: none;
+        }
 
-      &:dir(rtl):first-child { border-radius: $button_radius 0 0 $button_radius; }
+        &:disabled {
+          @include button(undecorated);
+
+          color: $osd_insensitive_fg_color;
+          border-color: transparentize(opacify($osd_borders_color, 1), 0.5);
+          box-shadow: none;
+        }
+
+        &:dir(ltr):last-child { border-radius: 0 $button_radius $button_radius 0; }
+
+        &:dir(rtl):first-child { border-radius: $button_radius 0 0 $button_radius; }
+      }
     }
   }
 


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