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