test different rules for mac detection
[themes.git] / LCARStrek / global / global.css
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 /* ===== 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
12 @namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul");
13
14 /* ::::: XBL bindings ::::: */
15
16 checkbox {
17   -moz-binding: url("chrome://global/content/bindings/checkbox.xml#checkbox-with-spacing");
18 }
19
20 radio {
21   -moz-binding: url("chrome://global/skin/globalBindings.xml#radio-with-spacing");
22 }
23
24 menulist > menupopup,
25 .menulist-menupopup {
26   -moz-binding: url("chrome://global/content/bindings/popup.xml#popup-scrollbars");
27 }
28
29 .menulist-compact {
30   -moz-binding: url("chrome://global/skin/globalBindings.xml#menulist-compact");
31 }
32
33 /* LCARStrek special bindings */
34
35 statusbar {
36   -moz-binding: url("chrome://global/skin/globalBindings.xml#statusbar");
37 }
38
39 toolbar {
40   -moz-binding: url("chrome://global/skin/globalBindings.xml#toolbar");
41 }
42
43 menubar {
44   -moz-binding: url("chrome://global/skin/globalBindings.xml#menubar");
45 }
46
47 toolbaritem > menubar {
48   -moz-binding: url("chrome://global/content/bindings/toolbar.xml#menubar");
49 }
50
51 @supports ( :-moz-system-metric(mac-graphite-theme) ) {
52   /* this is a usable workaround to detect we're on Mac OS */
53   toolbar.chromeclass-menubar {
54     -moz-binding: url("chrome://global/content/bindings/toolbar.xml#toolbar");
55     border-bottom: none;
56   }
57 }
58
59 /* HACK TEST ONLY: try several mac supports rules! */
60
61 @supports ( :-moz-system-metric(mac-graphite-theme) ) {
62   /* this is a usable workaround to detect we're on Mac OS */
63   window {
64     background-color:red !important;
65   }
66 }
67
68 @supports ( color: -moz-mac-accentface ) {
69   /* this is a usable workaround to detect we're on Mac OS */
70   toolbar {
71     border: 1px solid green !important;
72   }
73 }
74
75 /* ::::: root elements ::::: */
76
77 window,
78 page,
79 dialog,
80 wizard,
81 prefwindow {
82   background-color: #000000;
83   color: #FF9F00;
84 /*  font: 3mm "Final Frontier",tahoma,arial,helvetica,sans-serif; */
85   font: 11px "Liberation Sans",Arial,Tahoma,Helvetica,sans-serif;
86   padding: 3px;
87 }
88
89 /* deprecated */
90 window.dialog {
91   background-color: #000000;
92   padding-top: 8px;
93   padding-bottom: 10px;
94   -moz-padding-start: 8px;
95   -moz-padding-end: 10px;
96 }
97
98 /* ::::: alert icons :::::*/
99
100 .message-icon,
101 .alert-icon,
102 .error-icon,
103 .question-icon,
104 .authentication-icon {
105   width: 32px;
106   height: 32px;
107 }
108
109 .message-icon {
110   list-style-image: url("chrome://global/skin/icons/alert-message.gif");
111 }
112
113 .alert-icon {
114   list-style-image: url("chrome://global/skin/icons/alert-exclam.gif");
115 }
116
117 .error-icon {
118   list-style-image: url("chrome://global/skin/icons/alert-error.gif");
119 }
120
121 .question-icon,
122 .authentication-icon {
123   list-style-image: url("chrome://global/skin/icons/alert-question.gif");
124 }
125
126 /* ::::: iframe ::::: */
127
128 iframe {
129   border: none;
130   width: 100px;
131   height: 100px;
132   min-width: 10px;
133   min-height: 10px;
134 }
135
136 /* ::::: statusbar ::::: */
137
138 statusbar {
139   margin-top: 3px;
140   min-height: 16px;
141 }
142
143 .statusbar-center {
144   background-color: #8050B0;
145   -moz-padding-start: 2px;
146   color: #FFCF00;
147   -moz-box-align: stretch;
148 }
149
150 .statusbar-left {
151   border-radius: 9px 0px 0px 9px;
152   background-color: #6000CF;
153   width: 13px;
154   -moz-margin-end: 3px;
155 }
156
157 .statusbar-right {
158   border-radius: 0px 9px 9px 0px;
159   background-color: #6000CF;
160   width: 13px;
161   -moz-margin-start: 3px;
162 }
163
164 statusbarpanel {
165   -moz-box-align: center;
166   -moz-box-pack: center;
167   border-left: 3px solid black;
168   padding: 0px 2px;
169 }
170
171 statusbarpanel:first-child {
172   border-left: none;
173 }
174
175 statusbarpanel:not(.statusbar-resizerpanel):-moz-lwtheme {
176   -moz-appearance: none;
177   border-top-style: none;
178   border-bottom-style: none;
179   -moz-border-start-style: none;
180 }
181
182 .statusbar-resizerpanel {
183   -moz-box-align: end;
184   -moz-box-pack: end;
185   padding: 0px;
186 }
187
188 .statusbarpanel-iconic,
189 .statusbarpanel-iconic-text,
190 .statusbarpanel-menu-iconic {
191 }
192
193 .statusbarpanel-progress {
194   -moz-box-orient: vertical;
195   padding: 0px;
196 }
197
198 .toolbar-focustarget {
199   -moz-user-focus: ignore !important;
200 }
201
202 toolbar[mode="text"] .toolbarbutton-text {
203   /* padding: 0 !important;
204   margin: 3px 5px !important; */
205 }
206
207 /* ::::: miscellaneous formatting ::::: */
208
209 :root:-moz-lwtheme,
210 [lwthemefooter="true"] {
211   -moz-appearance: none;
212 }
213
214 :root:-moz-lwtheme-darktext {
215   text-shadow: 0 -0.5px 1.5px #FFCF00;
216 }
217
218 :root:-moz-lwtheme-brighttext {
219   text-shadow: 1px 1px 2px #000000;
220 }
221
222 statusbar:-moz-lwtheme,
223 sidebarheader:-moz-lwtheme {
224   -moz-appearance: none;
225   background: none;
226   border-style: none;
227 }
228
229 .inset {
230 /*  border: 1px inset #FF9F00;
231   margin: 0px 5px 5px; */
232 }
233
234 .outset {
235 /*  border: 1px outset #FF9F00; */
236 }
237
238 /* separators */
239 separator:not([orient="vertical"]) {
240   height: 1.5em;
241 }
242
243 separator[orient="vertical"] {
244   width: 1.5em;
245 }
246
247 separator.thin:not([orient="vertical"]) {
248   height: 0.5em;
249 }
250
251 separator.thin[orient="vertical"] {
252   width: 0.5em;
253 }
254
255 separator.groove:not([orient="vertical"]) {
256   border-top: 2px groove #FF9F00;
257   height: 0px;
258   margin-top: 0.4em;
259   margin-bottom: 0.4em;
260 }
261
262 separator.groove[orient="vertical"] {
263   border-left: 2px groove #FF9F00;
264   -moz-margin-start: 0.4em;
265   -moz-margin-end: 0.4em;
266 }
267
268 /* groove separators (0 padding, for dividing effects) */
269 separator.groove-thin {
270   border-top: 2px groove #FF9F00;
271   height: 0px;
272 }
273
274 separator[orient="vertical"].groove-thin {
275   border-left: 2px groove #FF9F00;
276 }
277
278 .small-margin {
279   margin: 0px 1px;
280 }
281
282 .plain {
283   -moz-appearance: none;
284   margin: 0px !important;
285   border: none;
286   padding: 0px;
287 }
288
289 description, label  {
290   cursor: default;
291   margin: 1px 2px;
292 }
293
294 label[disabled="true"] {
295   color: #8050B0;
296 }
297
298 description {
299 /*  margin-bottom: 4px; */
300 }
301
302 .tooltip-label {
303   margin: 0px;
304 }
305
306 .header {
307   font-weight: bold;
308 }
309
310 .monospace {
311   font-family: "Liberation Mono", Consolas, "Courier New", monospace;
312 }
313
314 .indent {
315 /*  -moz-margin-start: 23px; */
316   -moz-margin-start: 15px;
317 }
318
319 .box-padded {
320   padding: 5px;
321 }
322
323 .spaced {
324   margin: 1px 3px;
325 }
326
327 .wizard-box {
328   padding: 15px 35px 10px;
329 }
330
331 .text-link {
332   color: #3333FF;
333   cursor: pointer;
334 }
335
336 .text-link:hover {
337   text-decoration: underline;
338 }
339
340 .text-link:-moz-focusring {
341   /* Don't specify the outline-color, we should always use initial value. */
342   outline: 1px dotted;
343 }
344
345 /* :::::: autoscroll popup ::::: */
346
347 .autoscroller {
348   height: 28px;
349   width: 28px;
350   border: 0px;
351   margin: -14px;
352   padding: 0px;
353   background-image: url("chrome://global/skin/icons/autoscroll.png");
354   background-color: transparent;
355   -moz-appearance: none;
356 }
357
358 .autoscroller[scrolldir="NS"] {
359   background-position: left center;
360 }
361
362 .autoscroller[scrolldir="EW"] {
363   background-position: left bottom;
364 }
365
366 .autoscroller[transparent="true"] {
367   background-position: center top;
368 }
369
370 .autoscroller[transparent="true"][scrolldir="NS"] {
371   background-position: center center;
372 }
373
374 .autoscroller[transparent="true"][scrolldir="EW"] {
375   background-position: center bottom;
376 }
377
378 .autoscroller[translucent="true"] {
379   background-position: right top;
380 }
381
382 .autoscroller[translucent="true"][scrolldir="NS"] {
383   background-position: right center;
384 }
385
386 .autoscroller[translucent="true"][scrolldir="EW"] {
387   background-position: right bottom;
388 }