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 { |
d36c7ec4 | 14 | margin: 1px 2px; |
76983f4c | 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; | |
74d14f90 | 26 | } |
27 | ||
28 | .checkbox-label-box { | |
74d14f90 | 29 | border: 1px solid transparent; |
55509a91 | 30 | -moz-box-align: center; |
74d14f90 | 31 | } |
32 | ||
76983f4c | 33 | .checkbox-icon[src] { |
8caa872d | 34 | -moz-margin-end: 2px; |
74d14f90 | 35 | } |
36 | ||
37 | .checkbox-label { | |
38 | margin: 0 !important; | |
39 | } | |
40 | ||
41 | /* ..... focused state ..... */ | |
42 | ||
024ec655 | 43 | checkbox:-moz-focusring > .checkbox-label-center-box > .checkbox-label-box { |
74d14f90 | 44 | border: 1px dotted #9999CC; |
45 | } | |
46 | ||
47 | /* ..... disabled state ..... */ | |
48 | ||
76983f4c | 49 | checkbox[disabled="true"] > .checkbox-spacer-box > .checkbox-check { |
df8c26c4 | 50 | background-color: #CCD0DD; |
74d14f90 | 51 | } |
52 | ||
53 | checkbox[disabled="true"] { | |
54 | color: #999999 !important; | |
55 | } | |
56 | ||
57 | /* ::::: checkmark image ::::: */ | |
58 | ||
59 | .checkbox-check { | |
74d14f90 | 60 | border: 1px inset #CCD0DD; |
61 | width: 12px; | |
62 | height: 12px; | |
63 | background: transparent 50% 50% no-repeat; | |
64 | } | |
76983f4c | 65 | |
66 | checkbox:hover:active > .checkbox-spacer-box > .checkbox-check { | |
df8c26c4 | 67 | background-color: #CCD0DD; |
74d14f90 | 68 | } |
69 | ||
70 | /* ..... checked state ..... */ | |
71 | ||
76983f4c | 72 | checkbox[checked="true"] > .checkbox-spacer-box > .checkbox-check { |
74d14f90 | 73 | background-image: url("chrome://global/skin/checkbox/cbox-check.gif"); |
74 | } | |
e12e6531 | 75 | |
76983f4c | 76 | checkbox[checked="true"][disabled="true"] > .checkbox-spacer-box > .checkbox-check { |
74d14f90 | 77 | background-image: url("chrome://global/skin/checkbox/cbox-check-disabled.gif") !important |
78 | } |