UNPKG

12.3 kBCSSView Raw
1.next-sr-only {
2 position: absolute;
3 width: 1px;
4 height: 1px;
5 padding: 0;
6 overflow: hidden;
7 clip: rect(0, 0, 0, 0);
8 white-space: nowrap;
9 border: 0;
10 top: 0;
11 margin: -1px; }
12
13.next-switch:after[dir="rtl"] {
14 content: " ";
15 transition: all 100ms linear;
16 transition: all var(--motion-duration-immediately, 100ms) var(--motion-linear, linear);
17 transform-origin: right center; }
18
19.next-switch-medium[dir="rtl"]:after {
20 right: 100%;
21 transform: translateX(100%); }
22
23.next-switch-small[dir="rtl"]:after {
24 right: 100%;
25 transform: translateX(100%); }
26
27.next-switch-on[dir="rtl"] > .next-switch-children {
28 color: #FFFFFF;
29 color: var(--switch-normal-on-color-font, #FFFFFF); }
30
31.next-switch-on[disabled][dir="rtl"]:after {
32 left: 0;
33 right: 100%;
34 box-shadow: 1px 1px 3px 0px rgba(0, 0, 0, 0.12);
35 box-shadow: var(--switch-on-shadow, 1px 1px 3px 0px rgba(0, 0, 0, 0.12)); }
36
37.next-switch-off[dir="rtl"]:after {
38 right: 0;
39 transform: translateX(0);
40 box-shadow: -1px 0px 3px 0px rgba(0, 0, 0, 0.12);
41 box-shadow: var(--switch-rtl-on-shadow, -1px 0px 3px 0px rgba(0, 0, 0, 0.12)); }
42
43.next-switch-off[dir="rtl"] > .next-switch-children {
44 right: auto; }
45
46.next-switch-off.next-switch-small[dir="rtl"] > .next-switch-children {
47 right: auto; }
48
49.next-switch {
50 box-sizing: border-box;
51 outline: none;
52 text-align: left;
53 cursor: pointer;
54 vertical-align: middle;
55 user-select: none;
56 overflow: hidden;
57 transition: background 0.1s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.1s cubic-bezier(0.4, 0, 0.2, 1);
58 transition: background 0.1s var(--motion-default, cubic-bezier(0.4, 0, 0.2, 1)), border-color 0.1s var(--motion-default, cubic-bezier(0.4, 0, 0.2, 1)); }
59 .next-switch *,
60 .next-switch *:before,
61 .next-switch *:after {
62 box-sizing: border-box; }
63 .next-switch-btn {
64 transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
65 transition: all 0.15s var(--motion-default, cubic-bezier(0.4, 0, 0.2, 1));
66 transform-origin: left center; }
67 .next-switch:after {
68 content: ""; }
69 .next-switch-loading {
70 pointer-events: none; }
71 .next-switch-loading .next-icon-loading {
72 color: #5584FF;
73 color: var(--color-brand1-6, #5584FF);
74 text-align: center;
75 transform: translate(-1px, -1px);
76 transform: translate(calc(0px - var(--switch-border-width-trigger, 1px)), calc(0px - var(--switch-border-width-trigger, 1px))); }
77 .next-switch-loading .next-icon-loading.next-switch-inner-icon:before {
78 vertical-align: top; }
79 .next-switch-medium {
80 position: relative;
81 display: inline-block;
82 border: 2px solid transparent;
83 border: var(--switch-border-width-container, 2px) solid transparent;
84 width: 56px;
85 width: var(--switch-size-m-width, 56px);
86 height: 28px;
87 height: calc(var(--switch-size-m-trigger, 24px) + var(--switch-border-width-container, 2px)*2);
88 border-radius: 20px;
89 border-radius: var(--switch-size-m-radius-container, 20px); }
90 .next-switch-medium:not([disabled]):active .next-switch-btn {
91 width: 31.2px;
92 width: calc(var(--switch-size-m-trigger, 24px)*1.3); }
93 .next-switch-medium.next-switch-on:not([disabled]):active .next-switch-btn {
94 left: calc(100% - 31.2px);
95 left: calc(100% - var(--switch-size-m-trigger, 24px)*1.3); }
96 .next-switch-medium.next-switch-auto-width {
97 min-width: 56px;
98 min-width: var(--switch-size-m-width, 56px);
99 width: auto;
100 overflow: initial; }
101 .next-switch-medium:after {
102 content: ''; }
103 .next-switch-medium > .next-switch-btn {
104 border: 1px solid transparent;
105 border: var(--switch-border-width-trigger, 1px) solid transparent;
106 position: absolute;
107 left: calc(100% - 24px);
108 left: calc(100% - var(--switch-size-m-trigger, 24px));
109 width: 24px;
110 width: var(--switch-size-m-trigger, 24px);
111 height: 24px;
112 height: var(--switch-size-m-trigger, 24px);
113 border-radius: 20px;
114 border-radius: var(--switch-size-m-radius-trigger, 20px);
115 box-sizing: border-box; }
116 .next-switch-medium > .next-switch-children {
117 height: 24px;
118 height: var(--switch-size-m-trigger, 24px);
119 line-height: 24px;
120 line-height: var(--switch-size-m-trigger, 24px); }
121 .next-switch-medium > .next-switch-children {
122 font-size: 12px;
123 font-size: var(--form-element-medium-font-size, 12px); }
124 .next-switch-medium.next-switch.next-switch-on > .next-switch-children {
125 margin: 0 32px 0 8px;
126 margin: 0 calc(var(--switch-size-m-trigger, 24px) + var(--switch-size-m-trigger-padding-r, 8px)) 0 var(--switch-size-m-trigger-padding-l, 8px); }
127 .next-switch-medium.next-switch.next-switch-off > .next-switch-children {
128 margin: 0 8px 0 32px;
129 margin: 0 var(--switch-size-m-trigger-padding-r, 8px) 0 calc(var(--switch-size-m-trigger, 24px) + var(--switch-size-m-trigger-padding-l, 8px)); }
130 .next-switch-medium.next-switch-loading .next-icon-loading {
131 line-height: 24px;
132 line-height: var(--switch-size-m-trigger, 24px);
133 height: 24px;
134 height: var(--switch-size-m-trigger, 24px);
135 width: 24px;
136 width: var(--switch-size-m-trigger, 24px); }
137 .next-switch-medium.next-switch-loading .next-icon-loading:before,
138 .next-switch-medium.next-switch-loading .next-icon-loading .next-icon-remote {
139 width: 16px;
140 width: var(--switch-size-m-inner-icon, 16px);
141 font-size: 16px;
142 font-size: var(--switch-size-m-inner-icon, 16px);
143 line-height: inherit; }
144 .next-switch-small {
145 position: relative;
146 display: inline-block;
147 border: 2px solid transparent;
148 border: var(--switch-border-width-container, 2px) solid transparent;
149 width: 44px;
150 width: var(--switch-size-s-width, 44px);
151 height: 24px;
152 height: calc(var(--switch-size-s-trigger, 20px) + var(--switch-border-width-container, 2px)*2);
153 border-radius: 20px;
154 border-radius: var(--switch-size-s-radius-container, 20px); }
155 .next-switch-small:not([disabled]):active .next-switch-btn {
156 width: 26px;
157 width: calc(var(--switch-size-s-trigger, 20px)*1.3); }
158 .next-switch-small.next-switch-on:not([disabled]):active .next-switch-btn {
159 left: calc(100% - 26px);
160 left: calc(100% - var(--switch-size-s-trigger, 20px)*1.3); }
161 .next-switch-small.next-switch-auto-width {
162 min-width: 44px;
163 min-width: var(--switch-size-s-width, 44px);
164 width: auto;
165 overflow: initial; }
166 .next-switch-small:after {
167 content: ''; }
168 .next-switch-small > .next-switch-btn {
169 border: 1px solid transparent;
170 border: var(--switch-border-width-trigger, 1px) solid transparent;
171 position: absolute;
172 left: calc(100% - 20px);
173 left: calc(100% - var(--switch-size-s-trigger, 20px));
174 width: 20px;
175 width: var(--switch-size-s-trigger, 20px);
176 height: 20px;
177 height: var(--switch-size-s-trigger, 20px);
178 border-radius: 20px;
179 border-radius: var(--switch-size-s-radius-trigger, 20px);
180 box-sizing: border-box; }
181 .next-switch-small > .next-switch-children {
182 height: 20px;
183 height: var(--switch-size-s-trigger, 20px);
184 line-height: 20px;
185 line-height: var(--switch-size-s-trigger, 20px); }
186 .next-switch-small > .next-switch-children {
187 font-size: 12px;
188 font-size: var(--form-element-small-font-size, 12px); }
189 .next-switch-small.next-switch.next-switch-on > .next-switch-children {
190 margin: 0 28px 0 8px;
191 margin: 0 calc(var(--switch-size-s-trigger, 20px) + var(--switch-size-s-trigger-padding-r, 8px)) 0 var(--switch-size-s-trigger-padding-l, 8px); }
192 .next-switch-small.next-switch.next-switch-off > .next-switch-children {
193 margin: 0 8px 0 28px;
194 margin: 0 var(--switch-size-s-trigger-padding-r, 8px) 0 calc(var(--switch-size-s-trigger, 20px) + var(--switch-size-s-trigger-padding-l, 8px)); }
195 .next-switch-small.next-switch-loading .next-icon-loading {
196 line-height: 20px;
197 line-height: var(--switch-size-s-trigger, 20px);
198 height: 20px;
199 height: var(--switch-size-s-trigger, 20px);
200 width: 20px;
201 width: var(--switch-size-s-trigger, 20px); }
202 .next-switch-small.next-switch-loading .next-icon-loading:before,
203 .next-switch-small.next-switch-loading .next-icon-loading .next-icon-remote {
204 width: 12px;
205 width: var(--switch-size-s-inner-icon, 12px);
206 font-size: 12px;
207 font-size: var(--switch-size-s-inner-icon, 12px);
208 line-height: inherit; }
209 .next-switch-on {
210 background-color: #5584FF;
211 background-color: var(--switch-normal-on-bg-color, #5584FF); }
212 .next-switch-on .next-switch-btn {
213 box-shadow: 1px 1px 3px 0px rgba(0, 0, 0, 0.12);
214 box-shadow: var(--switch-on-shadow, 1px 1px 3px 0px rgba(0, 0, 0, 0.12));
215 background-color: #FFFFFF;
216 background-color: var(--switch-normal-on-trigger-bg-color, #FFFFFF);
217 border-color: transparent;
218 border-color: var(--switch-handle-on-border-color, transparent); }
219 .next-switch-on > .next-switch-children {
220 color: #FFFFFF;
221 color: var(--switch-normal-on-color-font, #FFFFFF); }
222 .next-switch-on:focus, .next-switch-on.hover, .next-switch-on:hover {
223 background-color: #3E71F7;
224 background-color: var(--switch-hover-on-bg-color, #3E71F7); }
225 .next-switch-on:focus .next-switch-btn, .next-switch-on.hover .next-switch-btn, .next-switch-on:hover .next-switch-btn {
226 background-color: #FFFFFF;
227 background-color: var(--switch-hover-on-trigger-bg-color, #FFFFFF); }
228 .next-switch-on[disabled] {
229 background-color: #EBECF0;
230 background-color: var(--switch-disabled-on-bg-color, #EBECF0);
231 cursor: not-allowed; }
232 .next-switch-on[disabled] .next-switch-btn {
233 right: 0;
234 box-shadow: 1px 1px 3px 0px rgba(0, 0, 0, 0.12);
235 box-shadow: var(--switch-on-shadow, 1px 1px 3px 0px rgba(0, 0, 0, 0.12));
236 background-color: #F7F8FA;
237 background-color: var(--switch-disabled-on-trigger-bg-color, #F7F8FA);
238 border-color: transparent;
239 border-color: var(--switch-handle-disabled-border-color, transparent); }
240 .next-switch-on[disabled] > .next-switch-children {
241 color: #CCCCCC;
242 color: var(--switch-disabled-on-color-font, #CCCCCC); }
243 .next-switch-off {
244 background-color: #EBECF0;
245 background-color: var(--switch-normal-off-bg-color, #EBECF0);
246 border-color: #EBECF0;
247 border-color: var(--switch-normal-off-border-color, #EBECF0); }
248 .next-switch-off:focus, .next-switch-off.hover, .next-switch-off:hover {
249 background-color: #EBECF0;
250 background-color: var(--switch-hover-off-bg-color, #EBECF0);
251 border-color: #EBECF0;
252 border-color: var(--switch-hover-off-border-color, #EBECF0); }
253 .next-switch-off .next-switch-btn {
254 left: 0;
255 box-shadow: 1px 1px 3px 0px rgba(0, 0, 0, 0.12);
256 box-shadow: var(--switch-on-shadow, 1px 1px 3px 0px rgba(0, 0, 0, 0.12));
257 background-color: #FFFFFF;
258 background-color: var(--switch-normal-off-trigger-bg-color, #FFFFFF);
259 border-color: transparent;
260 border-color: var(--switch-handle-off-border-color, transparent); }
261 .next-switch-off:focus .next-switch-btn, .next-switch-off.hover .next-switch-btn, .next-switch-off:hover .next-switch-btn {
262 background-color: #FFFFFF;
263 background-color: var(--switch-hover-off-trigger-bg-color, #FFFFFF); }
264 .next-switch-off > .next-switch-children {
265 color: #999999;
266 color: var(--switch-normal-off-color-font, #999999); }
267 .next-switch-off[disabled] {
268 background-color: #EBECF0;
269 background-color: var(--switch-disabled-off-bg-color, #EBECF0);
270 cursor: not-allowed; }
271 .next-switch-off[disabled] .next-switch-btn {
272 box-shadow: 1px 1px 3px 0px rgba(0, 0, 0, 0.12);
273 box-shadow: var(--switch-off-shadow, 1px 1px 3px 0px rgba(0, 0, 0, 0.12));
274 background-color: #F7F8FA;
275 background-color: var(--switch-disabled-off-trigger-bg-color, #F7F8FA);
276 border-color: transparent;
277 border-color: var(--switch-handle-disabled-border-color, transparent); }
278 .next-switch-off[disabled] > .next-switch-children {
279 color: #C4C6CF;
280 color: var(--switch-disabled-off-color-font, #C4C6CF); }