bump app versions
[themes.git] / LCARStrek / global / scrollbars.css
... / ...
CommitLineData
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
38/* ===== scrollbars.css =================================================
39 == Styles used by XUL scrollbar-related elements.
40 ======================================================================= */
41
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
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 background-color: #794900;
58}
59
60slider[orient="vertical"] {
61 width: 13px;
62}
63
64/* ::::: borders for thumb and buttons ::::: */
65
66thumb,
67scrollbarbutton {
68 border: none;
69 background: transparent 50% 50% no-repeat;
70 padding: 1px;
71 min-width: 13px;
72 min-height: 13px;
73}
74
75/* ::::: thumb ::::: */
76
77thumb {
78 background-color: #9C9CFF;
79 background-image: url("chrome://global/skin/scrollbar/thumb-vert-grip.gif");
80}
81
82thumb[orient="horizontal"] {
83 background-image: url("chrome://global/skin/scrollbar/thumb-horiz-grip.gif");
84}
85
86
87thumb:active,
88thumb:hover:active {
89 background-color: #008484;
90}
91
92thumb:hover {
93 background-color: #FFCF00;
94}
95
96thumb[disabled="true"] {
97 background-image: url("chrome://global/skin/scrollbar/thumb-vert-grip-disabled.gif");
98}
99
100thumb[orient="horizontal"][disabled="true"] {
101 background-image: url("chrome://global/skin/scrollbar/thumb-horiz-grip-disabled.gif");
102}
103
104/* ::::: scrollbar button ::::: */
105
106scrollbarbutton {
107 background-color: #FF9F00;
108}
109
110scrollbarbutton:hover:active,
111scrollbarbutton[active="true"] {
112 padding-top: 2px;
113 padding-bottom: 0px;
114 -moz-padding-start: 2px;
115 -moz-padding-end: 0px;
116}
117
118scrollbarbutton:hover {
119 background-color: #FFCF00;
120}
121
122scrollbarbutton:hover:active {
123 background-color: #FF0000;
124}
125
126scrollbarbutton[disabled="true"] {
127 background-color: #8050B0 !important;
128}
129
130/* XXX - scrollbar.xml always grabs the OS settings and we don't want that */
131scrollbarbutton[sbattr="scrollbar-up-bottom"],
132scrollbarbutton[sbattr="scrollbar-down-top"] {
133 display: none;
134}
135
136/* ::::: square at the corner of two scrollbars ::::: */
137
138scrollcorner {
139 -moz-binding: url("chrome://global/content/bindings/scrollbar.xml#scrollbar-base");
140 cursor: default;
141 background-color: #000000;
142 width: 13px;
143}
144
145/* ..... increment .... */
146
147scrollbarbutton[type="increment"] {
148 background-image: url("chrome://global/skin/scrollbar/arrow-right.png");
149 border-radius: 0 50% 50% 0;
150 margin: 0px;
151 -moz-margin-start: 3px;
152}
153
154scrollbar[orient="vertical"] > scrollbarbutton[type="increment"] {
155 background-image: url("chrome://global/skin/scrollbar/arrow-down.png");
156 border-radius: 0 0 50% 50%;
157 margin: 3px 0px 0px;
158}
159
160/* ..... decrement .... */
161
162scrollbarbutton[type="decrement"] {
163 background-image: url("chrome://global/skin/scrollbar/arrow-left.png");
164 border-radius: 50% 0 0 50%;
165 margin: 0px;
166 -moz-margin-end: 3px;
167}
168
169scrollbar[orient="vertical"] > scrollbarbutton[type="decrement"] {
170 background-image: url("chrome://global/skin/scrollbar/arrow-up.png");
171 border-radius: 50% 50% 0 0;
172 margin: 0px 0px 3px;
173}
174
175/* :::::::::::::::::::::::::::::::::::::::::::::::::::::::: */
176/* ::::::::::::::::::::: MEDIA PRINT :::::::::::::::::::::: */
177/* :::::::::::::::::::::::::::::::::::::::::::::::::::::::: */
178@media print {
179 /* ::::: scrollbar ::::: */
180
181 html|div scrollbar {
182 -moz-appearance: scrollbartrack-horizontal;
183 -moz-binding: url("chrome://global/content/bindings/scrollbar.xml#scrollbar");
184 cursor: default;
185 background: url("chrome://global/skin/scrollbar/slider.gif") scrollbar;
186 }
187
188 html|div scrollbar[orient="vertical"]
189 {
190 -moz-appearance: scrollbartrack-vertical;
191 }
192
193 /* ::::: borders for thumb and buttons ::::: */
194
195 html|div thumb,
196 html|div scrollbarbutton {
197 border: 2px solid;
198 -moz-border-top-colors: ThreeDLightShadow ThreeDHighlight;
199 -moz-border-right-colors: ThreeDDarkShadow ThreeDShadow;
200 -moz-border-bottom-colors: ThreeDDarkShadow ThreeDShadow;
201 -moz-border-left-colors: ThreeDLightShadow ThreeDHighlight;
202 background-color: -moz-Dialog;
203 }
204
205 /* ::::: thumb (horizontal) ::::: */
206
207 html|div thumb {
208 -moz-appearance: scrollbarthumb-vertical;
209 min-height: 8px;
210 }
211
212 html|div thumb[orient="horizontal"] {
213 -moz-appearance: scrollbarthumb-horizontal;
214 min-width: 8px;
215 }
216
217 /* ::::: scrollbar button ::::: */
218
219 html|div scrollbarbutton {
220 background: -moz-Dialog no-repeat 50% 50%;
221 min-width: 16px;
222 min-height: 16px;
223 }
224
225 html|div scrollbarbutton:hover:active,
226 html|div scrollbarbutton[active="true"] {
227 -moz-border-top-colors: ThreeDShadow -moz-Dialog;
228 -moz-border-right-colors: ThreeDShadow -moz-Dialog;
229 -moz-border-bottom-colors: ThreeDShadow -moz-Dialog;
230 -moz-border-left-colors: ThreeDShadow -moz-Dialog;
231 background-position: 60% 60%;
232 }
233
234 /* ..... increment .... */
235
236 html|div scrollbarbutton[type="increment"] {
237 -moz-appearance: scrollbarbutton-right;
238 background-image: url("chrome://global/skin/arrow/arrow-rit.gif")
239 }
240
241 html|div scrollbar[orient="vertical"] > scrollbarbutton[type="increment"] {
242 -moz-appearance: scrollbarbutton-down;
243 background-image: url("chrome://global/skin/arrow/arrow-dn.gif")
244 }
245
246 /* ..... decrement .... */
247
248 html|div scrollbarbutton[type="decrement"] {
249 -moz-appearance: scrollbarbutton-left;
250 background-image: url("chrome://global/skin/arrow/arrow-lft.gif")
251 }
252
253 html|div scrollbar[orient="vertical"] > scrollbarbutton[type="decrement"] {
254 -moz-appearance: scrollbarbutton-up;
255 background-image: url("chrome://global/skin/arrow/arrow-up.gif")
256 }
257
258}