fix checkboxes and radios to not use the -with-spacing variant any more as the checkb...
[themes.git] / EarlyBlue / global / radio.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/* ===== 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
13radio {
14 -moz-box-align: center;
15 margin: 1px 2px;
16 padding-top: 0;
17 padding-bottom: 0;
18 padding-inline-start: 2px;
19 padding-inline-end: 0;
20}
21
22.radio-label-box {
23 margin-inline-start: 2px;
24 border: 1px solid transparent;
25 padding-top: 0px;
26 padding-bottom: 0;
27 padding-inline-start: 1px;
28 padding-inline-end: 0px;
29}
30
31.radio-icon {
32 margin-inline-end: 2px;
33}
34
35.radio-label {
36 margin: 0 !important;
37}
38
39/* ..... focused state ..... */
40
41radio[focused="true"] > .radio-label-box {
42 border: 1px dotted #9999CC;
43}
44
45/* ..... disabled state ..... */
46
47radio[disabled="true"] > .radio-check-box1 {
48 background-color: #CCD0DD;
49}
50
51radio[disabled="true"] {
52 color: #999999;
53}
54
55/* ::::: checkmark image ::::: */
56
57.radio-check-box1 {
58 margin: 0 0;
59 border: 2px outset #CCD0DD;
60 border-radius: 50%;
61 width: 12px;
62 height: 12px;
63 background-color: #FFFFFF;
64 /* background-color: transparent; */
65}
66
67.radio-check-box2 {
68 border-radius: 50%;
69 padding: 1px;
70 width: 4px;
71 height: 4px;
72 list-style-image: none;
73}
74
75radio:hover:active > .radio-check-box1 {
76 border: 2px inset #CCD0DD;
77}
78
79radio[disabled="true"]:hover:active > .radio-check-box1 {
80 border: 2px outset #CCD0DD;
81}
82
83/* ..... selected state ..... */
84
85radio[selected="true"] > .radio-check-box1 > .radio-check-box2 {
86 list-style-image: url("chrome://global/skin/radio/radio-check.gif");
87}
88
89radio[selected="true"][disabled="true"] > .radio-check-box1 > .radio-check-box2 {
90 list-style-image: url("chrome://global/skin/radio/radio-check-disabled.gif") !important
91}