update both themes for toolkit winstripe changes in Mozilla 17 cycle
[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;
18}
19
20/* ::::: slider ::::: */
21
22slider {
23 height: 13px;
9c1ab967 24 background-color: #794900;
b1eaa419 25}
26
27slider[orient="vertical"] {
28 width: 13px;
29}
30
31/* ::::: borders for thumb and buttons ::::: */
32
33thumb,
34scrollbarbutton {
35 border: none;
36 background: transparent 50% 50% no-repeat;
37 padding: 1px;
38 min-width: 13px;
39 min-height: 13px;
351107c9 40}
41
b1eaa419 42/* ::::: thumb ::::: */
43
44thumb {
45 background-color: #9C9CFF;
46 background-image: url("chrome://global/skin/scrollbar/thumb-vert-grip.gif");
351107c9 47}
48
b1eaa419 49thumb[orient="horizontal"] {
50 background-image: url("chrome://global/skin/scrollbar/thumb-horiz-grip.gif");
351107c9 51}
52
b1eaa419 53
351107c9 54thumb:active,
55thumb:hover:active {
56 background-color: #008484;
57}
58
59thumb:hover {
60 background-color: #FFCF00;
61}
b1eaa419 62
63thumb[disabled="true"] {
64 background-image: url("chrome://global/skin/scrollbar/thumb-vert-grip-disabled.gif");
65}
66
67thumb[orient="horizontal"][disabled="true"] {
68 background-image: url("chrome://global/skin/scrollbar/thumb-horiz-grip-disabled.gif");
69}
70
71/* ::::: scrollbar button ::::: */
72
73scrollbarbutton {
9c1ab967 74 background-color: #FF9F00;
b1eaa419 75}
76
a12570b9 77scrollbarbutton:hover:active,
78scrollbarbutton[active="true"] {
02920d2b
RK
79 padding-top: 2px;
80 padding-bottom: 0px;
81 -moz-padding-start: 2px;
82 -moz-padding-end: 0px;
3d6dd546 83}
b1eaa419 84
9c1ab967
RK
85scrollbarbutton:hover {
86 background-color: #FFCF00;
87}
88
89scrollbarbutton:hover:active {
90 background-color: #FF0000;
91}
92
93scrollbarbutton[disabled="true"] {
94 background-color: #8050B0 !important;
95}
96
f98e9249
RK
97/* XXX - scrollbar.xml always grabs the OS settings and we don't want that */
98scrollbarbutton[sbattr="scrollbar-up-bottom"],
99scrollbarbutton[sbattr="scrollbar-down-top"] {
100 display: none;
101}
102
03f6f39c 103/* ::::: square at the corner of two scrollbars ::::: */
104
105scrollcorner {
3d6dd546 106 -moz-binding: url("chrome://global/content/bindings/scrollbar.xml#scrollbar-base");
107 cursor: default;
03f6f39c 108 background-color: #000000;
6046f027 109 width: 13px;
03f6f39c 110}
111
b1eaa419 112/* ..... increment .... */
113
114scrollbarbutton[type="increment"] {
9c1ab967 115 background-image: url("chrome://global/skin/scrollbar/arrow-right.png");
569543b3 116 border-radius: 0 50% 50% 0;
02920d2b
RK
117 margin: 0px;
118 -moz-margin-start: 3px;
b1eaa419 119}
120
b1eaa419 121scrollbar[orient="vertical"] > scrollbarbutton[type="increment"] {
9c1ab967 122 background-image: url("chrome://global/skin/scrollbar/arrow-down.png");
569543b3 123 border-radius: 0 0 50% 50%;
02920d2b 124 margin: 3px 0px 0px;
b1eaa419 125}
126
b1eaa419 127/* ..... decrement .... */
128
129scrollbarbutton[type="decrement"] {
9c1ab967 130 background-image: url("chrome://global/skin/scrollbar/arrow-left.png");
569543b3 131 border-radius: 50% 0 0 50%;
02920d2b
RK
132 margin: 0px;
133 -moz-margin-end: 3px;
b1eaa419 134}
135
b1eaa419 136scrollbar[orient="vertical"] > scrollbarbutton[type="decrement"] {
9c1ab967 137 background-image: url("chrome://global/skin/scrollbar/arrow-up.png");
569543b3 138 border-radius: 50% 50% 0 0;
02920d2b 139 margin: 0px 0px 3px;
b1eaa419 140}
141
b1e5c9b1 142/* :::::::::::::::::::::::::::::::::::::::::::::::::::::::: */
143/* ::::::::::::::::::::: MEDIA PRINT :::::::::::::::::::::: */
144/* :::::::::::::::::::::::::::::::::::::::::::::::::::::::: */
145@media print {
146 /* ::::: scrollbar ::::: */
147
148 html|div scrollbar {
149 -moz-appearance: scrollbartrack-horizontal;
150 -moz-binding: url("chrome://global/content/bindings/scrollbar.xml#scrollbar");
151 cursor: default;
152 background: url("chrome://global/skin/scrollbar/slider.gif") scrollbar;
153 }
154
3d6dd546 155 html|div scrollbar[orient="vertical"]
b1e5c9b1 156 {
157 -moz-appearance: scrollbartrack-vertical;
158 }
159
160 /* ::::: borders for thumb and buttons ::::: */
161
162 html|div thumb,
163 html|div scrollbarbutton {
164 border: 2px solid;
165 -moz-border-top-colors: ThreeDLightShadow ThreeDHighlight;
166 -moz-border-right-colors: ThreeDDarkShadow ThreeDShadow;
167 -moz-border-bottom-colors: ThreeDDarkShadow ThreeDShadow;
168 -moz-border-left-colors: ThreeDLightShadow ThreeDHighlight;
169 background-color: -moz-Dialog;
170 }
171
172 /* ::::: thumb (horizontal) ::::: */
173
174 html|div thumb {
175 -moz-appearance: scrollbarthumb-vertical;
176 min-height: 8px;
177 }
178
179 html|div thumb[orient="horizontal"] {
180 -moz-appearance: scrollbarthumb-horizontal;
181 min-width: 8px;
182 }
183
b1e5c9b1 184 /* ::::: scrollbar button ::::: */
185
186 html|div scrollbarbutton {
cfae8c74 187 background: -moz-Dialog no-repeat 50% 50%;
b1e5c9b1 188 min-width: 16px;
189 min-height: 16px;
190 }
191
a12570b9 192 html|div scrollbarbutton:hover:active,
193 html|div scrollbarbutton[active="true"] {
b1e5c9b1 194 -moz-border-top-colors: ThreeDShadow -moz-Dialog;
195 -moz-border-right-colors: ThreeDShadow -moz-Dialog;
196 -moz-border-bottom-colors: ThreeDShadow -moz-Dialog;
197 -moz-border-left-colors: ThreeDShadow -moz-Dialog;
cfae8c74 198 background-position: 60% 60%;
b1e5c9b1 199 }
200
201 /* ..... increment .... */
202
203 html|div scrollbarbutton[type="increment"] {
204 -moz-appearance: scrollbarbutton-right;
205 background-image: url("chrome://global/skin/arrow/arrow-rit.gif")
206 }
207
208 html|div scrollbar[orient="vertical"] > scrollbarbutton[type="increment"] {
209 -moz-appearance: scrollbarbutton-down;
210 background-image: url("chrome://global/skin/arrow/arrow-dn.gif")
211 }
212
213 /* ..... decrement .... */
214
215 html|div scrollbarbutton[type="decrement"] {
216 -moz-appearance: scrollbarbutton-left;
217 background-image: url("chrome://global/skin/arrow/arrow-lft.gif")
218 }
219
220 html|div scrollbar[orient="vertical"] > scrollbarbutton[type="decrement"] {
221 -moz-appearance: scrollbarbutton-up;
222 background-image: url("chrome://global/skin/arrow/arrow-up.gif")
223 }
224
03f6f39c 225}