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