[libadwaita/wip/exalm/stylesheet2: 22/97] stylesheet: Don't disable internal entry styles for spinbutton




commit b72e5dc424b904d26baf82f8ffcaf78b04657f8e
Author: Alexander Mikhaylenko <alexm gnome org>
Date:   Thu Apr 8 17:20:07 2021 +0500

    stylesheet: Don't disable internal entry styles for spinbutton
    
    It's not an entry anymore, it's GtkText and it already behaves the way we
    need.

 src/stylesheet/_common.scss | 19 +------------------
 1 file changed, 1 insertion(+), 18 deletions(-)
---
diff --git a/src/stylesheet/_common.scss b/src/stylesheet/_common.scss
index 41555bf..1a94d53 100644
--- a/src/stylesheet/_common.scss
+++ b/src/stylesheet/_common.scss
@@ -964,22 +964,9 @@ spinbutton {
     padding: 0;
     border-spacing: 0;
 
-    %spinbutton_horz_entry {
+    > text {
       min-width: 28px;
-      // reset all the other props since the spinbutton node is styled here
-      margin: 0;
-      background: none;
-      background-color: transparent;
-      border: none;
-      border-radius: 0;
-      box-shadow: none;
       padding: 6px;
-
-      &:backdrop:disabled { background-color: transparent; }
-    }
-
-    > text {
-      @extend %spinbutton_horz_entry;
     }
 
     /* :not here just to bump specificity above that of the list button styling */
@@ -1021,10 +1008,6 @@ spinbutton {
 
   // OSD horizontal
   .osd &:not(.vertical) {
-    > text {
-      @extend %spinbutton_horz_entry;
-    }
-
     > button.image-button.up:not(.flat),
     > button.image-button.down:not(.flat) {
       @include button(undecorated);


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