[libadwaita/wip/exalm/oapcity: 14/14] stylesheet: Fix scale slider disabled state




commit 18c80b557d1a02e91a943dc8fa38b6ce5e767b44
Author: Alexander Mikhaylenko <alexm gnome org>
Date:   Fri Oct 22 12:35:14 2021 +0500

    stylesheet: Fix scale slider disabled state
    
    Remove shadow from scales with marks as well, simplify a HC override.

 src/stylesheet/widgets/_scale.scss | 14 +++++---------
 1 file changed, 5 insertions(+), 9 deletions(-)
---
diff --git a/src/stylesheet/widgets/_scale.scss b/src/stylesheet/widgets/_scale.scss
index 04c52ede..563ccee9 100644
--- a/src/stylesheet/widgets/_scale.scss
+++ b/src/stylesheet/widgets/_scale.scss
@@ -71,15 +71,7 @@ scale {
 
     > trough > slider {
       box-shadow: 0 2px 4px transparent;
-      outline-color: transparentize(black, .8);
-    }
-  }
-
-  @if $contrast == "high" {
-    &, &:hover, &.dragging, &:disabled {
-      > trough > slider {
-        outline-color: transparentize(black, .5);
-      }
+      outline-color: transparentize(black, if($contrast == 'high', .5, .8));
     }
   }
 
@@ -114,6 +106,10 @@ scale {
       // Adjust box-shadow for the 45deg rotation, for 0px 2px we ideally want
       // 1/√2px 1/√2px, round that to 1px 1px
       box-shadow: 1px 1px 4px transparentize(black, .8);
+
+      &:disabled {
+        box-shadow: 1px 1px 4px transparent;
+      }
     }
   }
 


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