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