1 | ////
|
2 | /// @module radio: 单选框
|
3 | /// @tag radio
|
4 | /// @category component
|
5 | /// @family data-entry
|
6 | /// @varPrefix $radio-
|
7 | /// @classPrefix {prefix}-radio
|
8 | /// @order {"size/bounding":10,"size/icon":11,"size/label":12,"statement/normal":10,"statement/normal/bounding":100,"statement/normal/label":101,"statement/hover":11,"statement/hover/bounding":110,"statement/hover/label":111,"statement/checked":12,"statement/checked/bounding":120,"statement/checked/icon":121,"statement/checked/label":122,"statement/disabled":13,"statement/disabled/bounding":130,"statement/disabled/icon":131,"statement/disabled/label":132,"statement/checked hover":14,"statement/checked hover/bounding":140,"statement/checked hover/icon":141,"statement/checked disabled":15,"statement/checked disabled/bounding":150,"statement/checked disabled/label":151}
|
9 | ////
|
10 |
|
11 | @charset "UTF-8";
|
12 |
|
13 | // radio variables
|
14 | // --------------------------------------------------
|
15 |
|
16 | $radio-prefix : '.#{$css-prefix}radio';
|
17 |
|
18 | // Radio:Size
|
19 | // --------------------------------------------------
|
20 |
|
21 | /// width
|
22 | /// @namespace size/bounding
|
23 | $radio-width: $s-4 !default;
|
24 | /// border
|
25 | /// @namespace size/bounding
|
26 | $radio-circle-border-width: $line-1 !default;
|
27 | /// text
|
28 | /// @namespace size/icon
|
29 | $radio-circle-size: $s-1 !default;
|
30 | /// margin (l)
|
31 | /// @namespace size/label
|
32 | $radio-font-margin-left: $s-1 !default;
|
33 | /// text
|
34 | /// @namespace size/label
|
35 | $radio-font-size: $font-size-body-1 !default;
|
36 |
|
37 | // Radio:Statement
|
38 | // --------------------------------------------------
|
39 |
|
40 | /// shadow
|
41 | /// @namespace statement/normal/bounding
|
42 | $radio-shadow: $shadow-zero !default;
|
43 | /// corner
|
44 | /// @namespace statement/normal/bounding
|
45 | $radio-radius-size: $corner-circle !default;
|
46 |
|
47 | /// background
|
48 | /// @namespace statement/normal/bounding
|
49 | $radio-bg-color: $color-white !default;
|
50 | /// background
|
51 | /// @namespace statement/hover/bounding
|
52 | $radio-hovered-bg-color: $color-brand1-1 !default;
|
53 | /// background
|
54 | /// @namespace statement/checked/bounding
|
55 | $radio-checked-bg-color: $color-brand1-6 !default;
|
56 | /// background
|
57 | /// @namespace statement/disabled/bounding
|
58 | $radio-disabled-bg-color: $color-fill1-1 !default;
|
59 | /// background
|
60 | /// @namespace statement/checked hover/bounding
|
61 | $radio-checked-hovered-bg-color: $color-brand1-9 !default;
|
62 | /// background
|
63 | /// @namespace statement/checked disabled/bounding
|
64 | $radio-checked-disabled-bg-color: $color-fill1-1 !default;
|
65 |
|
66 | /// border
|
67 | /// @namespace statement/normal/bounding
|
68 | $radio-border-color: $color-line1-3 !default;
|
69 | /// border
|
70 | /// @namespace statement/hover/bounding
|
71 | $radio-hovered-border-color: $color-brand1-6 !default;
|
72 | /// border
|
73 | /// @namespace statement/checked/bounding
|
74 | $radio-checked-border-color: $color-brand1-6 !default;
|
75 | /// border
|
76 | /// @namespace statement/disabled/bounding
|
77 | $radio-disabled-border-color: $color-line1-1 !default;
|
78 | /// border
|
79 | /// @namespace statement/checked disabled/bounding
|
80 | $radio-checked-disabled-border-color: $color-line1-1 !default;
|
81 | /// border
|
82 | /// @namespace statement/checked hover/bounding
|
83 | $radio-checked-hovered-border-color: $color-transparent !default;
|
84 |
|
85 | /// text
|
86 | /// @namespace statement/checked/icon
|
87 | $radio-checked-circle-color: $color-white !default;
|
88 | /// text
|
89 | /// @namespace statement/disabled/icon
|
90 | $radio-disabled-circle-color: $color-text1-1 !default;
|
91 | /// text
|
92 | /// @namespace statement/checked hover/icon
|
93 | $radio-checked-hovered-circle-color: $color-white !default;
|
94 | /// text
|
95 | /// @namespace statement/checked disabled/icon
|
96 | $radio-checked-disabled-circle-color: $color-text1-1 !default;
|
97 |
|
98 | /// text
|
99 | /// @namespace statement/normal/label
|
100 | $radio-normal-font-color: $color-text1-4 !default;
|
101 | /// text
|
102 | /// @namespace statement/disabled/label
|
103 | $radio-normal-font-color-disabled: $color-text1-1 !default;
|
104 |
|
105 | // RadioButton:Size
|
106 | // --------------------------------------------------
|
107 |
|
108 | /// height
|
109 | /// @namespace size/bounding
|
110 | $radio-button-height-large: $s-10 !default;
|
111 | /// height
|
112 | /// @namespace size/bounding
|
113 | $radio-button-height-medium: $s-7 !default;
|
114 | /// height
|
115 | /// @namespace size/bounding
|
116 | $radio-button-height-small: $s-5 !default;
|
117 |
|
118 | /// padding (l, r)
|
119 | /// @namespace size/bounding
|
120 | $radio-button-padding-large: $s-2 !default;
|
121 | /// padding (l, r)
|
122 | /// @namespace size/bounding
|
123 | $radio-button-padding-medium: $s-2 !default;
|
124 | /// padding (l, r)
|
125 | /// @namespace size/bounding
|
126 | $radio-button-padding-small: $s-2 !default;
|
127 |
|
128 | /// corner
|
129 | /// @namespace size/bounding
|
130 | $radio-button-corner-large: $corner-1 !default;
|
131 | /// corner
|
132 | /// @namespace size/bounding
|
133 | $radio-button-corner-medium: $corner-1 !default;
|
134 | /// corner
|
135 | /// @namespace size/bounding
|
136 | $radio-button-corner-small: $corner-1 !default;
|
137 |
|
138 | /// text
|
139 | /// @namespace size/bounding
|
140 | $radio-button-font-size-large: $font-size-subhead !default;
|
141 | /// text
|
142 | /// @namespace size/bounding
|
143 | $radio-button-font-size-medium: $font-size-body-1 !default;
|
144 | /// text
|
145 | /// @namespace size/bounding
|
146 | $radio-button-font-size-small: $font-size-caption !default;
|
147 |
|
148 | // RadioButton:Statement
|
149 | // --------------------------------------------------
|
150 |
|
151 | /// background
|
152 | /// @namespace statement/normal/bounding
|
153 | $radio-button-bg-color: $color-white !default;
|
154 | /// background
|
155 | /// @namespace statement/hover/bounding
|
156 | $radio-button-bg-color-hovered: $color-fill1-2 !default;
|
157 | /// background
|
158 | /// @namespace statement/checked/bounding
|
159 | $radio-button-bg-color-checked: $color-white !default;
|
160 | /// background
|
161 | /// @namespace statement/disabled/bounding
|
162 | $radio-button-bg-color-disabled: $color-fill1-1 !default;
|
163 | /// background
|
164 | /// @namespace statement/checked disabled/bounding
|
165 | $radio-button-bg-color-checked-disabled: $color-fill1-2 !default;
|
166 |
|
167 | /// border
|
168 | /// @namespace statement/normal/bounding
|
169 | $radio-button-border-color: $color-line1-3 !default;
|
170 | /// border
|
171 | /// @namespace statement/hover/bounding
|
172 | $radio-button-border-color-hovered: $color-line1-4 !default;
|
173 | /// border
|
174 | /// @namespace statement/checked/bounding
|
175 | $radio-button-border-color-checked: $color-brand1-6 !default;
|
176 | /// border
|
177 | /// @namespace statement/disabled/bounding
|
178 | $radio-button-border-color-disabled: $color-line1-1 !default;
|
179 | /// border
|
180 | /// @namespace statement/checked disabled/bounding
|
181 | $radio-button-border-color-checked-disabled: $color-line1-1 !default;
|
182 |
|
183 | /// text
|
184 | /// @namespace statement/normal/label
|
185 | $radio-button-font-color: $color-text1-4 !default;
|
186 | /// text
|
187 | /// @namespace statement/hover/label
|
188 | $radio-button-font-color-hovered: $color-text1-4 !default;
|
189 | /// text
|
190 | /// @namespace statement/checked/label
|
191 | $radio-button-font-color-checked: $color-brand1-6 !default;
|
192 | /// text
|
193 | /// @namespace statement/disabled/label
|
194 | $radio-button-font-color-disabled: $color-text1-1 !default;
|
195 | /// text
|
196 | /// @namespace statement/checked disabled/label
|
197 | $radio-button-font-color-checked-disabled: $color-text1-1 !default;
|