toolkit/themes/faststripe/global/radio.css

branch
TOR_BUG_9701
changeset 8
97036ab72558
equal deleted inserted replaced
-1:000000000000 0:37dd664e18eb
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 /* ===== radio.css ===================================================
6 == Styles used by the XUL radio element.
7 ======================================================================= */
8
9 @namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul");
10
11 /* ::::: radio ::::: */
12
13 radio {
14 -moz-appearance: radio-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 .radio-label-box {
24 -moz-margin-start: 2px;
25 border: 1px solid transparent;
26 padding-top: 0px;
27 padding-bottom: 1px;
28 -moz-padding-start: 1px;
29 -moz-padding-end: 0px;
30 }
31
32 .radio-icon {
33 -moz-margin-end: 2px;
34 }
35
36 .radio-label {
37 margin: 0 !important;
38 }
39
40 /* ..... focused state ..... */
41
42 radio[focused="true"] > .radio-label-box {
43 border: 1px dotted ThreeDDarkShadow;
44 }
45
46 /* ..... disabled state ..... */
47
48 radio[disabled="true"] > .radio-check-box1 {
49 background-color: -moz-Dialog;
50 }
51
52 radio[disabled="true"] {
53 color: GrayText;
54 }
55
56 /* ::::: checkmark image ::::: */
57
58 .radio-check-box1 {
59 margin: 1px 0px;
60 border: 1px solid #555555;
61 border-radius: 50%;
62 width: 12px;
63 height: 12px;
64 background: -moz-Field no-repeat 50% 50%;
65 }
66
67 .radio-check-box2 {
68 border: 1px solid #555555;
69 border-radius: 50%;
70 padding: 2px;
71 width: 4px;
72 height: 4px;
73 list-style-image: none;
74 background: -moz-Field no-repeat 50% 50%;
75 }
76
77 radio:hover:active > .radio-check-box1 {
78 background-color: -moz-Dialog;
79 }
80
81 /* ..... selected state ..... */
82
83 radio[selected="true"] > .radio-check-box1 > .radio-check-box2 {
84 list-style-image: url("chrome://global/skin/radio/radio-check.gif");
85 }
86
87 radio[selected="true"][disabled="true"] > .radio-check-box1 > .radio-check-box2 {
88 list-style-image: url("chrome://global/skin/radio/radio-check-dis.gif") !important
89 }

mercurial