sync both themes with toolkit windows theme changes in Mozilla 34 cycle
[themes.git] / EarlyBlue / global / in-content / common.css
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 /* === BEGIN common.inc.css === */
6
7 @namespace html "http://www.w3.org/1999/xhtml";
8 @namespace xul "http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul";
9
10 html|body,
11 xul|page {
12   font: 11px "Liberation Sans",Arial,Tahoma,Helvetica,sans-serif;
13   -moz-appearance: none;
14   background-color: #CCD0DD;
15   color: #000000;
16 }
17
18 html|body {
19   font-size: 15px;
20   font-weight: normal;
21   margin: 0;
22 }
23
24 html|h1 {
25   font-size: 2.5em;
26   font-weight: lighter;
27   line-height: 1.2;
28   margin: 0;
29   margin-bottom: .5em;
30 }
31
32 xul|caption {
33 }
34
35 xul|caption > xul|label {
36   margin-top: 0;
37   margin-bottom: 0;
38 }
39
40 *|*.main-content {
41   padding: 40px 48px 48px;
42   overflow: auto;
43 }
44
45 xul|prefpane > xul|*.content-box {
46   overflow: visible;
47 }
48
49 /* groupboxes */
50 /*
51 xul|groupbox {
52   -moz-appearance: none;
53   border: none;
54   margin-top: 15px;
55   margin-bottom: 15px;
56   -moz-margin-end: 0;
57   -moz-padding-start: 0;
58   -moz-padding-end: 0;
59   font-size: 1.25rem;
60 }
61
62 xul|groupbox xul|label {
63   / !important needed to override toolkit !important rule /
64   -moz-margin-start: 0 !important;
65   -moz-margin-end: 0 !important;
66 }
67 */
68 /* tabpanels and tabs */
69 /*
70 xul|tabpanels {
71   -moz-appearance: none;
72   font-size: 1.25rem;
73   line-height: 22px;
74   border: none;
75   padding: 0;
76   background-color: transparent;
77 }
78
79 xul|tabs {
80   margin-bottom: 15px;
81   border-top: 1px solid #c1c1c1;
82   border-bottom: 1px solid #c1c1c1;
83   background-color: #fbfbfb;
84 }
85
86 xul|*.tabs-left,
87 xul|*.tabs-right {
88   border-bottom: none;
89 }
90
91 xul|tab {
92   -moz-appearance: none;
93   margin-top: 0;
94   padding: 0 20px;
95   min-height: 44px;
96   color: #424f5a;
97   background-color: #fbfbfb;
98   border-width: 0;
99   transition: background-color 50ms ease 0s;
100 }
101
102 xul|tab:hover {
103   background-color: #ebebeb;
104 }
105
106 xul|tab[selected] {
107   background-color: #ebebeb;
108   box-shadow: inset 0 -4px 0 0 #ff9500;
109 }
110
111 xul|*.tab-text {
112   font-size: 1.3rem;
113   line-height: 22px;
114 }
115 */
116 /* html buttons */
117
118 html|button {
119   border-radius: 0px;
120   border: 1px outset #CCD0DD;
121   background-color: #CCD0DD;
122   color: #000000;
123   / * override forms.css * /
124   font: inherit;
125 }
126
127 /* xul buttons and menulists */
128 /*
129 *|button,
130 xul|colorpicker[type="button"],
131 xul|menulist {
132   -moz-appearance: none;
133   height: 30px;
134   color: #333;
135   line-height: 20px;
136   text-shadow: 0 1px 1px #fefffe;
137   border: 1px solid #c1c1c1;
138   -moz-border-top-colors: none !important;
139   -moz-border-right-colors: none !important;
140   -moz-border-bottom-colors: none !important;
141   -moz-border-left-colors: none !important;
142   border-radius: 2px;
143   background-color: #fbfbfb;
144 }
145 */
146 html|button:enabled:hover,
147 xul|button:not([disabled="true"]):hover,
148 xul|colorpicker[type="button"]:not([disabled="true"]):hover,
149 xul|menulist:not([disabled="true"]):hover {
150 }
151
152 html|button:enabled:hover:active,
153 xul|button:not([disabled="true"]):hover:active,
154 xul|colorpicker[type="button"]:not([disabled="true"]):hover:active,
155 xul|menulist[open="true"]:not([disabled="true"]) {
156   border: 1px inset #CCD0DD;
157 }
158
159 html|button:disabled,
160 xul|button[disabled="true"],
161 xul|colorpicker[type="button"][disabled="true"],
162 xul|menulist[disabled="true"] {
163   cursor: not-allowed;
164   border: 1px outset #CCD0DD;
165   color: #999999;
166 }
167 /*
168 xul|colorpicker[type="button"] {
169   padding: 6px;
170   width: 50px;
171 }
172
173 xul|button > xul|*.button-box,
174 xul|menulist > xul|*.menulist-label-box {
175   padding-right: 10px !important;
176   padding-left: 10px !important;
177 }
178
179 xul|button[type="menu"] > xul|*.button-box > xul|*.button-menu-dropmarker {
180   -moz-appearance: none;
181   margin: 1px 0;
182   -moz-margin-start: 10px;
183   padding: 0;
184   width: 10px;
185   height: 16px;
186   border: none;
187   background-color: transparent;
188   list-style-image: url("chrome://global/skin/in-content/dropdown.png");
189 }
190
191 xul|*.help-button {
192   min-width: 30px;
193   border-radius: 2px;
194   border: 1px solid #c1c1c1;
195   background-color: #ffcb00;
196   background-image: none;
197   box-shadow: none;
198 }
199
200 xul|*.help-button:not([disabled="true"]):hover {
201   background-color: #f4c200;
202   background-image: none;
203 }
204
205 xul|*.help-button:not([disabled="true"]):hover:active {
206   background-color: #eaba00;
207   background-image: none;
208 }
209
210 xul|*.close-icon > xul|*.button-box,
211 xul|*.help-button > xul|*.button-box {
212   padding-top: 0;
213   padding-bottom: 0;
214   padding-right: 0 !important;
215   padding-left: 0 !important;
216 }
217
218 xul|*.help-button > xul|*.button-box > xul|*.button-icon {
219   width: 26px;
220   height: 26px;
221   background-image: url("chrome://global/skin/in-content/help-glyph.png");
222   background-position: center;
223 }
224
225 @media (min-resolution: 2dppx) {
226   xul|*.help-button > xul|*.button-box > xul|*.button-icon {
227     background-size: 26px 26px;
228     background-image: url("chrome://global/skin/in-content/help-glyph@2x.png");
229   }
230 }
231
232 xul|*.help-button > xul|*.button-box > xul|*.button-text {
233   display: none;
234 }
235
236 xul|*.spinbuttons-button {
237   -moz-margin-start: 10px !important;
238   -moz-margin-end: 2px !important;
239 }
240
241 xul|*.spinbuttons-up {
242   margin-top: 2px !important;
243   border-radius: 1px 1px 0 0;
244 }
245
246 xul|*.spinbuttons-down  {
247   margin-bottom: 2px !important;
248   border-radius: 0 0 1px 1px;
249 }
250
251 xul|*.spinbuttons-button > xul|*.button-box {
252   padding: 1px 5px 2px !important;
253 }
254
255 xul|*.spinbuttons-up > xul|*.button-box > xul|*.button-icon {
256   list-style-image: url("chrome://global/skin/arrow/arrow-up.gif");
257 }
258
259 xul|*.spinbuttons-up[disabled="true"] > xul|*.button-box > xul|*.button-icon {
260   list-style-image: url("chrome://global/skin/arrow/arrow-up-dis.gif");
261 }
262
263 xul|*.spinbuttons-down > xul|*.button-box > xul|*.button-icon {
264   list-style-image: url("chrome://global/skin/arrow/arrow-dn.gif");
265 }
266
267 xul|*.spinbuttons-down[disabled="true"] > xul|*.button-box > xul|*.button-icon {
268   list-style-image: url("chrome://global/skin/arrow/arrow-dn-dis.gif");
269 }
270
271 xul|menulist:not([editable="true"]) > xul|*.menulist-dropmarker {
272   -moz-appearance: none;
273   -moz-margin-end: 10px;
274   padding: 0;
275   border: none;
276   background-color: transparent;
277   list-style-image: url("chrome://global/skin/in-content/dropdown.png");
278 }
279
280 xul|menulist[disabled="true"]:not([editable="true"]) > xul|*.menulist-dropmarker {
281   list-style-image: url("chrome://global/skin/in-content/dropdown-disabled.png")
282 }
283
284 @media (min-resolution: 2dppx) {
285   xul|menulist:not([editable="true"]) > xul|*.menulist-dropmarker,
286   xul|button[type="menu"] > xul|*.button-box > xul|*.button-menu-dropmarker {
287     list-style-image: url("chrome://global/skin/in-content/dropdown@2x.png");
288   }
289
290   xul|menulist[disabled="true"]:not([editable="true"]) > xul|*.menulist-dropmarker {
291     list-style-image: url("chrome://global/skin/in-content/dropdown-disabled@2x.png")
292   }
293
294   xul|menulist:not([editable="true"]) > xul|*.menulist-dropmarker > xul|*.dropmarker-icon,
295   xul|button[type="menu"] > xul|*.button-box > xul|*.button-menu-dropmarker > xul|*.dropmarker-icon {
296     width: 10px;
297     height: 16px;
298   }
299 }
300
301 xul|menulist > xul|menupopup,
302 xul|button[type="menu"] > xul|menupopup {
303   -moz-appearance: none;
304   border: 1px solid rgba(23,50,77,0.4);
305   border-radius: 2px;
306   background-color: #fff;
307 }
308
309 xul|menulist > xul|menupopup xul|menu,
310 xul|menulist > xul|menupopup xul|menuitem,
311 xul|button[type="menu"] > xul|menupopup xul|menu,
312 xul|button[type="menu"] > xul|menupopup xul|menuitem {
313   -moz-appearance: none;
314   font-size: 1.25rem;
315   line-height: 22px;
316   height: 40px;
317   color: #333;
318   -moz-padding-start: 10px;
319   -moz-padding-end: 30px;
320 }
321
322 xul|menulist > xul|menupopup > xul|menu[_moz-menuactive="true"],
323 xul|menulist > xul|menupopup > xul|menuitem[_moz-menuactive="true"],
324 xul|button[type="menu"] > xul|menupopup > xul|menu[_moz-menuactive="true"],
325 xul|button[type="menu"] > xul|menupopup > xul|menuitem[_moz-menuactive="true"] {
326   color: #333;
327   background-color: transparent;
328   background-image: linear-gradient(rgba(76,177,255,0.25), rgba(23,146,229,0.25));
329 }
330
331 xul|menulist > xul|menupopup > xul|menu[selected="true"],
332 xul|menulist > xul|menupopup > xul|menuitem[selected="true"],
333 xul|button[type="menu"] > xul|menupopup > xul|menu[selected="true"],
334 xul|button[type="menu"] > xul|menupopup > xul|menuitem[selected="true"] {
335   color: #fff;
336   background-image: linear-gradient(#4cb1ff, #1792e5);
337 }
338
339 xul|menulist > xul|menupopup xul|menuseparator,
340 xul|button[type="menu"] > xul|menupopup xul|menuseparator {
341   -moz-appearance: none;
342   margin-top: 2px;
343   margin-bottom: 2px;
344   padding: 0;
345   border-top: 1px solid rgba(23,50,77,0.4);
346   border-bottom: none;
347 }
348 */
349 /* textboxes */
350 /*
351 *|textbox {
352   -moz-appearance: none;
353   height: 30px;
354   color: #333;
355   line-height: 20px;
356   text-shadow: 0 1px 1px #fefffe;
357   padding-right: 10px;
358   padding-left: 10px;
359   border: 1px solid #c1c1c1;
360   -moz-border-top-colors: none !important;
361   -moz-border-right-colors: none !important;
362   -moz-border-bottom-colors: none !important;
363   -moz-border-left-colors: none !important;
364   border-radius: 2px;
365   background-color: #fff;
366 }
367
368 html|textbox:focus,
369 xul|textbox[focused] {
370   border-color: #0095dd;
371 }
372
373 html|textbox:disabled,
374 xul|textbox[disabled="true"] {
375   opacity: 0.5;
376 }
377 */
378 /* Links */
379 /*
380 html|a,
381 xul|*.text-link,
382 xul|*.inline-link {
383   font-size: 1.25rem;
384   line-height: 22px;
385   color: #0095dd;
386   text-decoration: none;
387 }
388
389 html|a:hover,
390 xul|*.text-link:hover,
391 xul|*.inline-link:hover {
392   color: #4cb1ff;
393   text-decoration: none;
394 }
395
396 html|a:hover:active,
397 xul|*.text-link:hover:active,
398 xul|*.inline-link:hover:active {
399   color: #ff9500;
400   text-decoration: none;
401 }
402 */
403 /* Checkboxes and radio buttons */
404 /*
405 xul|checkbox {
406   -moz-margin-start: 0;
407 }
408
409 xul|*.checkbox-check {
410   -moz-appearance: none;
411   width: 23px;
412   height: 23px;
413   border-radius: 2px;
414   border: 1px solid #c1c1c1;
415   -moz-margin-end: 10px;
416   background-color: #f1f1f1;
417   background-image: linear-gradient(#fff, rgba(255,255,255,0.8));
418   background-position: center center;
419   background-repeat: no-repeat;
420   box-shadow: 0 1px 1px 0 #fff, inset 0 2px 0 0 rgba(0,0,0,0.03);
421 }
422
423 xul|checkbox:not([disabled="true"]):hover > xul|*.checkbox-check {
424   border-color: #0095dd;
425 }
426
427 xul|*.checkbox-check[checked] {
428   background-image: url("chrome://global/skin/in-content/check.png"),
429                     / * !important needed to override toolkit !important rule * /
430                     linear-gradient(#fff, rgba(255,255,255,0.8)) !important;
431 }
432
433 xul|checkbox[disabled="true"] > xul|*.checkbox-check {
434   opacity: 0.5;
435 }
436
437 xul|*.checkbox-label-box {
438   -moz-margin-start: -1px; / * negative margin for the transparent border * /
439   -moz-padding-start: 0;
440 }
441
442 @media (min-resolution: 2dppx) {
443   xul|*.checkbox-check[checked] {
444     background-size: 12px 12px, auto;
445     background-image: url("chrome://global/skin/in-content/check@2x.png"),
446                       linear-gradient(#fff, rgba(255,255,255,0.8)) !important;
447   }
448 }
449
450 xul|*.radio-check {
451   -moz-appearance: none;
452   width: 23px;
453   height: 23px;
454   border: 1px solid #c1c1c1;
455   border-radius: 50%;
456   -moz-margin-end: 10px;
457   background-color: #f1f1f1;
458   background-image: linear-gradient(#fff, rgba(255,255,255,0.80));
459   box-shadow: 0 1px 1px 0 #fff, inset 0 2px 0 0 rgba(0,0,0,0.03);
460 }
461
462 xul|radio:not([disabled="true"]):hover > xul|*.radio-check {
463   border-color: #0095dd;
464 }
465
466 xul|*.radio-check[selected] {
467   background-image: radial-gradient(circle, rgb(23,146,229),
468                     rgb(76,177,255) 5.5px, rgba(76,177,255,0.2) 6px,
469                     transparent 6px),
470                     linear-gradient(rgb(255,255,255), rgba(255,255,255,0.8));
471 }
472
473 xul|radio[disabled="true"] > xul|*.radio-check {
474   opacity: 0.5;
475 }
476
477 xul|*.radio-label-box {
478   -moz-margin-start: -1px; / * negative margin for the transparent border *  /
479   -moz-margin-end: 10px;
480   -moz-padding-start: 0;
481 }
482 */
483 /* Category List */
484 /*
485 xul|*#categories {
486   -moz-appearance: none;
487   background-color: #424f5a;
488   padding-top: 39px;
489   margin: 0;
490 }
491
492 xul|*.category {
493   -moz-appearance: none;
494   color: #c1c1c1;
495   -moz-border-end-width: 0;
496   -moz-padding-start: 15px;
497   -moz-padding-end: 21px;
498   min-height: 40px;
499   transition: background-color 150ms;
500 }
501
502 xul|*.category:hover {
503   background-color: #5e6972;
504 }
505
506 xul|*.category[selected] {
507   background-color: #343f48;
508   color: #f2f2f2;
509   box-shadow: inset 4px 0 0 0 #ff9500;
510 }
511
512 xul|*#categories[keyboard-navigation="true"]:-moz-focusring > xul|*.category[current] {
513   border-top: 1px #ffffff dotted;
514   border-bottom: 1px #ffffff dotted;
515 }
516
517 *|*.category-name {
518   line-height: 22px;
519   font-size: 1.25rem;
520   padding-bottom: 2px;
521   -moz-padding-start: 9px;
522   margin: 0;
523 }
524
525 *|*.category-icon {
526   width: 24px;
527   height: 24px;
528 }
529 */
530 /* header */
531 /*
532 *|*.header {
533   border-bottom: 1px solid #c8c8c8;
534   margin-bottom: 15px;
535   padding-bottom: 15px;
536 }
537
538 *|*.header-name {
539   font-size: 2.5rem;
540   font-weight: normal;
541   line-height: 40px;
542   margin: 0;
543 }
544 */
545 /* File fields */
546 /*
547 xul|filefield {
548   -moz-appearance: none;
549   background-color: transparent;
550   border: none;
551   padding: 0;
552 }
553
554 xul|*.fileFieldContentBox {
555   background-color: transparent;
556 }
557
558 xul|*.fileFieldIcon {
559   -moz-margin-start: 10px;
560   -moz-margin-end: 0;
561 }
562
563 xul|*.fileFieldLabel {
564   -moz-margin-start: -26px;
565   -moz-padding-start: 36px;
566 }
567
568 xul|textbox:-moz-locale-dir(rtl),
569 xul|*.fileFieldLabel:-moz-locale-dir(rtl),
570 xul|textbox + xul|button:-moz-locale-dir(ltr),
571 xul|filefield + xul|button:-moz-locale-dir(ltr) {
572   border-top-left-radius: 0;
573   border-bottom-left-radius: 0;
574 }
575
576 xul|textbox:-moz-locale-dir(ltr),
577 xul|*.fileFieldLabel:-moz-locale-dir(ltr),
578 xul|textbox + xul|button:-moz-locale-dir(rtl),
579 xul|filefield + xul|button:-moz-locale-dir(rtl) {
580   border-top-right-radius: 0;
581   border-bottom-right-radius: 0;
582 }
583
584 xul|textbox + xul|button,
585 xul|filefield + xul|button {
586   -moz-border-start: none;
587 }
588 */
589 /* === END common.inc.css === */
590 /*
591 xul|caption {
592   background-color: transparent;
593 }
594
595 xul|button,
596 xul|colorpicker[type="button"],
597 xul|menulist {
598   margin: 2px 4px;
599 }
600
601 xul|menulist:not([editable="true"]) > xul|*.menulist-dropmarker {
602   margin-top: 1px;
603   margin-bottom: 1px;
604 }
605
606 xul|checkbox {
607   -moz-padding-start: 0;
608 }
609
610 xul|radio {
611   -moz-binding: url("chrome://global/content/bindings/radio.xml#radio");
612   -moz-margin-start: 0;
613   -moz-padding-start: 0;
614 }
615
616 xul|*.radio-icon,
617 xul|*.checkbox-icon {
618   -moz-margin-end: 0;
619 }
620
621 html|a:-moz-focusring,
622 xul|*.text-link:-moz-focusring,
623 xul|*.inline-link:-moz-focusring {
624   border: 1px dotted -moz-DialogText;
625 }
626 */