|
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 |
|
13 checkbox { |
|
14 -moz-appearance: checkbox-container; |
|
15 -moz-box-align: center; |
|
16 margin: 2px 4px; |
|
17 padding-top: 1px; |
|
18 padding-bottom: 1px; |
|
19 -moz-padding-start: 4px; |
|
20 -moz-padding-end: 2px; |
|
21 } |
|
22 |
|
23 .checkbox-label-box { |
|
24 -moz-margin-start: 2px; |
|
25 border: 1px solid transparent; |
|
26 padding: 0px 1px; |
|
27 } |
|
28 |
|
29 .checkbox-icon { |
|
30 -moz-margin-end: 2px; |
|
31 } |
|
32 |
|
33 .checkbox-label { |
|
34 margin: 0 !important; |
|
35 } |
|
36 |
|
37 /* ..... focused state ..... */ |
|
38 |
|
39 checkbox:-moz-focusring > .checkbox-label-box { |
|
40 border: 1px dotted ThreeDDarkShadow; |
|
41 } |
|
42 |
|
43 /* ..... disabled state ..... */ |
|
44 |
|
45 checkbox[disabled="true"] > .checkbox-check { |
|
46 background-color: -moz-Dialog; |
|
47 } |
|
48 |
|
49 checkbox[disabled="true"] { |
|
50 color: GrayText; |
|
51 } |
|
52 |
|
53 checkbox[disabled="true"]:-moz-system-metric(windows-classic) { |
|
54 color: ThreeDShadow; |
|
55 text-shadow: 1px 1px ThreeDHighlight; |
|
56 } |
|
57 |
|
58 /* ::::: checkmark image ::::: */ |
|
59 |
|
60 .checkbox-check { |
|
61 -moz-appearance: checkbox; |
|
62 -moz-box-align: center; |
|
63 border: 2px solid; |
|
64 -moz-border-top-colors: ThreeDShadow ThreeDDarkShadow; |
|
65 -moz-border-right-colors: ThreeDHighlight ThreeDLightShadow; |
|
66 -moz-border-bottom-colors: ThreeDHighlight ThreeDLightShadow; |
|
67 -moz-border-left-colors: ThreeDShadow ThreeDDarkShadow; |
|
68 min-width: 13px; |
|
69 min-height: 13px; |
|
70 background: -moz-Field no-repeat 50% 50%; |
|
71 } |
|
72 |
|
73 checkbox:hover:active > .checkbox-check { |
|
74 background-color: -moz-Dialog; |
|
75 } |
|
76 |
|
77 /* ..... checked state ..... */ |
|
78 |
|
79 checkbox[checked="true"] > .checkbox-check { |
|
80 background-image: url("chrome://global/skin/checkbox/cbox-check.gif"); |
|
81 } |
|
82 |
|
83 checkbox[checked="true"][disabled="true"] > .checkbox-check { |
|
84 background-image: url("chrome://global/skin/checkbox/cbox-check-dis.gif") !important |
|
85 } |
|
86 |