[libadwaita/wip/exalm/scale: 3/3] stylesheet: Keep scales with marks same size as others
- From: Alexander Mikhaylenko <alexm src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libadwaita/wip/exalm/scale: 3/3] stylesheet: Keep scales with marks same size as others
- Date: Fri, 5 Aug 2022 09:25:24 +0000 (UTC)
commit c6e6da29c9ffe6514beaf3f0c909c60e97b89623
Author: Alexander Mikhaylenko <alexm gnome org>
Date: Thu Aug 4 18:30:03 2022 +0400
stylesheet: Keep scales with marks same size as others
Prevent things like stretched font scale and animation entries,
or misaligned magnification slider in inspector, or misaligned
system volume slider in settings.
src/stylesheet/widgets/_scale.scss | 32 ++++++++++++++++++++++++--------
1 file changed, 24 insertions(+), 8 deletions(-)
---
diff --git a/src/stylesheet/widgets/_scale.scss b/src/stylesheet/widgets/_scale.scss
index d993ea09..a1c737c1 100644
--- a/src/stylesheet/widgets/_scale.scss
+++ b/src/stylesheet/widgets/_scale.scss
@@ -147,12 +147,20 @@ scale {
indicator { min-height: ($_marks_length - 3px); }
}
- &.marks-before > trough > slider {
- border-top-left-radius: 0;
+ &.marks-before {
+ padding-top: 0;
+
+ > trough > slider {
+ border-top-left-radius: 0;
+ }
}
- &.marks-after > trough > slider {
- border-bottom-right-radius: 0;
+ &.marks-after {
+ padding-bottom: 0;
+
+ > trough > slider {
+ border-bottom-right-radius: 0;
+ }
}
&.marks-before.marks-after > trough > slider {
@@ -183,12 +191,20 @@ scale {
indicator { min-height: ($_marks_length - 3px); }
}
- &.marks-before > trough > slider {
- border-bottom-left-radius: 0;
+ &.marks-before {
+ padding-left: 0;
+
+ > trough > slider {
+ border-bottom-left-radius: 0;
+ }
}
- &.marks-after > trough > slider {
- border-top-right-radius: 0;
+ &.marks-after {
+ padding-right: 0;
+
+ > trough > slider {
+ border-top-right-radius: 0;
+ }
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]