start 2.0b1 dev cycle
[themes.git] / LCARStrek / global / scrollbars.css
CommitLineData
351107c9 1/* ***** BEGIN LICENSE BLOCK *****
2 * Version: MPL 1.1/GPL 2.0/LGPL 2.1
3 *
4 * The contents of this file are subject to the Mozilla Public License Version
5 * 1.1 (the "License"); you may not use this file except in compliance with
6 * the License. You may obtain a copy of the License at
7 * http://www.mozilla.org/MPL/
8 *
9 * Software distributed under the License is distributed on an "AS IS" basis,
10 * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
11 * for the specific language governing rights and limitations under the
12 * License.
13 *
14 * The Original Code is "Classic" theme of mozilla.org code.
15 *
16 * The Initial Developer of the Original Code is
17 * the Mozilla Organization.
18 * Portions created by the Initial Developer are Copyright (C) 1998-2001
19 * the Initial Developer. All Rights Reserved.
20 *
21 * Contributor(s):
22 * Robert Kaiser <KaiRo@KaiRo.at>
23 *
24 * Alternatively, the contents of this file may be used under the terms of
25 * either the GNU General Public License Version 2 or later (the "GPL"), or
26 * the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
27 * in which case the provisions of the GPL or the LGPL are applicable instead
28 * of those above. If you wish to allow use of your version of this file only
29 * under the terms of either the GPL or the LGPL, and not to allow others to
30 * use your version of this file under the terms of the MPL, indicate your
31 * decision by deleting the provisions above and replace them with the notice
32 * and other provisions required by the GPL or the LGPL. If you do not delete
33 * the provisions above, a recipient may use your version of this file under
34 * the terms of any one of the MPL, the GPL or the LGPL.
35 *
36 * ***** END LICENSE BLOCK ***** */
37
b1eaa419 38/* ===== scrollbars.css =================================================
39 == Styles used by XUL scrollbar-related elements.
40 ======================================================================= */
351107c9 41
f98e9249
RK
42@namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul");
43@namespace html url("http://www.w3.org/1999/xhtml"); /* namespace for HTML elements */
44
b1eaa419 45/* ::::: scrollbar ::::: */
46
47scrollbar {
48 -moz-binding: url("chrome://global/content/bindings/scrollbar.xml#scrollbar");
49 cursor: default;
50 background-color: #000000;
51}
52
53/* ::::: slider ::::: */
54
55slider {
56 height: 13px;
57}
58
59slider[orient="vertical"] {
60 width: 13px;
61}
62
63/* ::::: borders for thumb and buttons ::::: */
64
65thumb,
66scrollbarbutton {
67 border: none;
68 background: transparent 50% 50% no-repeat;
69 padding: 1px;
70 min-width: 13px;
71 min-height: 13px;
351107c9 72}
73
b1eaa419 74/* ::::: thumb ::::: */
75
76thumb {
77 background-color: #9C9CFF;
78 background-image: url("chrome://global/skin/scrollbar/thumb-vert-grip.gif");
351107c9 79}
80
b1eaa419 81thumb[orient="horizontal"] {
82 background-image: url("chrome://global/skin/scrollbar/thumb-horiz-grip.gif");
351107c9 83}
84
b1eaa419 85
351107c9 86thumb:active,
87thumb:hover:active {
88 background-color: #008484;
89}
90
91thumb:hover {
92 background-color: #FFCF00;
93}
b1eaa419 94
95thumb[disabled="true"] {
96 background-image: url("chrome://global/skin/scrollbar/thumb-vert-grip-disabled.gif");
97}
98
99thumb[orient="horizontal"][disabled="true"] {
100 background-image: url("chrome://global/skin/scrollbar/thumb-horiz-grip-disabled.gif");
101}
102
103/* ::::: scrollbar button ::::: */
104
105scrollbarbutton {
106}
107
a12570b9 108scrollbarbutton:hover:active,
109scrollbarbutton[active="true"] {
02920d2b
RK
110 padding-top: 2px;
111 padding-bottom: 0px;
112 -moz-padding-start: 2px;
113 -moz-padding-end: 0px;
3d6dd546 114}
b1eaa419 115
f98e9249
RK
116/* XXX - scrollbar.xml always grabs the OS settings and we don't want that */
117scrollbarbutton[sbattr="scrollbar-up-bottom"],
118scrollbarbutton[sbattr="scrollbar-down-top"] {
119 display: none;
120}
121
03f6f39c 122/* ::::: square at the corner of two scrollbars ::::: */
123
124scrollcorner {
3d6dd546 125 -moz-binding: url("chrome://global/content/bindings/scrollbar.xml#scrollbar-base");
126 cursor: default;
03f6f39c 127 background-color: #000000;
6046f027 128 width: 13px;
03f6f39c 129}
130
b1eaa419 131/* ..... increment .... */
132
133scrollbarbutton[type="increment"] {
134 background-image: url("chrome://global/skin/scrollbar/button-right.gif");
02920d2b
RK
135 margin: 0px;
136 -moz-margin-start: 3px;
b1eaa419 137}
138
139scrollbarbutton[type="increment"]:hover {
140 background-image: url("chrome://global/skin/scrollbar/button-right-hover.gif");
141}
142
143scrollbarbutton[type="increment"][disabled="true"] {
144 background-image: url("chrome://global/skin/scrollbar/button-right-disabled.gif") !important;
145}
146
147scrollbar[orient="vertical"] > scrollbarbutton[type="increment"] {
148 background-image: url("chrome://global/skin/scrollbar/button-down.gif");
02920d2b 149 margin: 3px 0px 0px;
b1eaa419 150}
151
152scrollbar[orient="vertical"] > scrollbarbutton[type="increment"]:hover {
153 background-image: url("chrome://global/skin/scrollbar/button-down-hover.gif");
154}
155
156scrollbar[orient="vertical"] > scrollbarbutton[type="increment"][disabled="true"] {
157 background-image: url("chrome://global/skin/scrollbar/button-down-disabled.gif") !important;
158}
159
160/* ..... decrement .... */
161
162scrollbarbutton[type="decrement"] {
163 background-image: url("chrome://global/skin/scrollbar/button-left.gif");
02920d2b
RK
164 margin: 0px;
165 -moz-margin-end: 3px;
b1eaa419 166}
167
168scrollbarbutton[type="decrement"]:hover {
169 background-image: url("chrome://global/skin/scrollbar/button-left-hover.gif");
170}
171
172scrollbarbutton[type="decrement"][disabled="true"] {
173 background-image: url("chrome://global/skin/scrollbar/button-left-disabled.gif") !important;
174}
175
176scrollbar[orient="vertical"] > scrollbarbutton[type="decrement"] {
177 background-image: url("chrome://global/skin/scrollbar/button-up.gif");
02920d2b 178 margin: 0px 0px 3px;
b1eaa419 179}
180
181scrollbar[orient="vertical"] > scrollbarbutton[type="decrement"]:hover {
182 background-image: url("chrome://global/skin/scrollbar/button-up-hover.gif");
183}
184
185scrollbar[orient="vertical"] > scrollbarbutton[type="decrement"][disabled="true"] {
186 background-image: url("chrome://global/skin/scrollbar/button-up-disabled.gif") !important;
187}
b1e5c9b1 188
189/* :::::::::::::::::::::::::::::::::::::::::::::::::::::::: */
190/* ::::::::::::::::::::: MEDIA PRINT :::::::::::::::::::::: */
191/* :::::::::::::::::::::::::::::::::::::::::::::::::::::::: */
192@media print {
193 /* ::::: scrollbar ::::: */
194
195 html|div scrollbar {
196 -moz-appearance: scrollbartrack-horizontal;
197 -moz-binding: url("chrome://global/content/bindings/scrollbar.xml#scrollbar");
198 cursor: default;
199 background: url("chrome://global/skin/scrollbar/slider.gif") scrollbar;
200 }
201
3d6dd546 202 html|div scrollbar[orient="vertical"]
b1e5c9b1 203 {
204 -moz-appearance: scrollbartrack-vertical;
205 }
206
207 /* ::::: borders for thumb and buttons ::::: */
208
209 html|div thumb,
210 html|div scrollbarbutton {
211 border: 2px solid;
212 -moz-border-top-colors: ThreeDLightShadow ThreeDHighlight;
213 -moz-border-right-colors: ThreeDDarkShadow ThreeDShadow;
214 -moz-border-bottom-colors: ThreeDDarkShadow ThreeDShadow;
215 -moz-border-left-colors: ThreeDLightShadow ThreeDHighlight;
216 background-color: -moz-Dialog;
217 }
218
219 /* ::::: thumb (horizontal) ::::: */
220
221 html|div thumb {
222 -moz-appearance: scrollbarthumb-vertical;
223 min-height: 8px;
224 }
225
226 html|div thumb[orient="horizontal"] {
227 -moz-appearance: scrollbarthumb-horizontal;
228 min-width: 8px;
229 }
230
b1e5c9b1 231 /* ::::: scrollbar button ::::: */
232
233 html|div scrollbarbutton {
cfae8c74 234 background: -moz-Dialog no-repeat 50% 50%;
b1e5c9b1 235 min-width: 16px;
236 min-height: 16px;
237 }
238
a12570b9 239 html|div scrollbarbutton:hover:active,
240 html|div scrollbarbutton[active="true"] {
b1e5c9b1 241 -moz-border-top-colors: ThreeDShadow -moz-Dialog;
242 -moz-border-right-colors: ThreeDShadow -moz-Dialog;
243 -moz-border-bottom-colors: ThreeDShadow -moz-Dialog;
244 -moz-border-left-colors: ThreeDShadow -moz-Dialog;
cfae8c74 245 background-position: 60% 60%;
b1e5c9b1 246 }
247
248 /* ..... increment .... */
249
250 html|div scrollbarbutton[type="increment"] {
251 -moz-appearance: scrollbarbutton-right;
252 background-image: url("chrome://global/skin/arrow/arrow-rit.gif")
253 }
254
255 html|div scrollbar[orient="vertical"] > scrollbarbutton[type="increment"] {
256 -moz-appearance: scrollbarbutton-down;
257 background-image: url("chrome://global/skin/arrow/arrow-dn.gif")
258 }
259
260 /* ..... decrement .... */
261
262 html|div scrollbarbutton[type="decrement"] {
263 -moz-appearance: scrollbarbutton-left;
264 background-image: url("chrome://global/skin/arrow/arrow-lft.gif")
265 }
266
267 html|div scrollbar[orient="vertical"] > scrollbarbutton[type="decrement"] {
268 -moz-appearance: scrollbarbutton-up;
269 background-image: url("chrome://global/skin/arrow/arrow-up.gif")
270 }
271
03f6f39c 272}