Commit | Line | Data |
---|---|---|
9099c61d 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/. */ | |
128000f4 | 4 | |
df8c26c4 RK |
5 | /* ===== checkbox.css =================================================== |
6 | == Styles used by the XUL checkbox element. | |
7 | ======================================================================= */ | |
8 | ||
128000f4 | 9 | @namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"); |
10 | ||
df8c26c4 | 11 | /* ::::: checkbox ::::: */ |
f6e0a33f | 12 | |
74d14f90 | 13 | checkbox { |
76983f4c | 14 | -moz-box-align: center; |
64da60f3 RK |
15 | margin: 1px 2px; |
16 | padding-top: 0; | |
17 | padding-bottom: 0; | |
18 | padding-inline-start: 2px; | |
19 | padding-inline-end: 0; | |
74d14f90 | 20 | } |
21 | ||
22 | .checkbox-label-box { | |
74d14f90 | 23 | border: 1px solid transparent; |
74d14f90 | 24 | } |
25 | ||
64da60f3 | 26 | .checkbox-icon { |
dae45075 | 27 | margin-inline-end: 2px; |
74d14f90 | 28 | } |
29 | ||
30 | .checkbox-label { | |
31 | margin: 0 !important; | |
32 | } | |
33 | ||
34 | /* ..... focused state ..... */ | |
35 | ||
64da60f3 | 36 | checkbox:-moz-focusring > .checkbox-label-box { |
74d14f90 | 37 | border: 1px dotted #9999CC; |
38 | } | |
39 | ||
40 | /* ..... disabled state ..... */ | |
41 | ||
64da60f3 | 42 | checkbox[disabled="true"] > .checkbox-check { |
df8c26c4 | 43 | background-color: #CCD0DD; |
74d14f90 | 44 | } |
45 | ||
64da60f3 RK |
46 | checkbox[disabled="true"] > .checkbox-label-box { |
47 | color: #999999; | |
74d14f90 | 48 | } |
49 | ||
50 | /* ::::: checkmark image ::::: */ | |
51 | ||
52 | .checkbox-check { | |
74d14f90 | 53 | border: 1px inset #CCD0DD; |
e6947267 RK |
54 | width: 1em; |
55 | height: 1em; | |
56 | min-width: 12px; | |
57 | min-height: 12px; | |
74d14f90 | 58 | background: transparent 50% 50% no-repeat; |
64da60f3 | 59 | margin-inline-end: 3px; |
74d14f90 | 60 | } |
76983f4c | 61 | |
64da60f3 | 62 | checkbox:hover:active > .checkbox-check { |
df8c26c4 | 63 | background-color: #CCD0DD; |
74d14f90 | 64 | } |
65 | ||
66 | /* ..... checked state ..... */ | |
67 | ||
64da60f3 | 68 | checkbox[checked="true"] > .checkbox-check { |
74d14f90 | 69 | background-image: url("chrome://global/skin/checkbox/cbox-check.gif"); |
70 | } | |
e12e6531 | 71 | |
64da60f3 | 72 | checkbox[checked="true"][disabled="true"] > .checkbox-check { |
74d14f90 | 73 | background-image: url("chrome://global/skin/checkbox/cbox-check-disabled.gif") !important |
74 | } |