test rule for non-mac detection
[themes.git] / LCARStrek / global / global.css
... / ...
CommitLineData
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
16checkbox {
17 -moz-binding: url("chrome://global/content/bindings/checkbox.xml#checkbox-with-spacing");
18}
19
20radio {
21 -moz-binding: url("chrome://global/skin/globalBindings.xml#radio-with-spacing");
22}
23
24menulist > 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
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");
45}
46
47toolbaritem > 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 (-moz-mac-graphite-theme: 0) and (-moz-mac-lion-theme: 0) and (-moz-mac-yosemite-theme: 0) {
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/* ::::: root elements ::::: */
69
70window,
71page,
72dialog,
73wizard,
74prefwindow {
75 background-color: #000000;
76 color: #FF9F00;
77/* font: 3mm "Final Frontier",tahoma,arial,helvetica,sans-serif; */
78 font: 11px "Liberation Sans",Arial,Tahoma,Helvetica,sans-serif;
79 padding: 3px;
80}
81
82/* deprecated */
83window.dialog {
84 background-color: #000000;
85 padding-top: 8px;
86 padding-bottom: 10px;
87 -moz-padding-start: 8px;
88 -moz-padding-end: 10px;
89}
90
91/* ::::: alert icons :::::*/
92
93.message-icon,
94.alert-icon,
95.error-icon,
96.question-icon,
97.authentication-icon {
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
114.question-icon,
115.authentication-icon {
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;
133 min-height: 16px;
134}
135
136.statusbar-center {
137 background-color: #8050B0;
138 -moz-padding-start: 2px;
139 color: #FFCF00;
140 -moz-box-align: stretch;
141}
142
143.statusbar-left {
144 border-radius: 9px 0px 0px 9px;
145 background-color: #6000CF;
146 width: 13px;
147 -moz-margin-end: 3px;
148}
149
150.statusbar-right {
151 border-radius: 0px 9px 9px 0px;
152 background-color: #6000CF;
153 width: 13px;
154 -moz-margin-start: 3px;
155}
156
157statusbarpanel {
158 -moz-box-align: center;
159 -moz-box-pack: center;
160 border-left: 3px solid black;
161 padding: 0px 2px;
162}
163
164statusbarpanel:first-child {
165 border-left: none;
166}
167
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
175.statusbar-resizerpanel {
176 -moz-box-align: end;
177 -moz-box-pack: end;
178 padding: 0px;
179}
180
181.statusbarpanel-iconic,
182.statusbarpanel-iconic-text,
183.statusbarpanel-menu-iconic {
184}
185
186.statusbarpanel-progress {
187 -moz-box-orient: vertical;
188 padding: 0px;
189}
190
191.toolbar-focustarget {
192 -moz-user-focus: ignore !important;
193}
194
195toolbar[mode="text"] .toolbarbutton-text {
196 /* padding: 0 !important;
197 margin: 3px 5px !important; */
198}
199
200/* ::::: miscellaneous formatting ::::: */
201
202:root:-moz-lwtheme,
203[lwthemefooter="true"] {
204 -moz-appearance: none;
205}
206
207:root:-moz-lwtheme-darktext {
208 text-shadow: 0 -0.5px 1.5px #FFCF00;
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
222.inset {
223/* border: 1px inset #FF9F00;
224 margin: 0px 5px 5px; */
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;
257 -moz-margin-start: 0.4em;
258 -moz-margin-end: 0.4em;
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 {
276 -moz-appearance: none;
277 margin: 0px !important;
278 border: none;
279 padding: 0px;
280}
281
282description, label {
283 cursor: default;
284 margin: 1px 2px;
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 {
304 font-family: "Liberation Mono", Consolas, "Courier New", monospace;
305}
306
307.indent {
308/* -moz-margin-start: 23px; */
309 -moz-margin-start: 15px;
310}
311
312.box-padded {
313 padding: 5px;
314}
315
316.spaced {
317 margin: 1px 3px;
318}
319
320.wizard-box {
321 padding: 15px 35px 10px;
322}
323
324.text-link {
325 color: #3333FF;
326 cursor: pointer;
327}
328
329.text-link:hover {
330 text-decoration: underline;
331}
332
333.text-link:-moz-focusring {
334 /* Don't specify the outline-color, we should always use initial value. */
335 outline: 1px dotted;
336}
337
338/* :::::: autoscroll popup ::::: */
339
340.autoscroller {
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
351.autoscroller[scrolldir="NS"] {
352 background-position: left center;
353}
354
355.autoscroller[scrolldir="EW"] {
356 background-position: left bottom;
357}
358
359.autoscroller[transparent="true"] {
360 background-position: center top;
361}
362
363.autoscroller[transparent="true"][scrolldir="NS"] {
364 background-position: center center;
365}
366
367.autoscroller[transparent="true"][scrolldir="EW"] {
368 background-position: center bottom;
369}
370
371.autoscroller[translucent="true"] {
372 background-position: right top;
373}
374
375.autoscroller[translucent="true"][scrolldir="NS"] {
376 background-position: right center;
377}
378
379.autoscroller[translucent="true"][scrolldir="EW"] {
380 background-position: right bottom;
381}