[libadwaita/wip/exalm/levelbars: 3/3] stylesheet: Fix vertical levelbar bugs
- From: Alexander Mikhaylenko <alexm src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libadwaita/wip/exalm/levelbars: 3/3] stylesheet: Fix vertical levelbar bugs
- Date: Thu, 20 May 2021 08:34:20 +0000 (UTC)
commit 81115ca3b4d0c9699e337a8056be9176f74194d8
Author: Alexander Mikhaylenko <alexm gnome org>
Date: Thu May 20 13:12:27 2021 +0500
stylesheet: Fix vertical levelbar bugs
src/stylesheet/widgets/_level-bar.scss | 23 +++++++++++++++++++----
1 file changed, 19 insertions(+), 4 deletions(-)
---
diff --git a/src/stylesheet/widgets/_level-bar.scss b/src/stylesheet/widgets/_level-bar.scss
index aca00aab..ccbcf3f7 100644
--- a/src/stylesheet/widgets/_level-bar.scss
+++ b/src/stylesheet/widgets/_level-bar.scss
@@ -27,7 +27,7 @@ levelbar {
// segmented level bar
&.discrete > trough > block {
- min-height: 4px;
+ min-height: $_levelbar_size - 7px;
margin: 1px;
min-width: 26px;
border-radius: 0;
@@ -45,13 +45,28 @@ levelbar {
&.vertical {
trough > block {
min-width: $_levelbar_size;
- border-radius: $_levelbar_border_radius;
+ border-radius: $_levelbar_border_radius $_levelbar_border_radius 0 0;
+
+ &.empty,
+ &.full {
+ border-radius: $_levelbar_border_radius;
+ }
}
+ // segmented level bar
&.discrete > trough > block {
min-width: $_levelbar_size - 7px;
- margin: 1px 0;
- min-height: 34px;
+ margin: 1px;
+ min-height: 26px;
+ border-radius: 0;
+
+ &:first-child {
+ border-radius: 2px 2px 0 0;
+ }
+
+ &:last-child {
+ border-radius: 0 0 2px 2px;
+ }
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]