[libadwaita/wip/exalm/scale-fix] stylesheet: Remove leftover scale slider shadows




commit 9894e42675554b05c7b03904e0c38f648be1c1f9
Author: Alexander Mikhaylenko <alexm gnome org>
Date:   Sun May 23 17:43:17 2021 +0500

    stylesheet: Remove leftover scale slider shadows
    
    We don't change shadow on hover and active anymore, but there's a leftover
    on the scales with marks.

 src/stylesheet/widgets/_scale.scss | 18 +++---------------
 1 file changed, 3 insertions(+), 15 deletions(-)
---
diff --git a/src/stylesheet/widgets/_scale.scss b/src/stylesheet/widgets/_scale.scss
index e8c5e4b9..8baf8241 100644
--- a/src/stylesheet/widgets/_scale.scss
+++ b/src/stylesheet/widgets/_scale.scss
@@ -123,24 +123,12 @@ scale {
   }
 
   &.marks-before, &.marks-after {
-    // Adjust box-shadow for the 45deg rotation, for 0px 2px we ideally want
-    // 1/√2px 1/√2px, round that to 1px 1px
-    $_shadow_size: 1px 1px;
-
     > trough > slider {
       transform: rotate(45deg);
 
-      box-shadow: $_shadow_size 4px transparentize(black, .8);
-    }
-
-    &:hover > trough > slider {
-      box-shadow: $_shadow_size 4px transparentize(black, .6);
-    }
-
-    &.dragging, &:disabled {
-      > trough > slider {
-        box-shadow: $_shadow_size 4px transparent;
-      }
+      // 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);
     }
   }
 


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