paper-gtk-theme/Paper/gtk-3.18/widgets/_level-bars.scss

82 lines
1.8 KiB
SCSS
Raw Normal View History

2016-04-15 03:54:38 +02:00
/*************
* Level Bar *
*************/
GtkLevelBar,
2016-04-19 00:39:13 +02:00
.level-bar {
2016-04-15 03:54:38 +02:00
2016-05-24 18:54:03 +02:00
-GtkLevelBar-min-block-width: 32px;
-GtkLevelBar-min-block-height: 6px;
padding: 2px;
2016-04-15 03:54:38 +02:00
&.horizontal.indicator-discrete.fill-block { margin: 0 1px; }
&.horizontal.discrete block { margin: 0 1px; }
&.vertical.indicator-discrete.fill-block { margin: 1px 0; }
&.vertical.discrete block { margin: 1px 0; }
2016-04-15 18:59:10 +02:00
%fill-block,
2016-04-19 00:39:13 +02:00
.fill-block {
2016-04-15 18:59:10 +02:00
2016-05-24 18:54:03 +02:00
border-radius:3px;
margin: 2px;
background-color: transparentize(black, 0.9);
border:1px solid;
border-color: $borders_color;
box-shadow: 0 1px 0 0 $bottom_highlight;
2016-04-15 18:59:10 +02:00
&.low,
&.level-low {
2016-05-24 18:54:03 +02:00
background-color: $red;
border:1px solid;
border-color: if($variant == 'light', darken($red, 10%), $borders_color);
box-shadow:inset 0 1px 0 0 $top_highlight;
2016-04-15 03:54:38 +02:00
}
2016-04-15 18:59:10 +02:00
&.high,
&.level-high {
2016-05-24 18:54:03 +02:00
background-color: $green;
border:1px solid;
border-color: if($variant == 'light', darken($green, 10%), $borders_color);
box-shadow:inset 0 1px 0 0 $top_highlight;
2016-04-15 03:54:38 +02:00
}
2016-04-15 18:59:10 +02:00
&.full,
&.level-full {
2016-05-24 18:54:03 +02:00
background-color: $selected_bg_color;
border:1px solid;
border-color: if($variant == 'light', $selected_borders_color, $borders_color);
box-shadow:inset 0 1px 0 0 $top_highlight;
2016-04-15 03:54:38 +02:00
}
2016-04-15 18:59:10 +02:00
&.empty,
&.level-empty {
2016-05-24 18:54:03 +02:00
background-color: transparentize(black, 0.9);
border:1px solid;
border-color: $borders_color;
box-shadow: 0 1px 0 0 $bottom_highlight;
2016-04-15 03:54:38 +02:00
}
}
2016-04-15 18:59:10 +02:00
// Trough
&.horizontal,
&.vertical {
.trough {
2016-05-24 18:54:03 +02:00
border:none;
background-color:transparent;
margin: 2px;
2016-04-15 18:59:10 +02:00
}
}
// Vertical
&.vertical {
2016-05-24 18:54:03 +02:00
-GtkLevelBar-min-block-width: 6px;
-GtkLevelBar-min-block-height: 32px;
2016-04-15 18:59:10 +02:00
2016-04-19 00:39:13 +02:00
.fill-block {
2016-04-15 18:59:10 +02:00
@extend %fill-block;
}
}
}