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