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