aboutsummaryrefslogtreecommitdiff
path: root/.themes/FlatColor/gtk-3.20/widgets/scrollbar.css
blob: 504867b80d6d632ad232e59d67f19875e7bdf995 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
/**************
 * Scrollbars *
 **************/

scrollbar {
    transition: all 0.3s cubic-bezier(0, 0, 0.2, 1), color 0;
    background-color: @tooltip_bg_color;
    background-clip: padding-box;
    border-radius: 3px;
}
* {
    -GtkScrollbar-has-backward-stepper: false;
    -GtkScrollbar-has-forward-stepper: false;
}
scrollbar.top {
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}
scrollbar.bottom {
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}
scrollbar.left {
    border-right: 1px solid rgba(0, 0, 0, 0.1);
}
scrollbar.right {
    border-left: 1px solid rgba(0, 0, 0, 0.1);
}
scrollbar slider {
    /* transition: all 0.3s cubic-bezier(0, 0, 0.2, 1), color 0, margin 0, border-width 0; */
    min-width: 4px;
    min-height: 4px;
    border: 4px solid transparent;
    background-clip: padding-box;
    background-color: shade( @selected_bg_color, 0.80);
    border-radius: 10px;
}
scrollbar slider:hover {
    background-color: shade( @selected_bg_color, 0.80);
}
scrollbar slider:active {
    background-color: @selected_bg_color;
}
scrollbar slider:disabled {
    background-color: shade( @selected_bg_color, 0.80);
}
scrollbar.fine-tune slider {
    transition: all 0.3s cubic-bezier(0, 0, 0.2, 1), color 0, margin 0, border-width 0, min-width 0, min-height 0;
    min-width: 4px;
    min-height: 4px;
}
scrollbar.fine-tune.horizontal slider {
    margin: 2px 0;
}
scrollbar.fine-tune.vertical slider {
    margin: 0 2px;
}
scrollbar.overlay-indicator:not(.dragging):not(.hovering) {
    border-color: transparent;
    background-color: transparent;
}
scrollbar.overlay-indicator:not(.dragging):not(.hovering) slider {
    min-width: 4px;
    min-height: 4px;
    margin: 2px;
    border: 2px solid @tooltip_bg_color;
}
scrollbar.overlay-indicator:not(.dragging):not(.hovering) button {
    min-width: 4px;
    min-height: 4px;
    margin: 2px;
    border: 2px solid @selected_bg_color;
    border-radius: 100px;
    background-color: @tooltip_bg_color;
    background-clip: padding-box;
    -gtk-icon-source: none;
}
scrollbar.overlay-indicator:not(.dragging):not(.hovering) button:disabled {
    background-color: @tooltip_bg_color;
}
scrollbar.overlay-indicator:not(.dragging):not(.hovering).horizontal slider {
    min-width: 24px;
}
scrollbar.overlay-indicator:not(.dragging):not(.hovering).horizontal button {
    min-width: 4px;
}
scrollbar.overlay-indicator:not(.dragging):not(.hovering).vertical slider {
    min-height: 24px;
}
scrollbar.overlay-indicator:not(.dragging):not(.hovering).vertical button {
    min-height: 8px;
}
scrollbar.overlay-indicator.dragging,
scrollbar.overlay-indicator.hovering {
    background-color: @tooltip_bg_color;
}
scrollbar.horizontal slider {
    min-width: 24px;
}
scrollbar.vertical slider {
    min-height: 24px;
}
scrollbar button {
    min-width: 4px;
    min-height: 16px;
    padding: 0;
    border-radius: 0;
}
scrollbar.vertical button.down {
    -gtk-icon-source: -gtk-icontheme("pan-down-symbolic");
}
scrollbar.vertical button.up {
    -gtk-icon-source: -gtk-icontheme("pan-up-symbolic");
}
scrollbar.horizontal button.down {
    -gtk-icon-source: -gtk-icontheme("pan-right-symbolic");
}
scrollbar.horizontal button.up {
    -gtk-icon-source: -gtk-icontheme("pan-left-symbolic");
}