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 | |
38 | @namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"); |
b1e5c9b1 |
39 | @namespace html url("http://www.w3.org/1999/xhtml"); /* namespace for HTML elements */ |
351107c9 |
40 | |
b1eaa419 |
41 | /* ===== scrollbars.css ================================================= |
42 | == Styles used by XUL scrollbar-related elements. |
43 | ======================================================================= */ |
351107c9 |
44 | |
b1eaa419 |
45 | /* ::::: scrollbar ::::: */ |
46 | |
47 | scrollbar { |
48 | -moz-binding: url("chrome://global/content/bindings/scrollbar.xml#scrollbar"); |
49 | cursor: default; |
50 | background-color: #000000; |
51 | } |
52 | |
53 | /* ::::: slider ::::: */ |
54 | |
55 | slider { |
56 | height: 13px; |
57 | } |
58 | |
59 | slider[orient="vertical"] { |
60 | width: 13px; |
61 | } |
62 | |
63 | /* ::::: borders for thumb and buttons ::::: */ |
64 | |
65 | thumb, |
66 | scrollbarbutton { |
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 | |
76 | thumb { |
77 | background-color: #9C9CFF; |
78 | background-image: url("chrome://global/skin/scrollbar/thumb-vert-grip.gif"); |
351107c9 |
79 | } |
80 | |
b1eaa419 |
81 | thumb[orient="horizontal"] { |
82 | background-image: url("chrome://global/skin/scrollbar/thumb-horiz-grip.gif"); |
351107c9 |
83 | } |
84 | |
b1eaa419 |
85 | |
351107c9 |
86 | thumb:active, |
87 | thumb:hover:active { |
88 | background-color: #008484; |
89 | } |
90 | |
91 | thumb:hover { |
92 | background-color: #FFCF00; |
93 | } |
b1eaa419 |
94 | |
95 | thumb[disabled="true"] { |
96 | background-image: url("chrome://global/skin/scrollbar/thumb-vert-grip-disabled.gif"); |
97 | } |
98 | |
99 | thumb[orient="horizontal"][disabled="true"] { |
100 | background-image: url("chrome://global/skin/scrollbar/thumb-horiz-grip-disabled.gif"); |
101 | } |
102 | |
103 | /* ::::: scrollbar button ::::: */ |
104 | |
105 | scrollbarbutton { |
106 | } |
107 | |
108 | scrollbarbutton:hover:active { |
109 | padding: 2px 0px 0px 2px; |
110 | } |
111 | |
112 | /* ..... increment .... */ |
113 | |
114 | scrollbarbutton[type="increment"] { |
115 | background-image: url("chrome://global/skin/scrollbar/button-right.gif"); |
116 | margin: 0px 0px 0px 3px; |
117 | } |
118 | |
119 | scrollbarbutton[type="increment"]:hover { |
120 | background-image: url("chrome://global/skin/scrollbar/button-right-hover.gif"); |
121 | } |
122 | |
123 | scrollbarbutton[type="increment"][disabled="true"] { |
124 | background-image: url("chrome://global/skin/scrollbar/button-right-disabled.gif") !important; |
125 | } |
126 | |
127 | scrollbar[orient="vertical"] > scrollbarbutton[type="increment"] { |
128 | background-image: url("chrome://global/skin/scrollbar/button-down.gif"); |
129 | margin: 3px 0px 0px 0px; |
130 | } |
131 | |
132 | scrollbar[orient="vertical"] > scrollbarbutton[type="increment"]:hover { |
133 | background-image: url("chrome://global/skin/scrollbar/button-down-hover.gif"); |
134 | } |
135 | |
136 | scrollbar[orient="vertical"] > scrollbarbutton[type="increment"][disabled="true"] { |
137 | background-image: url("chrome://global/skin/scrollbar/button-down-disabled.gif") !important; |
138 | } |
139 | |
140 | /* ..... decrement .... */ |
141 | |
142 | scrollbarbutton[type="decrement"] { |
143 | background-image: url("chrome://global/skin/scrollbar/button-left.gif"); |
144 | margin: 0px 3px 0px 0px; |
145 | } |
146 | |
147 | scrollbarbutton[type="decrement"]:hover { |
148 | background-image: url("chrome://global/skin/scrollbar/button-left-hover.gif"); |
149 | } |
150 | |
151 | scrollbarbutton[type="decrement"][disabled="true"] { |
152 | background-image: url("chrome://global/skin/scrollbar/button-left-disabled.gif") !important; |
153 | } |
154 | |
155 | scrollbar[orient="vertical"] > scrollbarbutton[type="decrement"] { |
156 | background-image: url("chrome://global/skin/scrollbar/button-up.gif"); |
157 | margin: 0px 0px 3px 0px; |
158 | } |
159 | |
160 | scrollbar[orient="vertical"] > scrollbarbutton[type="decrement"]:hover { |
161 | background-image: url("chrome://global/skin/scrollbar/button-up-hover.gif"); |
162 | } |
163 | |
164 | scrollbar[orient="vertical"] > scrollbarbutton[type="decrement"][disabled="true"] { |
165 | background-image: url("chrome://global/skin/scrollbar/button-up-disabled.gif") !important; |
166 | } |
b1e5c9b1 |
167 | |
168 | /* :::::::::::::::::::::::::::::::::::::::::::::::::::::::: */ |
169 | /* ::::::::::::::::::::: MEDIA PRINT :::::::::::::::::::::: */ |
170 | /* :::::::::::::::::::::::::::::::::::::::::::::::::::::::: */ |
171 | @media print { |
172 | /* ::::: scrollbar ::::: */ |
173 | |
174 | html|div scrollbar { |
175 | -moz-appearance: scrollbartrack-horizontal; |
176 | -moz-binding: url("chrome://global/content/bindings/scrollbar.xml#scrollbar"); |
177 | cursor: default; |
178 | background: url("chrome://global/skin/scrollbar/slider.gif") scrollbar; |
179 | } |
180 | |
181 | html|div scrollbar[orient="vertical"] |
182 | { |
183 | -moz-appearance: scrollbartrack-vertical; |
184 | } |
185 | |
186 | /* ::::: borders for thumb and buttons ::::: */ |
187 | |
188 | html|div thumb, |
189 | html|div scrollbarbutton { |
190 | border: 2px solid; |
191 | -moz-border-top-colors: ThreeDLightShadow ThreeDHighlight; |
192 | -moz-border-right-colors: ThreeDDarkShadow ThreeDShadow; |
193 | -moz-border-bottom-colors: ThreeDDarkShadow ThreeDShadow; |
194 | -moz-border-left-colors: ThreeDLightShadow ThreeDHighlight; |
195 | background-color: -moz-Dialog; |
196 | } |
197 | |
198 | /* ::::: thumb (horizontal) ::::: */ |
199 | |
200 | html|div thumb { |
201 | -moz-appearance: scrollbarthumb-vertical; |
202 | min-height: 8px; |
203 | } |
204 | |
205 | html|div thumb[orient="horizontal"] { |
206 | -moz-appearance: scrollbarthumb-horizontal; |
207 | min-width: 8px; |
208 | } |
209 | |
210 | html|div thumb > gripper { |
211 | -moz-appearance: scrollbargripper-vertical; |
212 | } |
213 | |
214 | html|div thumb[orient="horizontal"] > gripper { |
215 | -moz-appearance: scrollbargripper-horizontal; |
216 | } |
217 | |
218 | /* ::::: scrollbar button ::::: */ |
219 | |
220 | html|div scrollbarbutton { |
221 | background: -moz-Dialog no-repeat 0px 1px; |
222 | min-width: 16px; |
223 | min-height: 16px; |
224 | } |
225 | |
226 | html|div scrollbarbutton:hover:active { |
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: 1px 2px; |
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 | } |