Files
numix-blue-gtk-theme/gtk-3.0/scss/widgets/_scrollbar.scss
T

87 lines
2.2 KiB
SCSS
Raw Normal View History

2014-12-09 00:42:07 +05:30
/***********
! Scrollbar
************/
@include exports("scrollbar") {
2015-05-31 22:26:05 +05:30
* {
-GtkRange-slider-width: 8;
-GtkRange-stepper-spacing: 0;
-GtkRange-trough-border: 2;
-GtkRange-trough-under-steppers: 1;
-GtkScrollbar-has-backward-stepper: false;
-GtkScrollbar-has-forward-stepper: false;
-GtkScrollbar-min-slider-length: 80;
-GtkScrolledWindow-scrollbar-spacing: 0;
-GtkScrolledWindow-scrollbars-within-bevel: 1;
}
2015-05-31 21:50:35 +05:30
2015-05-31 22:26:05 +05:30
.scrollbar {
border: 0;
padding: 0;
2014-12-09 00:42:07 +05:30
2015-05-31 22:26:05 +05:30
&.button {
&, &:active, &:active:hover {
border-width: 0;
border-radius: 0;
background-color: transparent;
background-image: none;
color: alpha($fg_color, 0.5);
}
}
2015-05-31 22:26:05 +05:30
&.slider, &.slider.vertical {
border: 0;
border-radius: $roundness;
background-color: shade($bg_color, 0.5);
2015-05-31 22:26:05 +05:30
&:hover { background-color: shade($bg_color, 0.3); }
2015-05-31 22:26:05 +05:30
&:active { background-color: $selected_bg_color; }
2015-05-31 22:26:05 +05:30
&.fine-tune:prelight:active { border: 2px solid transparent; }
}
2014-12-09 00:42:07 +05:30
2015-05-31 22:26:05 +05:30
// overlay scrolling indicator
&.overlay-indicator {
&:not(.dragging):not(.hovering) {
opacity: 0.5;
2014-12-09 00:42:07 +05:30
2015-05-31 22:26:05 +05:30
-GtkRange-slider-width: 4px;
2014-12-09 00:42:07 +05:30
2015-05-31 22:26:05 +05:30
.slider {
margin: 0;
background-color: $fg_color;
background-clip: padding-box;
}
2014-12-09 00:42:07 +05:30
2015-05-31 22:26:05 +05:30
.trough {
border-style: none;
background-color: transparent;
}
}
2015-05-31 22:26:05 +05:30
&.dragging, &.hovering { opacity: 0.7; }
}
}
.scrollbars-junction,
.scrollbars-junction.frame,
.scrollbar.trough {
border: 0;
border-radius: 0;
background-color: $bg_color;
background-image: none;
}
// ubuntu overlay scrollbars
OsThumb, OsScrollbar {
color: shade($bg_color, 0.7);
&:selected { background-color: $selected_bg_color; }
&:active { background-color: $selected_bg_color; }
&:insensitive { background-color: shade($bg_color, 0.9); }
}
2014-12-09 00:42:07 +05:30
}