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