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/. */
5 /* === BEGIN common.inc.css === */
7 @namespace html "http://www.w3.org/1999/xhtml";
8 @namespace xul "http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul";
13 font: 11px "Liberation Sans",Arial,Tahoma,Helvetica,sans-serif;
14 -moz-appearance: none;
15 background-color: #CCD0DD;
35 border-style: solid none none none;
36 border-color: #666699;
42 xul|caption > xul|checkbox,
43 xul|caption > xul|label {
54 -moz-padding-end: 48px; /* orig is 44px to compensate the 4px margin of child elements */
56 -moz-padding-start: 48px;
60 xul|prefpane > xul|*.content-box {
67 -moz-appearance: none;
70 -moz-padding-start: 0;
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;
81 /* tabpanels and tabs */
84 -moz-appearance: none;
89 background-color: transparent;
95 border-top: 1px solid #c1c1c1;
96 border-bottom: 1px solid #c1c1c1;
97 background-color: #fbfbfb;
106 -moz-appearance: none;
111 background-color: #fbfbfb;
113 transition: background-color 50ms ease 0s;
117 background-color: #ebebeb;
121 background-color: #ebebeb;
122 padding-bottom: 0; / compensate the 4px border /
123 border-bottom: 4px solid #ff9500;
135 border: 1px outset #CCD0DD;
136 background-color: #CCD0DD;
138 / * override forms.css * /
142 /* xul buttons and menulists */
145 xul|colorpicker[type="button"],
147 -moz-appearance: none;
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;
157 background-color: #fbfbfb;
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 {
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;
173 html|button:disabled,
174 xul|button[disabled="true"],
175 xul|colorpicker[type="button"][disabled="true"],
176 xul|menulist[disabled="true"] {
178 border: 1px outset #CCD0DD;
183 background-color: #0095dd;
184 border-color: transparent;
188 html|button.primary:enabled:hover,
189 xul|button.primary:not([disabled="true"]):hover {
190 background-color: #008acb;
193 html|button.primary:enabled:hover:active,
194 xul|button.primary:not([disabled="true"]):hover:active {
195 background-color: #006b9d;
198 xul|colorpicker[type="button"] {
203 xul|button > xul|*.button-box,
204 xul|menulist > xul|*.menulist-label-box {
205 padding-right: 10px !important;
206 padding-left: 10px !important;
209 xul|menulist > xul|*.menulist-label-box > xul|*.menulist-icon[src] {
210 -moz-margin-end: 5px;
213 xul|button[type="menu"] > xul|*.button-box > xul|*.button-menu-dropmarker {
214 -moz-appearance: none;
216 -moz-margin-start: 10px;
221 background-color: transparent;
222 list-style-image: url("chrome://global/skin/in-content/dropdown.svg#dropdown");
229 background-color: #ffcb00;
230 background-image: none;
232 list-style-image: url("chrome://global/skin/in-content/help-glyph.svg");
235 xul|*.help-button:not([disabled="true"]):hover {
236 background-color: #f4c200;
237 background-image: none;
240 xul|*.help-button:not([disabled="true"]):hover:active {
241 background-color: #eaba00;
242 background-image: none;
245 xul|*.close-icon > xul|*.button-box,
246 xul|*.help-button > xul|*.button-box {
249 padding-right: 0 !important;
250 padding-left: 0 !important;
253 xul|*.help-button > xul|*.button-box > xul|*.button-icon {
258 xul|*.help-button > xul|*.button-box > xul|*.button-text {
262 xul|*.spinbuttons-button {
263 -moz-margin-start: 10px !important;
264 -moz-margin-end: 2px !important;
267 xul|*.spinbuttons-up {
268 margin-top: 2px !important;
269 border-radius: 1px 1px 0 0;
272 xul|*.spinbuttons-down {
273 margin-bottom: 2px !important;
274 border-radius: 0 0 1px 1px;
277 xul|*.spinbuttons-button > xul|*.button-box {
278 padding: 1px 5px 2px !important;
281 xul|*.spinbuttons-up > xul|*.button-box > xul|*.button-icon {
282 list-style-image: url("chrome://global/skin/arrow/arrow-up.gif");
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");
289 xul|*.spinbuttons-down > xul|*.button-box > xul|*.button-icon {
290 list-style-image: url("chrome://global/skin/arrow/arrow-dn.gif");
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");
297 xul|menulist:not([editable="true"]) > xul|*.menulist-dropmarker {
298 -moz-appearance: none;
299 -moz-margin-end: 4px;
302 background-color: transparent;
303 list-style-image: url("chrome://global/skin/in-content/dropdown.svg#dropdown");
306 xul|menulist:not([editable="true"]) > xul|*.menulist-dropmarker > xul|*.dropmarker-icon {
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")
315 xul|menulist > xul|menupopup,
316 xul|button[type="menu"] > xul|menupopup {
317 -moz-appearance: none;
318 border: 1px solid #c1c1c1;
320 background-color: #fff;
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;
331 padding-bottom: 0.2em;
332 -moz-padding-start: 10px;
333 -moz-padding-end: 30px;
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"] {
341 background-color: rgba(0,149,221,0.25);
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"] {
349 background-color: #0095DD;
352 xul|menulist > xul|menupopup xul|menuseparator,
353 xul|button[type="menu"] > xul|menupopup xul|menuseparator {
354 -moz-appearance: none;
357 border-top: 1px solid #c1c1c1;
364 -moz-appearance: none;
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;
376 background-color: #fff;
380 xul|textbox[focused] {
381 border-color: #0095dd;
384 html|textbox:disabled,
385 xul|textbox[disabled="true"] {
396 text-decoration: none;
403 text-decoration: none;
407 .text-link:hover:active,
408 .inline-link:hover:active {
410 text-decoration: none;
413 /* Checkboxes and radio buttons */
415 / Hide the actual checkbox /
416 html|input[type="checkbox"] {
421 / Create a box to style as the checkbox /
422 html|input[type="checkbox"] + html|label:before {
423 display: inline-block;
425 vertical-align: middle;
428 html|input[type="checkbox"] + html|label {
433 -moz-margin-start: 0;
436 xul|*.checkbox-check,
437 html|input[type="checkbox"] + html|label:before {
438 -moz-appearance: none;
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);
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;
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;
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;
467 xul|checkbox[disabled="true"] > xul|*.checkbox-check,
468 html|input[type="checkbox"]:disabled + html|label {
472 xul|*.checkbox-label-box {
473 -moz-margin-start: -1px; / * negative margin for the transparent border * /
474 -moz-padding-start: 0;
477 xul|richlistitem > xul|*.checkbox-check {
482 -moz-appearance: none;
485 border: 1px solid #c1c1c1;
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);
493 xul|radio:not([disabled="true"]):hover > xul|*.radio-check {
494 border-color: #0095dd;
497 xul|*.radio-check[selected] {
498 list-style-image: url("chrome://global/skin/in-content/radio.svg#radio");
501 xul|radio[disabled="true"] > xul|*.radio-check {
505 xul|*.radio-label-box {
506 -moz-margin-start: -1px; / * negative margin for the transparent border * /
507 -moz-margin-end: 10px;
508 -moz-padding-start: 0;
514 -moz-appearance: none;
515 background-color: #424f5a;
522 -moz-appearance: none;
524 -moz-border-end-width: 0;
525 -moz-padding-start: 15px;
526 -moz-padding-end: 21px;
528 transition: background-color 150ms;
531 xul|*.category:hover {
532 background-color: #5e6972;
535 xul|*.category[selected] {
536 background-color: #343f48;
538 -moz-padding-start: 11px; / compensate the 4px border /
539 -moz-border-start: solid 4px #ff9500;
542 xul|*#categories[keyboard-navigation="true"]:-moz-focusring > xul|*.category[current] {
543 border-top: 1px #ffffff dotted;
544 border-bottom: 1px #ffffff dotted;
551 -moz-padding-start: 9px;
553 -moz-user-select: none;
564 -moz-margin-end: 4px; / add the 4px end-margin of other elements /
565 border-bottom: 1px solid #c8c8c8;
567 padding-bottom: 15px;
575 -moz-user-select: none;
581 -moz-appearance: none;
582 background-color: transparent;
587 xul|*.fileFieldContentBox {
588 background-color: transparent;
591 xul|*.fileFieldIcon {
592 -moz-margin-start: 10px;
596 xul|*.fileFieldLabel {
597 -moz-margin-start: -26px;
598 -moz-padding-start: 36px;
601 xul|textbox:-moz-locale-dir(rtl),
602 xul|*.fileFieldLabel:-moz-locale-dir(rtl),
603 xul|textbox + xul|button:-moz-locale-dir(ltr),
604 xul|filefield + xul|button:-moz-locale-dir(ltr) {
605 border-top-left-radius: 0;
606 border-bottom-left-radius: 0;
609 xul|textbox:-moz-locale-dir(ltr),
610 xul|*.fileFieldLabel:-moz-locale-dir(ltr),
611 xul|textbox + xul|button:-moz-locale-dir(rtl),
612 xul|filefield + xul|button:-moz-locale-dir(rtl) {
613 border-top-right-radius: 0;
614 border-bottom-right-radius: 0;
617 xul|textbox + xul|button,
618 xul|filefield + xul|button {
619 -moz-border-start: none;
626 -moz-appearance: none;
627 -moz-margin-start: 0;
628 background-color: #fff;
629 border: 1px solid #c1c1c1;
633 xul|treechildren::-moz-tree-row,
634 xul|listbox xul|listitem {
639 background-image: none;
642 xul|treechildren::-moz-tree-row(hover),
643 xul|listbox xul|listitem:hover {
644 background-color: rgba(0,149,221,0.25);
647 xul|treechildren::-moz-tree-row(selected),
648 xul|listbox xul|listitem[selected="true"] {
649 background-color: #0095dd;
656 -moz-appearance: none;
658 border: 1px solid #c1c1c1;
661 xul|tree:-moz-focusring,
662 xul|richlistbox:-moz-focusring {
663 border: 1px dotted #0095dd;
668 -moz-appearance: none;
670 border-bottom: 1px solid #c1c1c1;
674 xul|treecol:not([hideheader="true"]),
676 -moz-appearance: none;
678 background-color: #ebebeb;
683 xul|treecol:not([hideheader="true"]):not([sortable="false"]):hover,
684 xul|treecolpicker:hover {
685 background-color: #dadada;
689 xul|treecol:not([hideheader="true"]):not(:first-child),
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;
696 xul|treecol:not([hideheader="true"]) > xul|*.treecol-sortdirection[sortDirection] {
697 list-style-image: url("chrome://global/skin/in-content/dropdown.svg#dropdown");
702 xul|treecol:not([hideheader="true"]) > xul|*.treecol-sortdirection[sortDirection="ascending"] {
703 transform: scaleY(-1);
706 / This is the only way to increase the height of a tree row unfortunately /
707 xul|treechildren::-moz-tree-row {
711 / Color needs to be set on tree cell in order to be applied /
712 xul|treechildren::-moz-tree-cell-text {
716 xul|treechildren::-moz-tree-cell-text(selected) {
720 /* === END common.inc.css === */
723 background-color: transparent;
728 xul|colorpicker[type="button"],
733 xul|menulist:not([editable="true"]) > xul|*.menulist-dropmarker {
739 -moz-padding-start: 0;
743 -moz-binding: url("chrome://global/content/bindings/radio.xml#radio");
744 -moz-padding-start: 0;
748 xul|*.checkbox-icon {
752 html|a:-moz-focusring,
753 .text-link:-moz-focusring,
754 .inline-link:-moz-focusring {
755 border: 1px dotted -moz-DialogText;