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
3cf61cef
RK
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. */
96b206fe
RK
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
10dad1cd 61@media (not -moz-mac-graphite-theme) and (not -moz-mac-lion-theme) and (not -moz-mac-yosemite-theme) {
3cf61cef
RK
62 /* this is a usable workaround to detect we're on Mac OS */
63 toolbox {
64 border: 1px solid blue !important;
65 }
66}
67
10dad1cd 68@media not all and (-moz-mac-graphite-theme) and (-moz-mac-lion-theme) and (-moz-mac-yosemite-theme) {
3cf61cef
RK
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) {
4f962810
RK
77 /* this is a usable workaround to detect we're on Mac OS */
78 toolbar {
79 border: 1px solid green !important;
80 }
81}
82
b1eaa419 83/* ::::: root elements ::::: */
84
85window,
86page,
87dialog,
c79d2bbe
RK
88wizard,
89prefwindow {
b1eaa419 90 background-color: #000000;
91 color: #FF9F00;
92/* font: 3mm "Final Frontier",tahoma,arial,helvetica,sans-serif; */
4ed82c79 93 font: 11px "Liberation Sans",Arial,Tahoma,Helvetica,sans-serif;
b1eaa419 94 padding: 3px;
95}
96
97/* deprecated */
3d6dd546 98window.dialog {
b1eaa419 99 background-color: #000000;
02920d2b
RK
100 padding-top: 8px;
101 padding-bottom: 10px;
102 -moz-padding-start: 8px;
103 -moz-padding-end: 10px;
b1eaa419 104}
105
b1eaa419 106/* ::::: alert icons :::::*/
107
108.message-icon,
109.alert-icon,
110.error-icon,
c79d2bbe
RK
111.question-icon,
112.authentication-icon {
b1eaa419 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
c79d2bbe
RK
129.question-icon,
130.authentication-icon {
b1eaa419 131 list-style-image: url("chrome://global/skin/icons/alert-question.gif");
132}
133
134/* ::::: iframe ::::: */
135
136iframe {
137 border: none;
138 width: 100px;
139 height: 100px;
140 min-width: 10px;
141 min-height: 10px;
142}
143
144/* ::::: statusbar ::::: */
145
146statusbar {
147 margin-top: 3px;
c79d2bbe 148 min-height: 16px;
b1eaa419 149}
150
151.statusbar-center {
152 background-color: #8050B0;
8caa872d 153 -moz-padding-start: 2px;
507ac708 154 color: #FFCF00;
d0646e4a 155 -moz-box-align: stretch;
b1eaa419 156}
157
158.statusbar-left {
569543b3 159 border-radius: 9px 0px 0px 9px;
b1eaa419 160 background-color: #6000CF;
161 width: 13px;
8caa872d 162 -moz-margin-end: 3px;
b1eaa419 163}
164
165.statusbar-right {
569543b3 166 border-radius: 0px 9px 9px 0px;
b1eaa419 167 background-color: #6000CF;
168 width: 13px;
8caa872d 169 -moz-margin-start: 3px;
b1eaa419 170}
171
172statusbarpanel {
173 -moz-box-align: center;
174 -moz-box-pack: center;
2184a049 175 border-left: 3px solid black;
507ac708 176 padding: 0px 2px;
b1eaa419 177}
3d6dd546 178
2184a049
RK
179statusbarpanel:first-child {
180 border-left: none;
181}
182
a064a540
RK
183statusbarpanel: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
b1eaa419 190.statusbar-resizerpanel {
191 -moz-box-align: end;
192 -moz-box-pack: end;
193 padding: 0px;
194}
195
cfae8c74
RK
196.statusbarpanel-iconic,
197.statusbarpanel-iconic-text,
198.statusbarpanel-menu-iconic {
507ac708
RK
199}
200
201.statusbarpanel-progress {
202 -moz-box-orient: vertical;
9e9946be 203 padding: 0px;
3d6dd546 204}
b1eaa419 205
b1eaa419 206.toolbar-focustarget {
207 -moz-user-focus: ignore !important;
208}
6046f027 209
18f5421a
RK
210toolbar[mode="text"] .toolbarbutton-text {
211 /* padding: 0 !important;
212 margin: 3px 5px !important; */
213}
214
cfae8c74
RK
215/* ::::: miscellaneous formatting ::::: */
216
3b1530c2
RK
217:root:-moz-lwtheme,
218[lwthemefooter="true"] {
219 -moz-appearance: none;
220}
221
222:root:-moz-lwtheme-darktext {
24547055 223 text-shadow: 0 -0.5px 1.5px #FFCF00;
3b1530c2
RK
224}
225
226:root:-moz-lwtheme-brighttext {
227 text-shadow: 1px 1px 2px #000000;
228}
229
230statusbar:-moz-lwtheme,
231sidebarheader:-moz-lwtheme {
232 -moz-appearance: none;
233 background: none;
234 border-style: none;
235}
236
cfae8c74
RK
237.inset {
238/* border: 1px inset #FF9F00;
02920d2b 239 margin: 0px 5px 5px; */
cfae8c74
RK
240}
241
242.outset {
243/* border: 1px outset #FF9F00; */
244}
245
246/* separators */
247separator:not([orient="vertical"]) {
248 height: 1.5em;
249}
250
251separator[orient="vertical"] {
252 width: 1.5em;
253}
254
255separator.thin:not([orient="vertical"]) {
256 height: 0.5em;
257}
258
259separator.thin[orient="vertical"] {
260 width: 0.5em;
261}
262
263separator.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
270separator.groove[orient="vertical"] {
271 border-left: 2px groove #FF9F00;
8caa872d
RK
272 -moz-margin-start: 0.4em;
273 -moz-margin-end: 0.4em;
cfae8c74
RK
274}
275
276/* groove separators (0 padding, for dividing effects) */
277separator.groove-thin {
278 border-top: 2px groove #FF9F00;
279 height: 0px;
280}
281
282separator[orient="vertical"].groove-thin {
283 border-left: 2px groove #FF9F00;
284}
285
286.small-margin {
287 margin: 0px 1px;
288}
289
290.plain {
18f5421a 291 -moz-appearance: none;
cfae8c74
RK
292 margin: 0px !important;
293 border: none;
294 padding: 0px;
295}
296
297description, label {
298 cursor: default;
d15efd04 299 margin: 1px 2px;
cfae8c74
RK
300}
301
302label[disabled="true"] {
303 color: #8050B0;
304}
305
306description {
307/* margin-bottom: 4px; */
308}
309
310.tooltip-label {
311 margin: 0px;
312}
313
314.header {
315 font-weight: bold;
316}
317
318.monospace {
8ad8bf83 319 font-family: "Liberation Mono", Consolas, "Courier New", monospace;
cfae8c74
RK
320}
321
322.indent {
8caa872d
RK
323/* -moz-margin-start: 23px; */
324 -moz-margin-start: 15px;
cfae8c74
RK
325}
326
327.box-padded {
328 padding: 5px;
329}
330
331.spaced {
332 margin: 1px 3px;
333}
334
335.wizard-box {
02920d2b 336 padding: 15px 35px 10px;
cfae8c74
RK
337}
338
339.text-link {
dbd844cb 340 color: #3333FF;
cfae8c74
RK
341 cursor: pointer;
342}
343
a6c8d0f5
RK
344.text-link:hover {
345 text-decoration: underline;
346}
347
024ec655 348.text-link:-moz-focusring {
cfae8c74
RK
349 /* Don't specify the outline-color, we should always use initial value. */
350 outline: 1px dotted;
351}
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}