sync both themes with toolkit windows theme changes in Mozilla 39 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 xul|window {
13   font: 11px "Liberation Sans",Arial,Tahoma,Helvetica,sans-serif;
14   -moz-appearance: none;
15   background-color: #CCD0DD;
16   color: #000000;
17 }
18
19 html|body {
20   font-size: 15px;
21   font-weight: normal;
22   margin: 0;
23 }
24
25 html|h1 {
26   font-size: 2.5em;
27   font-weight: lighter;
28   line-height: 1.2;
29   color: #000000;
30   margin: 0;
31   margin-bottom: .5em;
32 }
33
34 html|hr {
35   border-style: solid none none none;
36   border-color: #666699;
37 }
38
39 xul|caption {
40 }
41
42 xul|caption > xul|checkbox,
43 xul|caption > xul|label {
44   margin-top: 0;
45   margin-bottom: 0;
46 }
47
48 xul|description {
49   -moz-margin-start: 0;
50 }
51
52 *|*.main-content {
53   padding-top: 40px;
54   -moz-padding-end: 48px; /* orig is 44px to compensate the 4px margin of child elements */
55   padding-bottom: 48px;
56   -moz-padding-start: 48px;
57   overflow: auto;
58 }
59
60 xul|prefpane > xul|*.content-box {
61   overflow: visible;
62 }
63
64 /* groupboxes */
65 /*
66 xul|groupbox {
67   -moz-appearance: none;
68   border: none;
69   margin: 15px 0 0;
70   -moz-padding-start: 0;
71   -moz-padding-end: 0;
72   font-size: 1.25rem;
73 }
74
75 xul|groupbox xul|label {
76   / !important needed to override toolkit !important rule /
77   -moz-margin-start: 0 !important;
78   -moz-margin-end: 0 !important;
79 }
80 */
81 /* tabpanels and tabs */
82 /*
83 xul|tabpanels {
84   -moz-appearance: none;
85   font-size: 1.25rem;
86   line-height: 22px;
87   border: none;
88   padding: 0;
89   background-color: transparent;
90   color: inherit;
91 }
92
93 xul|tabs {
94   margin-bottom: 15px;
95   border-top: 1px solid #c1c1c1;
96   border-bottom: 1px solid #c1c1c1;
97   background-color: #fbfbfb;
98 }
99
100 xul|*.tabs-left,
101 xul|*.tabs-right {
102   border-bottom: none;
103 }
104
105 xul|tab {
106   -moz-appearance: none;
107   margin-top: 0;
108   padding: 4px 20px;
109   min-height: 44px;
110   color: #424f5a;
111   background-color: #fbfbfb;
112   border-width: 0;
113   transition: background-color 50ms ease 0s;
114 }
115
116 xul|tab:hover {
117   background-color: #ebebeb;
118 }
119
120 xul|tab[visuallyselected] {
121   background-color: #ebebeb;
122   padding-bottom: 0; / compensate the 4px border /
123   border-bottom: 4px solid #ff9500;
124 }
125
126 xul|*.tab-text {
127   font-size: 1.3rem;
128   line-height: 22px;
129 }
130 */
131 /* html buttons */
132
133 html|button {
134   border-radius: 0px;
135   border: 1px outset #CCD0DD;
136   background-color: #CCD0DD;
137   color: #000000;
138   / * override forms.css * /
139   font: inherit;
140 }
141
142 /* xul buttons and menulists */
143 /*
144 *|button,
145 xul|colorpicker[type="button"],
146 xul|menulist {
147   -moz-appearance: none;
148   height: 30px;
149   color: #333;
150   line-height: 20px;
151   border: 1px solid #c1c1c1;
152   -moz-border-top-colors: none !important;
153   -moz-border-right-colors: none !important;
154   -moz-border-bottom-colors: none !important;
155   -moz-border-left-colors: none !important;
156   border-radius: 2px;
157   background-color: #fbfbfb;
158 }
159 */
160 html|button:enabled:hover,
161 xul|button:not([disabled="true"]):hover,
162 xul|colorpicker[type="button"]:not([disabled="true"]):hover,
163 xul|menulist:not([disabled="true"]):hover {
164 }
165
166 html|button:enabled:hover:active,
167 xul|button:not([disabled="true"]):hover:active,
168 xul|colorpicker[type="button"]:not([disabled="true"]):hover:active,
169 xul|menulist[open="true"]:not([disabled="true"]) {
170   border: 1px inset #CCD0DD;
171 }
172
173 html|button:disabled,
174 xul|button[disabled="true"],
175 xul|colorpicker[type="button"][disabled="true"],
176 xul|menulist[disabled="true"] {
177   cursor: not-allowed;
178   border: 1px outset #CCD0DD;
179   color: #999999;
180 }
181 /*
182 *|button.primary {
183   background-color: #0095dd;
184   border-color: transparent;
185   color: #fff;
186 }
187
188 html|button.primary:enabled:hover,
189 xul|button.primary:not([disabled="true"]):hover {
190   background-color: #008acb;
191 }
192
193 html|button.primary:enabled:hover:active,
194 xul|button.primary:not([disabled="true"]):hover:active {
195   background-color: #006b9d;
196 }
197
198 xul|colorpicker[type="button"] {
199   padding: 6px;
200   width: 50px;
201 }
202
203 xul|button > xul|*.button-box,
204 xul|menulist > xul|*.menulist-label-box {
205   padding-right: 10px !important;
206   padding-left: 10px !important;
207 }
208
209 xul|menulist > xul|*.menulist-label-box > xul|*.menulist-icon[src] {
210   -moz-margin-end: 5px;
211 }
212
213 xul|button[type="menu"] > xul|*.button-box > xul|*.button-menu-dropmarker {
214   -moz-appearance: none;
215   margin: 1px 0;
216   -moz-margin-start: 10px;
217   padding: 0;
218   width: 10px;
219   height: 16px;
220   border: none;
221   background-color: transparent;
222   list-style-image: url("chrome://global/skin/in-content/dropdown.svg#dropdown");
223 }
224
225 xul|*.help-button {
226   min-width: 30px;
227   border-radius: 2px;
228   border-width: 0;
229   background-color: #ffcb00;
230   background-image: none;
231   box-shadow: none;
232   list-style-image: url("chrome://global/skin/in-content/help-glyph.svg");
233 }
234
235 xul|*.help-button:not([disabled="true"]):hover {
236   background-color: #f4c200;
237   background-image: none;
238 }
239
240 xul|*.help-button:not([disabled="true"]):hover:active {
241   background-color: #eaba00;
242   background-image: none;
243 }
244
245 xul|*.close-icon > xul|*.button-box,
246 xul|*.help-button > xul|*.button-box {
247   padding-top: 0;
248   padding-bottom: 0;
249   padding-right: 0 !important;
250   padding-left: 0 !important;
251 }
252
253 xul|*.help-button > xul|*.button-box > xul|*.button-icon {
254   width: 18px;
255   height: 18px;
256 }
257
258 xul|*.help-button > xul|*.button-box > xul|*.button-text {
259   display: none;
260 }
261
262 xul|*.spinbuttons-button {
263   -moz-margin-start: 10px !important;
264   -moz-margin-end: 2px !important;
265 }
266
267 xul|*.spinbuttons-up {
268   margin-top: 2px !important;
269   border-radius: 1px 1px 0 0;
270 }
271
272 xul|*.spinbuttons-down  {
273   margin-bottom: 2px !important;
274   border-radius: 0 0 1px 1px;
275 }
276
277 xul|*.spinbuttons-button > xul|*.button-box {
278   padding: 1px 5px 2px !important;
279 }
280
281 xul|*.spinbuttons-up > xul|*.button-box > xul|*.button-icon {
282   list-style-image: url("chrome://global/skin/arrow/arrow-up.gif");
283 }
284
285 xul|*.spinbuttons-up[disabled="true"] > xul|*.button-box > xul|*.button-icon {
286   list-style-image: url("chrome://global/skin/arrow/arrow-up-dis.gif");
287 }
288
289 xul|*.spinbuttons-down > xul|*.button-box > xul|*.button-icon {
290   list-style-image: url("chrome://global/skin/arrow/arrow-dn.gif");
291 }
292
293 xul|*.spinbuttons-down[disabled="true"] > xul|*.button-box > xul|*.button-icon {
294   list-style-image: url("chrome://global/skin/arrow/arrow-dn-dis.gif");
295 }
296
297 xul|menulist:not([editable="true"]) > xul|*.menulist-dropmarker {
298   -moz-appearance: none;
299   -moz-margin-end: 4px;
300   padding: 0;
301   border: none;
302   background-color: transparent;
303   list-style-image: url("chrome://global/skin/in-content/dropdown.svg#dropdown");
304 }
305
306 xul|menulist:not([editable="true"]) > xul|*.menulist-dropmarker > xul|*.dropmarker-icon {
307   width: 18px;
308   height: 18px;
309 }
310
311 xul|menulist[disabled="true"]:not([editable="true"]) > xul|*.menulist-dropmarker {
312   list-style-image: url("chrome://global/skin/in-content/dropdown.svg#dropdown-disabled")
313 }
314
315 xul|menulist > xul|menupopup,
316 xul|button[type="menu"] > xul|menupopup {
317   -moz-appearance: none;
318   border: 1px solid #c1c1c1;
319   border-radius: 2px;
320   background-color: #fff;
321 }
322
323 xul|menulist > xul|menupopup xul|menu,
324 xul|menulist > xul|menupopup xul|menuitem,
325 xul|button[type="menu"] > xul|menupopup xul|menu,
326 xul|button[type="menu"] > xul|menupopup xul|menuitem {
327   -moz-appearance: none;
328   font-size: 1rem;
329   color: #333;
330   padding-top: 0.2em;
331   padding-bottom: 0.2em;
332   -moz-padding-start: 10px;
333   -moz-padding-end: 30px;
334 }
335
336 xul|menulist > xul|menupopup > xul|menu[_moz-menuactive="true"],
337 xul|menulist > xul|menupopup > xul|menuitem[_moz-menuactive="true"],
338 xul|button[type="menu"] > xul|menupopup > xul|menu[_moz-menuactive="true"],
339 xul|button[type="menu"] > xul|menupopup > xul|menuitem[_moz-menuactive="true"] {
340   color: #333;
341   background-color: rgba(0,149,221,0.25);
342 }
343
344 xul|menulist > xul|menupopup > xul|menu[selected="true"],
345 xul|menulist > xul|menupopup > xul|menuitem[selected="true"],
346 xul|button[type="menu"] > xul|menupopup > xul|menu[selected="true"],
347 xul|button[type="menu"] > xul|menupopup > xul|menuitem[selected="true"] {
348   color: #fff;
349   background-color: #0095DD;
350 }
351
352 xul|menulist > xul|menupopup xul|menuseparator,
353 xul|button[type="menu"] > xul|menupopup xul|menuseparator {
354   -moz-appearance: none;
355   margin: 0;
356   padding: 0;
357   border-top: 1px solid #c1c1c1;
358   border-bottom: none;
359 }
360 */
361 /* textboxes */
362 /*
363 *|textbox {
364   -moz-appearance: none;
365   height: 30px;
366   color: #333;
367   line-height: 20px;
368   padding-right: 10px;
369   padding-left: 10px;
370   border: 1px solid #c1c1c1;
371   -moz-border-top-colors: none !important;
372   -moz-border-right-colors: none !important;
373   -moz-border-bottom-colors: none !important;
374   -moz-border-left-colors: none !important;
375   border-radius: 2px;
376   background-color: #fff;
377 }
378
379 html|textbox:focus,
380 xul|textbox[focused] {
381   border-color: #0095dd;
382 }
383
384 html|textbox:disabled,
385 xul|textbox[disabled="true"] {
386   opacity: 0.5;
387 }
388 */
389 /* Links */
390 /*
391 html|a,
392 .text-link,
393 .inline-link {
394   line-height: 22px;
395   color: #0095dd;
396   text-decoration: none;
397 }
398
399 html|a:hover,
400 .text-link:hover,
401 .inline-link:hover {
402   color: #4cb1ff;
403   text-decoration: none;
404 }
405
406 html|a:hover:active,
407 .text-link:hover:active,
408 .inline-link:hover:active {
409   color: #ff9500;
410   text-decoration: none;
411 }
412 */
413 /* Checkboxes and radio buttons */
414 /*
415 / Hide the actual checkbox /
416 html|input[type="checkbox"] {
417   opacity: 0;
418   position: absolute;
419 }
420
421 / Create a box to style as the checkbox /
422 html|input[type="checkbox"] + html|label:before {
423   display: inline-block;
424   content: "";
425   vertical-align: middle;
426 }
427
428 html|input[type="checkbox"] + html|label {
429   line-height: 0px;
430 }
431
432 xul|checkbox {
433   -moz-margin-start: 0;
434 }
435
436 xul|*.checkbox-check,
437 html|input[type="checkbox"] + html|label:before {
438   -moz-appearance: none;
439   width: 23px;
440   height: 23px;
441   border-radius: 2px;
442   border: 1px solid #c1c1c1;
443   -moz-margin-end: 10px;
444   background-color: #f1f1f1;
445   / !important needed to override toolkit checked !important rule /
446   background-image: linear-gradient(#fff, rgba(255,255,255,0.8)) !important;
447   background-position: center center;
448   background-repeat: no-repeat;
449   box-shadow: 0 1px 1px 0 #fff, inset 0 2px 0 0 rgba(0,0,0,0.03);
450 }
451
452 xul|checkbox:not([disabled="true"]):hover > xul|*.checkbox-check,
453 html|input[type="checkbox"]:not(:disabled) + html|label:hover:before {
454   border-color: #0095dd;
455 }
456
457 xul|*.checkbox-check[checked] {
458   background-image: url("chrome://global/skin/in-content/check.png"),
459                     / * !important needed to override toolkit !important rule * /
460                     linear-gradient(#fff, rgba(255,255,255,0.8)) !important;
461 }
462
463 html|input[type="checkbox"]:checked + html|label:before {
464   background-image: url("chrome://global/skin/in-content/check.svg#check"), linear-gradient(#fff, rgba(255,255,255,0.8)) !important;
465 }
466
467 xul|checkbox[disabled="true"] > xul|*.checkbox-check,
468 html|input[type="checkbox"]:disabled + html|label {
469   opacity: 0.5;
470 }
471
472 xul|*.checkbox-label-box {
473   -moz-margin-start: -1px; / * negative margin for the transparent border * /
474   -moz-padding-start: 0;
475 }
476
477 xul|richlistitem > xul|*.checkbox-check {
478   margin: 3px 6px;
479 }
480
481 xul|radio {
482   -moz-margin-start: 0;
483 }
484
485 xul|*.radio-check {
486   -moz-appearance: none;
487   width: 23px;
488   height: 23px;
489   border: 1px solid #c1c1c1;
490   border-radius: 50%;
491   -moz-margin-end: 10px;
492   background-color: #f1f1f1;
493   background-image: linear-gradient(#fff, rgba(255,255,255,0.80));
494   box-shadow: 0 1px 1px 0 #fff, inset 0 2px 0 0 rgba(0,0,0,0.03);
495 }
496
497 xul|radio:not([disabled="true"]):hover > xul|*.radio-check {
498   border-color: #0095dd;
499 }
500
501 xul|*.radio-check[selected] {
502   list-style-image: url("chrome://global/skin/in-content/radio.svg#radio");
503 }
504
505 xul|radio[disabled="true"] > xul|*.radio-check {
506   opacity: 0.5;
507 }
508
509 xul|*.radio-label-box {
510   -moz-margin-start: -1px; / * negative margin for the transparent border *  /
511   -moz-margin-end: 10px;
512   -moz-padding-start: 0;
513 }
514 */
515 /* Category List */
516 /*
517 xul|*#categories {
518   -moz-appearance: none;
519   background-color: #424f5a;
520   padding-top: 39px;
521   margin: 0;
522   border-width: 0;
523 }
524
525 xul|*.category {
526   -moz-appearance: none;
527   color: #c1c1c1;
528   -moz-border-end-width: 0;
529   -moz-padding-start: 15px;
530   -moz-padding-end: 21px;
531   min-height: 40px;
532   transition: background-color 150ms;
533 }
534
535 xul|*.category:hover {
536   background-color: #5e6972;
537 }
538
539 xul|*.category[selected] {
540   background-color: #343f48;
541   color: #f2f2f2;
542   -moz-padding-start: 11px; / compensate the 4px border /
543   -moz-border-start: solid 4px #ff9500;
544 }
545
546 xul|*#categories[keyboard-navigation="true"]:-moz-focusring > xul|*.category[current] {
547   border-top: 1px #ffffff dotted;
548   border-bottom: 1px #ffffff dotted;
549 }
550
551 *|*.category-name {
552   line-height: 22px;
553   font-size: 1.25rem;
554   padding-bottom: 2px;
555   -moz-padding-start: 9px;
556   margin: 0;
557   -moz-user-select: none;
558 }
559
560 *|*.category-icon {
561   width: 24px;
562   height: 24px;
563 }
564 */
565 /* header */
566 /*
567 *|*.header {
568   -moz-margin-end: 4px; / add the 4px end-margin of other elements /
569   border-bottom: 1px solid #c8c8c8;
570   margin-bottom: 15px;
571   padding-bottom: 15px;
572 }
573
574 *|*.header-name {
575   font-size: 2.5rem;
576   font-weight: normal;
577   line-height: 40px;
578   margin: 0;
579   -moz-user-select: none;
580 }
581 */
582 /* File fields */
583 /*
584 xul|filefield {
585   -moz-appearance: none;
586   background-color: transparent;
587   border: none;
588   padding: 0;
589 }
590
591 xul|*.fileFieldContentBox {
592   background-color: transparent;
593 }
594
595 xul|*.fileFieldIcon {
596   -moz-margin-start: 10px;
597   -moz-margin-end: 0;
598 }
599
600 xul|*.fileFieldLabel {
601   -moz-margin-start: -26px;
602   -moz-padding-start: 36px;
603 }
604
605 xul|textbox:-moz-locale-dir(rtl),
606 xul|*.fileFieldLabel:-moz-locale-dir(rtl),
607 xul|textbox + xul|button:-moz-locale-dir(ltr),
608 xul|filefield + xul|button:-moz-locale-dir(ltr) {
609   border-top-left-radius: 0;
610   border-bottom-left-radius: 0;
611 }
612
613 xul|textbox:-moz-locale-dir(ltr),
614 xul|*.fileFieldLabel:-moz-locale-dir(ltr),
615 xul|textbox + xul|button:-moz-locale-dir(rtl),
616 xul|filefield + xul|button:-moz-locale-dir(rtl) {
617   border-top-right-radius: 0;
618   border-bottom-right-radius: 0;
619 }
620
621 xul|textbox + xul|button,
622 xul|filefield + xul|button {
623   -moz-border-start: none;
624 }
625 */
626 /* List boxes */
627 /*
628 xul|richlistbox,
629 xul|listbox {
630   -moz-appearance: none;
631   -moz-margin-start: 0;
632   background-color: #fff;
633   border: 1px solid #c1c1c1;
634   color: #333;
635 }
636
637 xul|treechildren::-moz-tree-row,
638 xul|listbox xul|listitem {
639   padding: 0.3em;
640   margin: 0;
641   border: none;
642   border-radius: 0;
643   background-image: none;
644 }
645
646 xul|treechildren::-moz-tree-row(hover),
647 xul|listbox xul|listitem:hover {
648   background-color: rgba(0,149,221,0.25);
649 }
650
651 xul|treechildren::-moz-tree-row(selected),
652 xul|listbox xul|listitem[selected="true"] {
653   background-color: #0095dd;
654   color: #fff;
655 }
656 */
657 /* Trees */
658 /*
659 xul|tree {
660   -moz-appearance: none;
661   font-size: 1em;
662   border: 1px solid #c1c1c1;
663 }
664
665 xul|tree:-moz-focusring,
666 xul|richlistbox:-moz-focusring {
667   border: 1px dotted #0095dd;
668 }
669
670 xul|listheader,
671 xul|treecols {
672   -moz-appearance: none;
673   border: none;
674   border-bottom: 1px solid #c1c1c1;
675   padding: 0;
676 }
677
678 xul|treecol:not([hideheader="true"]),
679 xul|treecolpicker {
680   -moz-appearance: none;
681   border: none;
682   background-color: #ebebeb;
683   color: #808080;
684   padding: 5px 10px;
685 }
686
687 xul|treecol:not([hideheader="true"]):not([sortable="false"]):hover,
688 xul|treecolpicker:hover {
689   background-color: #dadada;
690   color: #333;
691 }
692
693 xul|treecol:not([hideheader="true"]):not(:first-child),
694 xul|treecolpicker {
695   -moz-border-start-width: 1px;
696   -moz-border-start-style: solid;
697   border-image: linear-gradient(transparent 0%, transparent 20%, #c1c1c1 20%, #c1c1c1 80%, transparent 80%, transparent 100%) 1 1;
698 }
699
700 xul|treecol:not([hideheader="true"]) > xul|*.treecol-sortdirection[sortDirection] {
701   list-style-image: url("chrome://global/skin/in-content/dropdown.svg#dropdown");
702   width: 18px;
703   height: 18px;
704 }
705
706 xul|treecol:not([hideheader="true"]) > xul|*.treecol-sortdirection[sortDirection="ascending"] {
707   transform: scaleY(-1);
708 }
709
710 / This is the only way to increase the height of a tree row unfortunately /
711 xul|treechildren::-moz-tree-row {
712   min-height: 2em;
713 }
714
715 / Color needs to be set on tree cell in order to be applied /
716 xul|treechildren::-moz-tree-cell-text {
717   color: #333;
718 }
719
720 xul|treechildren::-moz-tree-cell-text(selected) {
721   color: #fff;
722 }
723 */
724 /* === END common.inc.css === */
725 /*
726 xul|caption {
727   background-color: transparent;
728 }
729
730 xul|button,
731 html|button,
732 xul|colorpicker[type="button"],
733 xul|menulist {
734   margin: 2px 4px;
735 }
736
737 xul|menulist:not([editable="true"]) > xul|*.menulist-dropmarker {
738   margin-top: 1px;
739   margin-bottom: 1px;
740 }
741
742 xul|checkbox {
743   -moz-padding-start: 0;
744 }
745
746 xul|radio {
747   -moz-binding: url("chrome://global/content/bindings/radio.xml#radio");
748   -moz-padding-start: 0;
749 }
750
751 xul|*.radio-icon,
752 xul|*.checkbox-icon {
753   -moz-margin-end: 0;
754 }
755
756 html|a:-moz-focusring,
757 .text-link:-moz-focusring,
758 .inline-link:-moz-focusring {
759   border: 1px dotted -moz-DialogText;
760 }
761 */