make devtools scrollbars work nicely
[themes.git] / LCARStrek / global / scrollbars.css
CommitLineData
9099c61d
RK
1/* This Source Code Form is subject to the terms of the Mozilla Public
2 * License, v. 2.0. If a copy of the MPL was not distributed with this
3 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
351107c9 4
b1eaa419 5/* ===== scrollbars.css =================================================
6 == Styles used by XUL scrollbar-related elements.
7 ======================================================================= */
351107c9 8
f98e9249
RK
9@namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul");
10@namespace html url("http://www.w3.org/1999/xhtml"); /* namespace for HTML elements */
11
b1eaa419 12/* ::::: scrollbar ::::: */
13
14scrollbar {
15 -moz-binding: url("chrome://global/content/bindings/scrollbar.xml#scrollbar");
16 cursor: default;
17 background-color: #000000;
d8ed26fd 18 border-radius: 50%;
87a1144f
RK
19 pointer-events: auto;
20}
21
87a1144f 22@media all and (-moz-overlay-scrollbars) {
2e88f3cc
RK
23 scrollbar[root="true"] {
24 position: relative;
25 z-index: 2147483647; /* largest positive value of a signed 32-bit integer */
26 }
27
87a1144f
RK
28 scrollbar:not([active="true"]),
29 scrollbar[disabled="true"] {
30 visibility: hidden;
31 }
b1eaa419 32}
33
34/* ::::: slider ::::: */
35
36slider {
37 height: 13px;
5968ec68 38 background-color: #404048; /* #202024;*/
b1eaa419 39}
40
41slider[orient="vertical"] {
42 width: 13px;
43}
44
45/* ::::: borders for thumb and buttons ::::: */
46
47thumb,
48scrollbarbutton {
49 border: none;
50 background: transparent 50% 50% no-repeat;
51 padding: 1px;
52 min-width: 13px;
53 min-height: 13px;
351107c9 54}
55
e08553ef
RK
56scrollbar:not([orient="vertical"]) > scrollbarbutton {
57 min-width: 16px;
58}
59
60scrollbar[orient="vertical"] > scrollbarbutton {
61 min-height: 16px;
62}
63
64
b1eaa419 65/* ::::: thumb ::::: */
66
67thumb {
d8ed26fd 68 background-color: #A09090;
b1eaa419 69 background-image: url("chrome://global/skin/scrollbar/thumb-vert-grip.gif");
351107c9 70}
71
b1eaa419 72thumb[orient="horizontal"] {
73 background-image: url("chrome://global/skin/scrollbar/thumb-horiz-grip.gif");
351107c9 74}
75
b1eaa419 76
351107c9 77thumb:active,
78thumb:hover:active {
79 background-color: #008484;
80}
81
82thumb:hover {
83 background-color: #FFCF00;
84}
b1eaa419 85
86thumb[disabled="true"] {
87 background-image: url("chrome://global/skin/scrollbar/thumb-vert-grip-disabled.gif");
88}
89
90thumb[orient="horizontal"][disabled="true"] {
91 background-image: url("chrome://global/skin/scrollbar/thumb-horiz-grip-disabled.gif");
92}
93
82765a36
RK
94/* keep clickthrough scrollbars in e.g. devtoools with a simpler thumb */
95scrollbar[clickthrough="always"] > slider > thumb {
96 background-image: none;
97}
98
b1eaa419 99/* ::::: scrollbar button ::::: */
100
101scrollbarbutton {
d8ed26fd 102 background-color: #C09070;
b1eaa419 103}
104
a12570b9 105scrollbarbutton:hover:active,
106scrollbarbutton[active="true"] {
e08553ef 107 background-position: calc(50% + 1px) calc(50% + 1px);
3d6dd546 108}
b1eaa419 109
9c1ab967
RK
110scrollbarbutton:hover {
111 background-color: #FFCF00;
112}
113
114scrollbarbutton:hover:active {
e08553ef 115 background-color: #FF9F00;
9c1ab967
RK
116}
117
118scrollbarbutton[disabled="true"] {
d8ed26fd 119 background-color: #402858 !important;
9c1ab967
RK
120}
121
82765a36 122/* XXX - scrollbar.xml always grabs the OS settings and we don't want that (but keep clickthrough scrollbars in e.g. devtoools working) */
f98e9249
RK
123scrollbarbutton[sbattr="scrollbar-up-bottom"],
124scrollbarbutton[sbattr="scrollbar-down-top"] {
125 display: none;
126}
82765a36
RK
127scrollbar:not([clickthrough="always"]) > scrollbarbutton[sbattr="scrollbar-up-top"],
128scrollbar:not([clickthrough="always"]) > scrollbarbutton[sbattr="scrollbar-down-bottom"] {
733b8160
RK
129 display: -moz-box !important;
130}
f98e9249 131
03f6f39c 132/* ::::: square at the corner of two scrollbars ::::: */
133
134scrollcorner {
3d6dd546 135 -moz-binding: url("chrome://global/content/bindings/scrollbar.xml#scrollbar-base");
136 cursor: default;
03f6f39c 137 background-color: #000000;
6046f027 138 width: 13px;
03f6f39c 139}
140
b1eaa419 141/* ..... increment .... */
142
143scrollbarbutton[type="increment"] {
9c1ab967 144 background-image: url("chrome://global/skin/scrollbar/arrow-right.png");
e08553ef 145 border-radius: 0 300px 300px 0;
dae45075 146 border-inline-start: 3px solid #000000;
b1eaa419 147}
148
b1eaa419 149scrollbar[orient="vertical"] > scrollbarbutton[type="increment"] {
9c1ab967 150 background-image: url("chrome://global/skin/scrollbar/arrow-down.png");
e08553ef 151 border-radius: 0 0 300px 300px;
dae45075 152 border-inline-start: none;
cc56c65e 153 border-top: 3px solid #000000;
b1eaa419 154}
155
b1eaa419 156/* ..... decrement .... */
157
158scrollbarbutton[type="decrement"] {
9c1ab967 159 background-image: url("chrome://global/skin/scrollbar/arrow-left.png");
e08553ef 160 border-radius: 300px 0 0 300px;
dae45075 161 border-inline-end: 3px solid #000000;
b1eaa419 162}
163
b1eaa419 164scrollbar[orient="vertical"] > scrollbarbutton[type="decrement"] {
9c1ab967 165 background-image: url("chrome://global/skin/scrollbar/arrow-up.png");
e08553ef 166 border-radius: 300px 300px 0 0;
dae45075 167 border-inline-end: none;
cc56c65e 168 border-bottom: 3px solid #000000;
b1eaa419 169}
170
b1e5c9b1 171/* :::::::::::::::::::::::::::::::::::::::::::::::::::::::: */
172/* ::::::::::::::::::::: MEDIA PRINT :::::::::::::::::::::: */
173/* :::::::::::::::::::::::::::::::::::::::::::::::::::::::: */
174@media print {
175 /* ::::: scrollbar ::::: */
176
177 html|div scrollbar {
178 -moz-appearance: scrollbartrack-horizontal;
179 -moz-binding: url("chrome://global/content/bindings/scrollbar.xml#scrollbar");
180 cursor: default;
181 background: url("chrome://global/skin/scrollbar/slider.gif") scrollbar;
182 }
183
3d6dd546 184 html|div scrollbar[orient="vertical"]
b1e5c9b1 185 {
186 -moz-appearance: scrollbartrack-vertical;
187 }
188
189 /* ::::: borders for thumb and buttons ::::: */
190
191 html|div thumb,
192 html|div scrollbarbutton {
193 border: 2px solid;
194 -moz-border-top-colors: ThreeDLightShadow ThreeDHighlight;
195 -moz-border-right-colors: ThreeDDarkShadow ThreeDShadow;
196 -moz-border-bottom-colors: ThreeDDarkShadow ThreeDShadow;
197 -moz-border-left-colors: ThreeDLightShadow ThreeDHighlight;
198 background-color: -moz-Dialog;
199 }
200
201 /* ::::: thumb (horizontal) ::::: */
202
203 html|div thumb {
204 -moz-appearance: scrollbarthumb-vertical;
205 min-height: 8px;
206 }
207
208 html|div thumb[orient="horizontal"] {
209 -moz-appearance: scrollbarthumb-horizontal;
210 min-width: 8px;
211 }
212
b1e5c9b1 213 /* ::::: scrollbar button ::::: */
214
215 html|div scrollbarbutton {
cfae8c74 216 background: -moz-Dialog no-repeat 50% 50%;
b1e5c9b1 217 min-width: 16px;
218 min-height: 16px;
219 }
220
a12570b9 221 html|div scrollbarbutton:hover:active,
222 html|div scrollbarbutton[active="true"] {
b1e5c9b1 223 -moz-border-top-colors: ThreeDShadow -moz-Dialog;
224 -moz-border-right-colors: ThreeDShadow -moz-Dialog;
225 -moz-border-bottom-colors: ThreeDShadow -moz-Dialog;
226 -moz-border-left-colors: ThreeDShadow -moz-Dialog;
cfae8c74 227 background-position: 60% 60%;
b1e5c9b1 228 }
229
230 /* ..... increment .... */
231
232 html|div scrollbarbutton[type="increment"] {
233 -moz-appearance: scrollbarbutton-right;
8b5fc82e 234 background-image: url("chrome://global/skin/scrollbar/arrow-right.png")
b1e5c9b1 235 }
236
237 html|div scrollbar[orient="vertical"] > scrollbarbutton[type="increment"] {
238 -moz-appearance: scrollbarbutton-down;
8b5fc82e 239 background-image: url("chrome://global/skin/scrollbar/arrow-down.png")
b1e5c9b1 240 }
241
242 /* ..... decrement .... */
243
244 html|div scrollbarbutton[type="decrement"] {
245 -moz-appearance: scrollbarbutton-left;
8b5fc82e 246 background-image: url("chrome://global/skin/scrollbar/arrow-left.png")
b1e5c9b1 247 }
248
249 html|div scrollbar[orient="vertical"] > scrollbarbutton[type="decrement"] {
250 -moz-appearance: scrollbarbutton-up;
8b5fc82e 251 background-image: url("chrome://global/skin/scrollbar/arrow-up.png")
b1e5c9b1 252 }
253
03f6f39c 254}