Commit | Line | Data |
---|---|---|
9099c61d RK |
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/. */ | |
351107c9 | 4 | |
5 | /* ===== global.css ===================================================== | |
6 | == Styles that apply everywhere. | |
7 | ======================================================================= */ | |
8 | ||
9 | /* all localizable skin settings shall live here */ | |
10 | @import url("chrome://global/locale/intl.css"); | |
11 | ||
351107c9 | 12 | @namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"); |
13 | ||
b1eaa419 | 14 | /* ::::: XBL bindings ::::: */ |
351107c9 | 15 | |
3d6dd546 | 16 | checkbox { |
17 | -moz-binding: url("chrome://global/content/bindings/checkbox.xml#checkbox-with-spacing"); | |
18 | } | |
19 | ||
b1eaa419 | 20 | radio { |
3d6dd546 | 21 | -moz-binding: url("chrome://global/skin/globalBindings.xml#radio-with-spacing"); |
351107c9 | 22 | } |
23 | ||
e82e1bf4 | 24 | menulist > menupopup { |
b1eaa419 | 25 | -moz-binding: url("chrome://global/content/bindings/popup.xml#popup-scrollbars"); |
351107c9 | 26 | } |
27 | ||
351107c9 | 28 | /* LCARStrek special bindings */ |
29 | ||
b1eaa419 | 30 | statusbar { |
31 | -moz-binding: url("chrome://global/skin/globalBindings.xml#statusbar"); | |
32 | } | |
33 | ||
34 | toolbar { | |
35 | -moz-binding: url("chrome://global/skin/globalBindings.xml#toolbar"); | |
36 | } | |
37 | ||
38 | menubar { | |
39 | -moz-binding: url("chrome://global/skin/globalBindings.xml#menubar"); | |
dd676468 RK |
40 | } |
41 | ||
42 | toolbaritem > menubar { | |
b36fc72e | 43 | -moz-binding: url("chrome://global/content/bindings/toolbar.xml#menubar"); |
b1eaa419 | 44 | } |
3a121502 | 45 | |
ee49f520 | 46 | @media (-moz-mac-graphite-theme), (-moz-mac-lion-theme) { |
3cf61cef | 47 | /* This is a hackish workaround to cover most of Mac OS until bug 1060941 gets fixed. */ |
96b206fe RK |
48 | toolbar.chromeclass-menubar { |
49 | -moz-binding: url("chrome://global/content/bindings/toolbar.xml#toolbar"); | |
50 | border-bottom: none; | |
51 | } | |
52 | } | |
53 | ||
689d5552 RK |
54 | /* ::::: Variables ::::: */ |
55 | :root { | |
987dae1b RK |
56 | --arrowpanel-padding: 6px; |
57 | --arrowpanel-background: #000000; | |
58 | --arrowpanel-color: #FF9F00; | |
59 | --arrowpanel-border-color: #FF9F00; | |
689d5552 RK |
60 | } |
61 | ||
b1eaa419 | 62 | /* ::::: root elements ::::: */ |
63 | ||
64 | window, | |
65 | page, | |
66 | dialog, | |
c79d2bbe RK |
67 | wizard, |
68 | prefwindow { | |
b1eaa419 | 69 | background-color: #000000; |
70 | color: #FF9F00; | |
71 | /* font: 3mm "Final Frontier",tahoma,arial,helvetica,sans-serif; */ | |
4ed82c79 | 72 | font: 11px "Liberation Sans",Arial,Tahoma,Helvetica,sans-serif; |
b1eaa419 | 73 | padding: 3px; |
74 | } | |
75 | ||
76 | /* deprecated */ | |
3d6dd546 | 77 | window.dialog { |
b1eaa419 | 78 | background-color: #000000; |
02920d2b RK |
79 | padding-top: 8px; |
80 | padding-bottom: 10px; | |
dae45075 RK |
81 | padding-inline-start: 8px; |
82 | padding-inline-end: 10px; | |
b1eaa419 | 83 | } |
84 | ||
b1eaa419 | 85 | /* ::::: alert icons :::::*/ |
86 | ||
87 | .message-icon, | |
88 | .alert-icon, | |
89 | .error-icon, | |
c79d2bbe RK |
90 | .question-icon, |
91 | .authentication-icon { | |
b1eaa419 | 92 | width: 32px; |
93 | height: 32px; | |
94 | } | |
95 | ||
96 | .message-icon { | |
97 | list-style-image: url("chrome://global/skin/icons/alert-message.gif"); | |
98 | } | |
99 | ||
441d0294 | 100 | .alert-dialog #info\.icon, |
b1eaa419 | 101 | .alert-icon { |
102 | list-style-image: url("chrome://global/skin/icons/alert-exclam.gif"); | |
103 | } | |
104 | ||
105 | .error-icon { | |
106 | list-style-image: url("chrome://global/skin/icons/alert-error.gif"); | |
107 | } | |
108 | ||
c79d2bbe RK |
109 | .question-icon, |
110 | .authentication-icon { | |
b1eaa419 | 111 | list-style-image: url("chrome://global/skin/icons/alert-question.gif"); |
112 | } | |
113 | ||
114 | /* ::::: iframe ::::: */ | |
115 | ||
116 | iframe { | |
117 | border: none; | |
118 | width: 100px; | |
119 | height: 100px; | |
120 | min-width: 10px; | |
121 | min-height: 10px; | |
122 | } | |
123 | ||
124 | /* ::::: statusbar ::::: */ | |
125 | ||
126 | statusbar { | |
127 | margin-top: 3px; | |
c79d2bbe | 128 | min-height: 16px; |
b1eaa419 | 129 | } |
130 | ||
131 | .statusbar-center { | |
132 | background-color: #8050B0; | |
dae45075 | 133 | padding-inline-start: 2px; |
507ac708 | 134 | color: #FFCF00; |
d0646e4a | 135 | -moz-box-align: stretch; |
b1eaa419 | 136 | } |
137 | ||
138 | .statusbar-left { | |
569543b3 | 139 | border-radius: 9px 0px 0px 9px; |
b1eaa419 | 140 | background-color: #6000CF; |
141 | width: 13px; | |
dae45075 | 142 | margin-inline-end: 3px; |
b1eaa419 | 143 | } |
144 | ||
145 | .statusbar-right { | |
569543b3 | 146 | border-radius: 0px 9px 9px 0px; |
b1eaa419 | 147 | background-color: #6000CF; |
148 | width: 13px; | |
dae45075 | 149 | margin-inline-start: 3px; |
b1eaa419 | 150 | } |
151 | ||
152 | statusbarpanel { | |
153 | -moz-box-align: center; | |
154 | -moz-box-pack: center; | |
2184a049 | 155 | border-left: 3px solid black; |
507ac708 | 156 | padding: 0px 2px; |
b1eaa419 | 157 | } |
3d6dd546 | 158 | |
2184a049 RK |
159 | statusbarpanel:first-child { |
160 | border-left: none; | |
161 | } | |
162 | ||
a064a540 RK |
163 | statusbarpanel:not(.statusbar-resizerpanel):-moz-lwtheme { |
164 | -moz-appearance: none; | |
165 | border-top-style: none; | |
166 | border-bottom-style: none; | |
dae45075 | 167 | border-inline-start-style: none; |
a064a540 RK |
168 | } |
169 | ||
b1eaa419 | 170 | .statusbar-resizerpanel { |
171 | -moz-box-align: end; | |
172 | -moz-box-pack: end; | |
173 | padding: 0px; | |
174 | } | |
175 | ||
cfae8c74 RK |
176 | .statusbarpanel-iconic, |
177 | .statusbarpanel-iconic-text, | |
178 | .statusbarpanel-menu-iconic { | |
507ac708 RK |
179 | } |
180 | ||
181 | .statusbarpanel-progress { | |
182 | -moz-box-orient: vertical; | |
9e9946be | 183 | padding: 0px; |
3d6dd546 | 184 | } |
b1eaa419 | 185 | |
b1eaa419 | 186 | .toolbar-focustarget { |
187 | -moz-user-focus: ignore !important; | |
188 | } | |
6046f027 | 189 | |
18f5421a RK |
190 | toolbar[mode="text"] .toolbarbutton-text { |
191 | /* padding: 0 !important; | |
192 | margin: 3px 5px !important; */ | |
193 | } | |
194 | ||
cfae8c74 RK |
195 | /* ::::: miscellaneous formatting ::::: */ |
196 | ||
3b1530c2 RK |
197 | :root:-moz-lwtheme, |
198 | [lwthemefooter="true"] { | |
199 | -moz-appearance: none; | |
200 | } | |
201 | ||
202 | :root:-moz-lwtheme-darktext { | |
24547055 | 203 | text-shadow: 0 -0.5px 1.5px #FFCF00; |
3b1530c2 RK |
204 | } |
205 | ||
206 | :root:-moz-lwtheme-brighttext { | |
207 | text-shadow: 1px 1px 2px #000000; | |
208 | } | |
209 | ||
210 | statusbar:-moz-lwtheme, | |
211 | sidebarheader:-moz-lwtheme { | |
212 | -moz-appearance: none; | |
213 | background: none; | |
214 | border-style: none; | |
215 | } | |
216 | ||
cfae8c74 RK |
217 | .inset { |
218 | /* border: 1px inset #FF9F00; | |
02920d2b | 219 | margin: 0px 5px 5px; */ |
cfae8c74 RK |
220 | } |
221 | ||
222 | .outset { | |
223 | /* border: 1px outset #FF9F00; */ | |
224 | } | |
225 | ||
226 | /* separators */ | |
227 | separator:not([orient="vertical"]) { | |
228 | height: 1.5em; | |
229 | } | |
230 | ||
231 | separator[orient="vertical"] { | |
232 | width: 1.5em; | |
233 | } | |
234 | ||
235 | separator.thin:not([orient="vertical"]) { | |
236 | height: 0.5em; | |
237 | } | |
238 | ||
239 | separator.thin[orient="vertical"] { | |
240 | width: 0.5em; | |
241 | } | |
242 | ||
243 | separator.groove:not([orient="vertical"]) { | |
244 | border-top: 2px groove #FF9F00; | |
245 | height: 0px; | |
246 | margin-top: 0.4em; | |
247 | margin-bottom: 0.4em; | |
248 | } | |
249 | ||
250 | separator.groove[orient="vertical"] { | |
251 | border-left: 2px groove #FF9F00; | |
dae45075 RK |
252 | margin-inline-start: 0.4em; |
253 | margin-inline-end: 0.4em; | |
cfae8c74 RK |
254 | } |
255 | ||
256 | /* groove separators (0 padding, for dividing effects) */ | |
257 | separator.groove-thin { | |
258 | border-top: 2px groove #FF9F00; | |
259 | height: 0px; | |
260 | } | |
261 | ||
262 | separator[orient="vertical"].groove-thin { | |
263 | border-left: 2px groove #FF9F00; | |
264 | } | |
265 | ||
266 | .small-margin { | |
267 | margin: 0px 1px; | |
268 | } | |
269 | ||
270 | .plain { | |
18f5421a | 271 | -moz-appearance: none; |
cfae8c74 RK |
272 | margin: 0px !important; |
273 | border: none; | |
274 | padding: 0px; | |
275 | } | |
276 | ||
277 | description, label { | |
278 | cursor: default; | |
d15efd04 | 279 | margin: 1px 2px; |
cfae8c74 RK |
280 | } |
281 | ||
282 | label[disabled="true"] { | |
283 | color: #8050B0; | |
284 | } | |
285 | ||
286 | description { | |
287 | /* margin-bottom: 4px; */ | |
288 | } | |
289 | ||
290 | .tooltip-label { | |
291 | margin: 0px; | |
292 | } | |
293 | ||
294 | .header { | |
295 | font-weight: bold; | |
296 | } | |
297 | ||
298 | .monospace { | |
8ad8bf83 | 299 | font-family: "Liberation Mono", Consolas, "Courier New", monospace; |
cfae8c74 RK |
300 | } |
301 | ||
302 | .indent { | |
dae45075 RK |
303 | /* margin-inline-start: 23px; */ |
304 | margin-inline-start: 15px; | |
cfae8c74 RK |
305 | } |
306 | ||
307 | .box-padded { | |
308 | padding: 5px; | |
309 | } | |
310 | ||
311 | .spaced { | |
312 | margin: 1px 3px; | |
313 | } | |
314 | ||
315 | .wizard-box { | |
02920d2b | 316 | padding: 15px 35px 10px; |
cfae8c74 RK |
317 | } |
318 | ||
319 | .text-link { | |
dbd844cb | 320 | color: #3333FF; |
cfae8c74 RK |
321 | cursor: pointer; |
322 | } | |
323 | ||
a6c8d0f5 RK |
324 | .text-link:hover { |
325 | text-decoration: underline; | |
326 | } | |
327 | ||
024ec655 | 328 | .text-link:-moz-focusring { |
cfae8c74 RK |
329 | /* Don't specify the outline-color, we should always use initial value. */ |
330 | outline: 1px dotted; | |
331 | } | |
332 | ||
da3c2755 RK |
333 | popupnotificationcontent { |
334 | margin-top: .5em; | |
335 | } | |
336 | ||
a9f6369d RK |
337 | /* === BEGIN notification-popup.inc.css === */ |
338 | ||
339 | .popup-notification-panel > .panel-arrowcontainer > .panel-arrowcontent { | |
340 | /* In order to display the action buttons near the edge of the arrow panel we | |
341 | * have to reset its default padding and specify the padding in the individual | |
342 | * "popupnotification" elements instead. To keep the rounded borders of the | |
343 | * panel, we also have to ensure the contents are clipped to the border box | |
344 | * by hiding the overflow, and we have to override the "display" property so | |
345 | * that the height of the contents is computed correctly in that case. */ | |
346 | padding: 0; | |
347 | overflow: hidden; | |
348 | display: block; | |
349 | } | |
350 | ||
351 | /* === END notification-popup.inc.css === */ | |
352 | ||
c79d2bbe RK |
353 | /* :::::: autoscroll popup ::::: */ |
354 | ||
18f5421a | 355 | .autoscroller { |
c79d2bbe RK |
356 | height: 28px; |
357 | width: 28px; | |
358 | border: 0px; | |
359 | margin: -14px; | |
360 | padding: 0px; | |
361 | background-image: url("chrome://global/skin/icons/autoscroll.png"); | |
362 | background-color: transparent; | |
363 | -moz-appearance: none; | |
364 | } | |
365 | ||
18f5421a | 366 | .autoscroller[scrolldir="NS"] { |
c79d2bbe RK |
367 | background-position: left center; |
368 | } | |
369 | ||
18f5421a | 370 | .autoscroller[scrolldir="EW"] { |
c79d2bbe RK |
371 | background-position: left bottom; |
372 | } | |
373 | ||
18f5421a | 374 | .autoscroller[transparent="true"] { |
c79d2bbe RK |
375 | background-position: center top; |
376 | } | |
377 | ||
18f5421a | 378 | .autoscroller[transparent="true"][scrolldir="NS"] { |
c79d2bbe RK |
379 | background-position: center center; |
380 | } | |
381 | ||
18f5421a | 382 | .autoscroller[transparent="true"][scrolldir="EW"] { |
c79d2bbe RK |
383 | background-position: center bottom; |
384 | } | |
385 | ||
18f5421a | 386 | .autoscroller[translucent="true"] { |
c79d2bbe RK |
387 | background-position: right top; |
388 | } | |
389 | ||
18f5421a | 390 | .autoscroller[translucent="true"][scrolldir="NS"] { |
c79d2bbe RK |
391 | background-position: right center; |
392 | } | |
393 | ||
18f5421a | 394 | .autoscroller[translucent="true"][scrolldir="EW"] { |
c79d2bbe | 395 | background-position: right bottom; |
6046f027 | 396 | } |
afa44bf6 RK |
397 | |
398 | /* :::::: Close button icons ::::: */ | |
399 | ||
400 | .close-icon { | |
401 | list-style-image: url("chrome://global/skin/icons/close.png"); | |
402 | -moz-image-region: rect(0, 16px, 16px, 0); | |
403 | } | |
404 | ||
405 | .close-icon:hover, | |
406 | .close-icon:hover:active { | |
407 | -moz-image-region: rect(0, 32px, 16px, 16px); | |
408 | } | |
710194f1 RK |
409 | |
410 | .close-icon > .button-icon, | |
411 | .close-icon > .button-box > .button-icon, | |
412 | .close-icon > .toolbarbutton-icon { | |
413 | width: 16px; | |
414 | } |