some corrections and finishing touches to that LCARStrek works well for Firefox 55...
[themes.git] / LCARStrek / global / radio.css
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-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
41 radio[focused="true"] > .radio-label-box {
42   border: 1px dotted #008484;
43 }
44
45 /* ..... disabled state ..... */
46
47 radio[disabled="true"] > .radio-check-box1 {
48   background-color: #000000;
49   border: 1px solid #8050B0;
50 }
51
52 radio[disabled="true"] {
53   color: #8050B0;
54 }
55
56 /* ::::: checkmark image ::::: */
57
58 .radio-check-box1 {
59   margin: 0 0;
60   border: 1px solid #FF9F00;
61   border-radius: 50%;
62   width: 10px;
63   height: 10px;
64   background-color: #000000;
65 }
66
67 .radio-check-box2 {
68   border-radius: 50%;
69   padding: 1px;
70   width: 8px;
71   height: 8px;
72   list-style-image: none;
73 }
74
75 radio:not([disabled="true"]):hover > .radio-check-box1,
76 radio:not([disabled="true"]):hover:active > .radio-check-box1 {
77   border: 1px solid #FFCF00;
78 }
79
80 radio:not([disabled="true"]):hover > .radio-label-box,
81 radio:not([disabled="true"]):hover:active > .radio-label-box {
82   color: #FFCF00;
83 }
84
85 /* ..... selected state ..... */
86
87 radio[selected="true"] > .radio-check-box1 > .radio-check-box2 {
88   list-style-image: url("chrome://global/skin/radio/radio-check.gif");
89 }
90
91 radio[selected="true"]:hover > .radio-check-box1 > .radio-check-box2,
92 radio[selected="true"]:hover:active > .radio-check-box1 > .radio-check-box2{
93   list-style-image: url("chrome://global/skin/radio/radio-check-hover.gif");
94 }
95
96 radio[selected="true"][disabled="true"] > .radio-check-box1 > .radio-check-box2 {
97   list-style-image: url("chrome://global/skin/radio/radio-check-disabled.gif") !important
98 }