* Fixed levelbar nth-child.

pull/446/head
Megax 2016-05-16 09:03:57 +02:00
parent 4ba345b5a6
commit ca5ee37f0c
1 changed files with 33 additions and 34 deletions
gtk-3.20/scss/widgets

View File

@ -20,37 +20,37 @@
background-color: shade($bg_color, 1.08); background-color: shade($bg_color, 1.08);
background-image: none; background-image: none;
} }
}
progressbar progress { progress {
@include linear-gradient($selected_bg_color); @include linear-gradient($selected_bg_color);
border-radius: 0; border-radius: 0;
box-shadow: none; box-shadow: none;
&.left { &.left {
border-top-left-radius: $roundness; border-top-left-radius: $roundness;
border-bottom-left-radius: $roundness;
}
&.right {
border-top-right-radius: $roundness;
border-bottom-right-radius: $roundness;
}
&.left.right { box-shadow: none; }
&.vertical {
@include linear-gradient($selected_bg_color, to right);
&.bottom {
border-bottom-left-radius: $roundness; border-bottom-left-radius: $roundness;
}
&.right {
border-top-right-radius: $roundness;
border-bottom-right-radius: $roundness; border-bottom-right-radius: $roundness;
} }
&.top { &.left.right { box-shadow: none; }
border-top-left-radius: $roundness;
border-top-right-radius: $roundness; &.vertical {
@include linear-gradient($selected_bg_color, to right);
&.bottom {
border-bottom-left-radius: $roundness;
border-bottom-right-radius: $roundness;
}
&.top {
border-top-left-radius: $roundness;
border-top-right-radius: $roundness;
}
} }
} }
} }
@ -75,23 +75,21 @@
border-radius: $roundness; border-radius: $roundness;
} }
&.horizontal.discrete { margin-right: 1px; } &.horizontal.discrete block {
margin: 0 2px;
&.vertical.discrete { margin-bottom: 1px; } &:first-child { margin: 0; }
}
block:not(.empty) { &.vertical.discrete block {
@include linear-gradient($selected_bg_color); margin: 2px 0;
border-color: transparent; &:first-child { margin: 0; }
border-radius: 0;
} }
block { block {
@include linear-gradient($selected_bg_color); @include linear-gradient($selected_bg_color);
// FIXME: it would be nice to set make fill blocks bigger, but we'd need
// :nth-child working on discrete indicators
border-color: transparent;
border-radius: 0; border-radius: 0;
&.low { &.low {
@ -99,7 +97,8 @@
border-color: transparent; border-color: transparent;
} }
&.high { &.high,
:not(.empty) {
background-color: $selected_bg_color; background-color: $selected_bg_color;
border-color: transparent; border-color: transparent;
} }