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