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