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