update versions to current nightlies
[themes.git] / EarlyBlue / global / checkbox.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/* ===== checkbox.css ===================================================
6 == Styles used by the XUL checkbox element.
7 ======================================================================= */
8
9@namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul");
10
11/* ::::: checkbox ::::: */
12
13checkbox {
14 margin: 1px 2px;
15 border-left: 1px transparent;
16 border-right: 1px transparent;
17}
18
19.checkbox-spacer-box {
20 -moz-box-align: center;
21 border-right: 4px solid transparent;
22}
23
24.checkbox-label-center-box {
25 -moz-box-align: center;
26}
27
28.checkbox-label-box {
29 border: 1px solid transparent;
30 -moz-box-align: center;
31}
32
33.checkbox-icon[src] {
34 -moz-margin-end: 2px;
35}
36
37.checkbox-label {
38 margin: 0 !important;
39}
40
41/* ..... focused state ..... */
42
43checkbox:-moz-focusring > .checkbox-label-center-box > .checkbox-label-box {
44 border: 1px dotted #9999CC;
45}
46
47/* ..... disabled state ..... */
48
49checkbox[disabled="true"] > .checkbox-check,
50checkbox[disabled="true"] > .checkbox-spacer-box > .checkbox-check {
51 background-color: #CCD0DD;
52}
53
54checkbox[disabled="true"] {
55 color: #999999 !important;
56}
57
58/* ::::: checkmark image ::::: */
59
60.checkbox-check {
61 border: 1px inset #CCD0DD;
62 width: 1em;
63 height: 1em;
64 min-width: 12px;
65 min-height: 12px;
66 background: transparent 50% 50% no-repeat;
67}
68
69checkbox > .checkbox-check {
70 -moz-margin-end: 4px;
71}
72
73checkbox:hover:active > .checkbox-check,
74checkbox:hover:active > .checkbox-spacer-box > .checkbox-check {
75 background-color: #CCD0DD;
76}
77
78/* ..... checked state ..... */
79
80checkbox[checked="true"] > .checkbox-check,
81checkbox[checked="true"] > .checkbox-spacer-box > .checkbox-check {
82 background-image: url("chrome://global/skin/checkbox/cbox-check.gif");
83}
84
85checkbox[checked="true"][disabled="true"] > .checkbox-check,
86checkbox[checked="true"][disabled="true"] > .checkbox-spacer-box > .checkbox-check {
87 background-image: url("chrome://global/skin/checkbox/cbox-check-disabled.gif") !important
88}