Files
paper-gtk-theme/Paper/gtk-3.20/widgets/_level-bars.scss

90 lines
1.8 KiB
SCSS
Raw Normal View History

2016-04-14 21:54:38 -04:00
/*************
* Level Bar *
*************/
levelbar {
2016-04-15 12:59:10 -04:00
-GtkLevelBar-min-block-width: 32;
-GtkLevelBar-min-block-height: 8;
2016-04-14 21:54:38 -04:00
&:backdrop { transition: $backdrop_transition; }
trough {
2016-04-15 12:59:10 -04:00
@extend %scale_trough;
margin: 0;
padding:2px;
border-radius:3px;
2016-04-14 21:54:38 -04: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 12:59:10 -04:00
%fill-block,
2016-04-14 21:54:38 -04:00
block {
2016-04-15 12:59:10 -04:00
border-radius:2px;
min-width: 32px;
2016-04-15 16:49:11 -04:00
min-height: 2px;
2016-04-15 12:59:10 -04:00
&.low,
&.level-low {
border:1px solid darken($warning_color,10%);
2016-04-14 21:54:38 -04:00
background-color: $warning_color;
2016-04-15 12:59:10 -04:00
&:backdrop { border:1px solid $warning_color; };
2016-04-14 21:54:38 -04:00
}
2016-04-15 12:59:10 -04:00
&.high,
&.level-high {
border:1px solid darken($selected_bg_color,10%);
2016-04-14 21:54:38 -04:00
background-color: $selected_bg_color;
2016-04-15 12:59:10 -04:00
&:backdrop { border:1px solid $selected_bg_color; }
2016-04-14 21:54:38 -04:00
}
2016-04-15 12:59:10 -04:00
&.full,
&.level-full {
border:1px solid darken($success_color,10%);
2016-04-14 21:54:38 -04:00
background-color: $success_color;
2016-04-15 12:59:10 -04:00
&:backdrop { border:1px solid $success_color; };
2016-04-14 21:54:38 -04:00
}
2016-04-15 12:59:10 -04:00
&.empty,
&.level-empty {
2016-04-14 21:54:38 -04:00
background-color: transparent;
2016-04-15 12:59:10 -04:00
border:1px solid if($variant=='light', transparentize($fg_color,0.8),
2016-04-14 21:54:38 -04:00
transparentize($fg_color,0.9));
box-shadow: none;
&:backdrop { border-color: transparentize($backdrop_fg_color,0.85); }
}
}
2016-04-15 12:59:10 -04:00
// Trough
&.horizontal,
&.vertical {
trough,
.trough {
@extend %scale_trough;
}
}
// Vertical
&.vertical {
-GtkLevelBar-min-block-width: 8;
-GtkLevelBar-min-block-height: 32;
.fill-block,
block {
@extend %fill-block;
min-width: 8px;
min-height: 32px;
}
}
}