|
1 | | -:root { |
2 | | - --sf-form-ff: 'Inter', ui-sans-serif, system-ui, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji'; |
3 | | - --sf-form-fz: 0.9375rem; |
4 | | - --sf-form-fz-small: 0.75rem; |
5 | | - --sf-disabled: 0.4; |
6 | | - --sf-form-p-input-block: 0.5em; |
7 | | - --sf-form-p-input-inline: 0.5em; |
8 | | - --sf-form-switch-size: 1rem; |
9 | | -} |
10 | | - |
11 | 1 | .sf-switch { box-sizing: border-box } |
12 | 2 |
|
13 | 3 | .sf-switch.multiple *, |
|
16 | 6 | { box-sizing: inherit } |
17 | 7 |
|
18 | 8 | .sf-switch { |
19 | | - font-size: var(--sf-form-fz); |
20 | | - font-family: var(--sf-form-ff); |
21 | | - font-weight: 400; |
| 9 | + font-size: 15px; |
| 10 | + font-family: inherit; |
| 11 | + font-weight: inherit; |
22 | 12 | line-height: 1; |
23 | 13 |
|
24 | 14 | text-transform: none; |
25 | 15 | } |
26 | 16 |
|
27 | 17 | label.sf-switch input[type='checkbox'] { |
| 18 | + --sf-form-switch-size: 1rem; |
| 19 | + |
28 | 20 | position: relative; |
29 | 21 |
|
30 | 22 | appearance: none; |
@@ -88,12 +80,12 @@ label.sf-switch input[type='checkbox'] ~ * |
88 | 80 | .sf-switch.multiple .sf-switch-toggle * { display: inline-block } |
89 | 81 | .sf-switch.multiple .sf-switch-toggle label { position: relative } |
90 | 82 | .sf-switch.multiple .sf-switch-toggle span { |
91 | | - font-size: var(--sf-form-fz-small); |
| 83 | + font-size: 12px; |
92 | 84 | text-align: center; |
93 | 85 |
|
94 | 86 | min-width: 32px; |
95 | 87 |
|
96 | | - padding: var(--sf-form-p-input-block) var(--sf-form-p-input-inline); |
| 88 | + padding: var(--sf-elm-py) var(--sf-elm-px); |
97 | 89 |
|
98 | 90 | background: hsl(var(--sf-c-form-bd) / 5%); |
99 | 91 | } |
@@ -137,7 +129,7 @@ label.sf-switch input[type='checkbox'] ~ * |
137 | 129 | .sf-switch.multiple.vert .sf-switch-toggle { flex-flow: column } |
138 | 130 |
|
139 | 131 | .sf-switch.multiple .sf-switch-description { |
140 | | - font-size: var(--sf-form-fz-small); |
| 132 | + font-size: 12px; |
141 | 133 | margin: 0.5em 0 0; |
142 | 134 | padding: 0 0 0.5em; |
143 | 135 | } |
@@ -174,11 +166,6 @@ label.sf-switch input[type='checkbox'] ~ * |
174 | 166 |
|
175 | 167 | /* /// */ |
176 | 168 |
|
177 | | -html.var .sf-switch { |
178 | | - font-size: 15px; |
179 | | - font-family: 'Inter', ui-sans-serif, system-ui, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji'; |
180 | | -} |
181 | | - |
182 | 169 | html.var label.sf-switch input[type='checkbox'] { |
183 | 170 | width: 16px; |
184 | 171 | height: 16px; |
|
0 commit comments