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 /* ===== checkbox.css ===================================================
6 == Styles used by the XUL checkbox element.
7 ======================================================================= */
9 @namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul");
11 /* ::::: checkbox ::::: */
15 border-left: 1px transparent;
16 border-right: 1px transparent;
19 .checkbox-spacer-box {
20 -moz-box-align: center;
21 border-right: 4px solid transparent;
24 .checkbox-label-center-box {
25 -moz-box-align: center;
29 border: 1px solid transparent;
31 -moz-box-align: center;
42 /* ..... focused state ..... */
44 checkbox:-moz-focusring > .checkbox-label-center-box > .checkbox-label-box {
45 border: 1px dotted #008484;
48 /* ..... disabled state ..... */
50 checkbox[disabled="true"] > .checkbox-spacer-box > .checkbox-check {
51 border: 1px solid #8050B0 !important;
52 background-color: #000000;
55 checkbox[disabled="true"] {
56 color: #8050B0 !important;
59 /* ::::: checkmark image ::::: */
63 border: 1px solid #FF9F00;
66 background: transparent 50% 50% no-repeat;
69 checkbox:hover > .checkbox-spacer-box > .checkbox-check,
70 checkbox:hover:active > .checkbox-spacer-box > .checkbox-check {
71 border: 1px solid #FFCF00;
72 background-color: #000000;
75 checkbox:hover > .checkbox-label-center-box > .checkbox-label-box,
76 checkbox:hover:active > .checkbox-label-center-box > .checkbox-label-box {
80 /* ..... checked state ..... */
82 checkbox[checked="true"] > .checkbox-spacer-box > .checkbox-check {
83 background-image: url("chrome://global/skin/checkbox/cbox-check.gif");
86 checkbox[checked="true"][disabled="true"] > .checkbox-spacer-box > .checkbox-check {
87 background-image: url("chrome://global/skin/checkbox/cbox-check-disabled.gif") !important