paper-gtk-theme/Paper/gtk-3.20/widgets/_progress-bars.scss

110 lines
2.2 KiB
SCSS
Raw Normal View History

2016-04-14 21:54:38 -04:00
/*****************
* Progress bars *
*****************/
2016-04-15 12:59:10 -04:00
GtkProgressBar,
2016-04-14 21:54:38 -04:00
.progressbar,
progressbar {
2016-04-15 12:59:10 -04:00
@extend %scale_trough;
2016-04-15 11:24:20 -04:00
2016-04-14 21:54:38 -04:00
// sizing
&.horizontal {
trough,
.trough,
2016-04-15 16:49:11 -04:00
progress { min-height: 4px; }
2016-04-14 21:54:38 -04:00
}
&.vertical {
trough,
.trough,
2016-04-15 16:49:11 -04:00
progress { min-width: 4px; }
2016-04-14 21:54:38 -04:00
}
&.horizontal progress { margin: 0 -1px; } // the progress node is positioned after the trough border
&.vertical progress { margin: -1px 0; } // this moves it over it.
// FIXME: insensitive state missing and some other state should be set probably
font-size: smaller;
color: transparentize($fg_color, 0.6);
2016-04-15 12:59:10 -04:00
&:active {
border-radius:0px;
color: transparentize(black,0.5);
background-color: $selected_bg_color;
border-color: darken($selected_bg_color, 10%);
&:backdrop {
background-color: lighten($selected_bg_color, 10%);
border-color: lighten(darken($selected_bg_color, 10%), 10%);
}
}
2016-04-14 21:54:38 -04:00
&:backdrop {
transition: $backdrop_transition;
}
.progressbar,
progress {
@extend %scale_highlight;
2016-04-15 12:59:10 -04:00
border-radius: 0px;
2016-04-14 21:54:38 -04:00
2016-04-15 12:59:10 -04:00
// default 2px
2016-04-14 21:54:38 -04:00
&.left {
2016-04-15 12:59:10 -04:00
border-top-left-radius: 0px;
border-bottom-left-radius: 0px;
2016-04-14 21:54:38 -04:00
}
&.right {
2016-04-15 12:59:10 -04:00
border-top-right-radius: 0px;
border-bottom-right-radius: 0px;
2016-04-14 21:54:38 -04:00
}
&.top {
2016-04-15 12:59:10 -04:00
border-top-right-radius: 0px;
border-top-left-radius: 0px;
2016-04-14 21:54:38 -04:00
}
&.bottom {
2016-04-15 12:59:10 -04:00
border-bottom-right-radius: 0px;
border-bottom-left-radius: 0px;
2016-04-14 21:54:38 -04:00
}
}
2016-04-15 12:59:10 -04:00
&:backdrop .progressbar { @extend %scale_highlight:backdrop; } // states not passed here as well
2016-04-14 21:54:38 -04:00
&:backdrop progress { @extend %scale_highlight:backdrop; } // states not passed here as well
&.osd { // progressbar.osd used for epiphany page loading progress
min-width: 3px;
min-height: 3px;
background-color: transparent;
.trough,
trough {
border-style: none;
border-radius: 0;
background-color: transparent;
box-shadow: none;
}
2016-04-15 12:59:10 -04:00
.progressbar,
2016-04-14 21:54:38 -04:00
progress {
border-style: none;
border-radius: 0;
}
}
2016-04-15 11:24:20 -04:00
// In-Row
row,
.list-row {
2016-04-15 12:59:10 -04:00
2016-04-15 11:24:20 -04:00
&:selected {
border: 1px solid darken($selected_bg_color, 10%);
color: transparentize(black,0.5);
background-color: $selected_bg_color;
}
}
2016-04-14 21:54:38 -04:00
}