|
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/. */ |
|
4 |
|
5 /* all localizable skin settings shall live here */ |
|
6 @import url("chrome://global/locale/intl.css"); |
|
7 |
|
8 %include shared.inc |
|
9 @namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"); |
|
10 |
|
11 /* ::::: XBL bindings ::::: */ |
|
12 |
|
13 menulist > menupopup, |
|
14 .menulist-menupopup { |
|
15 -moz-binding: url("chrome://global/content/bindings/popup.xml#popup-scrollbars"); |
|
16 } |
|
17 |
|
18 .menulist-compact { |
|
19 -moz-binding: url("chrome://global/content/bindings/menulist.xml#menulist-compact"); |
|
20 } |
|
21 |
|
22 /* ::::: draggable elements ::::: */ |
|
23 |
|
24 toolbar:not([nowindowdrag="true"]) { |
|
25 -moz-binding: url("chrome://global/content/bindings/toolbar.xml#toolbar-drag"); |
|
26 } |
|
27 |
|
28 statusbar:not([nowindowdrag="true"]) { |
|
29 -moz-binding: url("chrome://global/content/bindings/general.xml#statusbar-drag"); |
|
30 } |
|
31 |
|
32 windowdragbox { |
|
33 -moz-binding: url("chrome://global/content/bindings/general.xml#windowdragbox"); |
|
34 } |
|
35 |
|
36 /* ::::: root elements ::::: */ |
|
37 |
|
38 window, |
|
39 page, |
|
40 dialog, |
|
41 wizard, |
|
42 prefwindow { |
|
43 -moz-appearance: dialog; |
|
44 background-color: #FFFFFF; |
|
45 color: -moz-DialogText; |
|
46 font: message-box; |
|
47 } |
|
48 |
|
49 prefwindow[type="child"] { |
|
50 padding-top: 18px; |
|
51 padding-bottom: 15px; |
|
52 -moz-padding-start: 18px; |
|
53 -moz-padding-end: 20px; |
|
54 } |
|
55 |
|
56 /* deprecated */ |
|
57 window.dialog { |
|
58 padding-top: 8px; |
|
59 padding-bottom: 10px; |
|
60 -moz-padding-start: 8px; |
|
61 -moz-padding-end: 10px; |
|
62 } |
|
63 |
|
64 /* ::::: alert icons :::::*/ |
|
65 |
|
66 .message-icon, |
|
67 .alert-icon, |
|
68 .error-icon, |
|
69 .question-icon { |
|
70 width: 64px; |
|
71 height: 64px; |
|
72 margin: 6px; |
|
73 -moz-margin-end: 20px; |
|
74 } |
|
75 |
|
76 .message-icon { |
|
77 list-style-image: url("chrome://global/skin/icons/information-64.png"); |
|
78 } |
|
79 |
|
80 .alert-icon { |
|
81 list-style-image: url("chrome://global/skin/icons/warning-64.png"); |
|
82 } |
|
83 |
|
84 .error-icon { |
|
85 list-style-image: url("chrome://global/skin/icons/error-64.png"); |
|
86 } |
|
87 |
|
88 .question-icon { |
|
89 list-style-image: url("chrome://global/skin/icons/question-64.png"); |
|
90 } |
|
91 |
|
92 /* ::::: iframe ::::: */ |
|
93 |
|
94 iframe { |
|
95 border: none; |
|
96 width: 100px; |
|
97 height: 100px; |
|
98 min-width: 10px; |
|
99 min-height: 10px; |
|
100 } |
|
101 |
|
102 /* ::::: statusbar ::::: */ |
|
103 |
|
104 statusbar { |
|
105 min-width: 1px; /* DON'T DELETE! |
|
106 Prevents hiding of scrollbars in browser when window is made smaller.*/ |
|
107 min-height: 15px !important; |
|
108 margin: 0px !important; |
|
109 /* need to use -moz-padding-end when/if bug 631729 gets fixed: */ |
|
110 padding: 0px 16px 1px 1px; |
|
111 -moz-appearance: statusbar; |
|
112 text-shadow: rgba(255, 255, 255, 0.4) 0 1px; |
|
113 } |
|
114 |
|
115 statusbarpanel { |
|
116 -moz-box-align: center; |
|
117 -moz-box-pack: center; |
|
118 padding: 0 4px; |
|
119 } |
|
120 |
|
121 .statusbarpanel-iconic { |
|
122 padding: 0px; |
|
123 } |
|
124 |
|
125 /* ::::: miscellaneous formatting ::::: */ |
|
126 |
|
127 :root:-moz-lwtheme, |
|
128 [lwthemefooter="true"] { |
|
129 -moz-appearance: none; |
|
130 } |
|
131 |
|
132 :root:-moz-lwtheme-darktext { |
|
133 text-shadow: 0 -0.5px 1.5px white; |
|
134 } |
|
135 |
|
136 :root:-moz-lwtheme-brighttext { |
|
137 text-shadow: 1px 1px 1.5px black; |
|
138 } |
|
139 |
|
140 statusbar:-moz-lwtheme { |
|
141 -moz-appearance: none; |
|
142 background: none; |
|
143 border-style: none; |
|
144 text-shadow: inherit; |
|
145 } |
|
146 |
|
147 .inset { |
|
148 border: 1px solid ThreeDShadow; |
|
149 border-right-color: ThreeDHighlight; |
|
150 border-bottom-color: ThreeDHighlight; |
|
151 margin: 0 5px 5px; |
|
152 } |
|
153 |
|
154 .outset { |
|
155 border: 1px solid ThreeDShadow; |
|
156 border-left-color: ThreeDHighlight; |
|
157 border-top-color: ThreeDHighlight; |
|
158 } |
|
159 |
|
160 separator:not([orient="vertical"]) { |
|
161 height: 1.5em; |
|
162 } |
|
163 separator[orient="vertical"] { |
|
164 width: 1.5em; |
|
165 } |
|
166 |
|
167 separator.thin:not([orient="vertical"]) { |
|
168 height: 0.5em; |
|
169 } |
|
170 separator.thin[orient="vertical"] { |
|
171 width: 0.5em; |
|
172 } |
|
173 |
|
174 separator.groove:not([orient="vertical"]) { |
|
175 border-top: 1px solid #A3A3A3; |
|
176 height: 0; |
|
177 margin-top: 0.4em; |
|
178 margin-bottom: 0.4em; |
|
179 } |
|
180 separator.groove[orient="vertical"] { |
|
181 border-left: 1px solid #A3A3A3; |
|
182 width: 0; |
|
183 margin-left: 0.4em; |
|
184 margin-right: 0.4em; |
|
185 } |
|
186 |
|
187 .plain { |
|
188 -moz-appearance: none; |
|
189 margin: 0 !important; |
|
190 border: none; |
|
191 padding: 0; |
|
192 } |
|
193 |
|
194 description, |
|
195 label { |
|
196 cursor: default; |
|
197 } |
|
198 |
|
199 label { |
|
200 margin: 2px 6px; |
|
201 } |
|
202 |
|
203 label[disabled="true"] { |
|
204 color: GrayText; |
|
205 } |
|
206 |
|
207 .tooltip-label { |
|
208 margin: 0; |
|
209 } |
|
210 |
|
211 description { |
|
212 margin-bottom: 4px; |
|
213 } |
|
214 |
|
215 .header { |
|
216 margin-bottom: 6px; |
|
217 font-weight: bold; |
|
218 } |
|
219 |
|
220 .monospace { |
|
221 font-family: monospace; |
|
222 } |
|
223 |
|
224 .indent { |
|
225 -moz-margin-start: 23px; |
|
226 } |
|
227 |
|
228 .box-padded { |
|
229 padding: 5px; |
|
230 } |
|
231 |
|
232 .spaced { |
|
233 margin: 3px 5px 4px; |
|
234 } |
|
235 |
|
236 .wizard-box { |
|
237 padding: 20px 44px 10px; |
|
238 } |
|
239 |
|
240 .text-link { |
|
241 color: -moz-nativehyperlinktext; |
|
242 cursor: pointer; |
|
243 } |
|
244 |
|
245 .text-link:hover { |
|
246 text-decoration: underline; |
|
247 } |
|
248 |
|
249 .text-link:-moz-focusring { |
|
250 box-shadow: @focusRingShadow@; |
|
251 } |
|
252 |
|
253 .toolbar-focustarget { |
|
254 -moz-user-focus: ignore !important; |
|
255 } |
|
256 |
|
257 notification > button { |
|
258 margin: 0 3px; |
|
259 padding: 1px 10px; |
|
260 min-width: 60px; |
|
261 min-height: 16px; |
|
262 -moz-appearance: none; |
|
263 border-radius: 10000px; |
|
264 border: @roundButtonBorder@; |
|
265 text-shadow: @loweredShadow@; |
|
266 background: @roundButtonBackground@; |
|
267 box-shadow: @roundButtonShadow@; |
|
268 } |
|
269 |
|
270 notification > button:active:hover { |
|
271 background: @roundButtonPressedBackground@; |
|
272 box-shadow: @roundButtonPressedShadow@; |
|
273 } |
|
274 |
|
275 notification > button:-moz-focusring { |
|
276 box-shadow: @focusRingShadow@, @roundButtonShadow@; |
|
277 } |
|
278 |
|
279 notification > button:active:hover:-moz-focusring { |
|
280 box-shadow: @focusRingShadow@, @roundButtonPressedShadow@; |
|
281 } |
|
282 |
|
283 notification > button > .button-box > .button-text { |
|
284 margin: 0 !important; |
|
285 } |
|
286 |
|
287 /* :::::: autoscroll popup ::::: */ |
|
288 |
|
289 .autoscroller { |
|
290 height: 28px; |
|
291 width: 28px; |
|
292 border: none; |
|
293 margin: -14px; |
|
294 padding: 0; |
|
295 background-image: url("chrome://global/skin/icons/autoscroll.png"); |
|
296 background-color: transparent; |
|
297 background-position: right top; |
|
298 -moz-appearance: none; |
|
299 -moz-window-shadow: none; |
|
300 } |
|
301 |
|
302 .autoscroller[scrolldir="NS"] { |
|
303 background-position: right center; |
|
304 } |
|
305 |
|
306 .autoscroller[scrolldir="EW"] { |
|
307 background-position: right bottom; |
|
308 } |
|
309 |
|
310 /* autorepeatbuttons in menus */ |
|
311 |
|
312 .popup-internal-box > autorepeatbutton { |
|
313 height: 15px; |
|
314 position: relative; |
|
315 /* Here we're using a little magic. |
|
316 * The arrow button is supposed to overlay the scrollbox, blocking |
|
317 * everything under it from reaching the screen. However, the menu background |
|
318 * is slightly transparent, so how can we block something completely without |
|
319 * messing up the transparency? It's easy: The native theming of the |
|
320 * "menuitem" appearance uses CGContextClearRect before drawing, which |
|
321 * clears everything under it. |
|
322 * Without help from native theming this effect wouldn't be achievable. |
|
323 */ |
|
324 -moz-appearance: menuitem; |
|
325 } |
|
326 |
|
327 .popup-internal-box > .autorepeatbutton-up { |
|
328 margin-bottom: -15px; |
|
329 } |
|
330 |
|
331 .popup-internal-box > .autorepeatbutton-down { |
|
332 margin-top: -15px; |
|
333 } |
|
334 |
|
335 .popup-internal-box > autorepeatbutton[disabled="true"] { |
|
336 visibility: collapse; |
|
337 } |
|
338 |
|
339 /* :::::: Close button icons ::::: */ |
|
340 |
|
341 .close-icon { |
|
342 list-style-image: url("chrome://global/skin/icons/close.png"); |
|
343 -moz-image-region: rect(0, 16px, 16px, 0); |
|
344 } |
|
345 |
|
346 .close-icon:hover { |
|
347 -moz-image-region: rect(0, 32px, 16px, 16px); |
|
348 } |
|
349 |
|
350 .close-icon:hover:active { |
|
351 -moz-image-region: rect(0, 48px, 16px, 32px); |
|
352 } |
|
353 |
|
354 @media (min-resolution: 2dppx) { |
|
355 .close-icon > .button-icon, |
|
356 .close-icon > .toolbarbutton-icon { |
|
357 width: 16px; |
|
358 } |
|
359 |
|
360 .close-icon { |
|
361 list-style-image: url("chrome://global/skin/icons/close@2x.png"); |
|
362 -moz-image-region: rect(0, 32px, 32px, 0); |
|
363 } |
|
364 |
|
365 .close-icon:hover { |
|
366 -moz-image-region: rect(0, 64px, 32px, 32px); |
|
367 } |
|
368 |
|
369 .close-icon:hover:active { |
|
370 -moz-image-region: rect(0, 96px, 32px, 64px); |
|
371 } |
|
372 } |