@clayui/css 3.160.0 → 3.162.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/css/atlas.css +1716 -1586
- package/lib/css/atlas.css.map +1 -1
- package/lib/css/base.css +1416 -1287
- package/lib/css/base.css.map +1 -1
- package/lib/css/cadmin.css +79 -12
- package/lib/css/cadmin.css.map +1 -1
- package/lib/images/icons/arrow-key-down.svg +9 -0
- package/lib/images/icons/arrow-key-left.svg +9 -0
- package/lib/images/icons/arrow-key-right.svg +9 -0
- package/lib/images/icons/arrow-key-up.svg +9 -0
- package/lib/images/icons/books-brush.svg +9 -0
- package/lib/images/icons/icons.svg +1 -1
- package/package.json +1 -1
- package/src/images/icons/arrow-key-down.svg +9 -0
- package/src/images/icons/arrow-key-left.svg +9 -0
- package/src/images/icons/arrow-key-right.svg +9 -0
- package/src/images/icons/arrow-key-up.svg +9 -0
- package/src/images/icons/books-brush.svg +9 -0
- package/src/images/icons/icons.svg +1 -1
- package/src/scss/_components.scss +2 -0
- package/src/scss/_license-text.scss +1 -1
- package/src/scss/atlas/_variables.scss +6 -4
- package/src/scss/atlas/variables/_forms.scss +3 -1
- package/src/scss/atlas/variables/_globals.scss +10 -10
- package/src/scss/atlas/variables/_reorder.scss +1 -1
- package/src/scss/atlas-custom-properties/_variables.scss +66 -0
- package/src/scss/atlas-custom-properties/variables/_alerts.scss +1205 -0
- package/src/scss/atlas-custom-properties/variables/_application-bar.scss +60 -0
- package/src/scss/atlas-custom-properties/variables/_aspect-ratio.scss +26 -0
- package/src/scss/atlas-custom-properties/variables/_badges.scss +341 -0
- package/src/scss/atlas-custom-properties/variables/_breadcrumbs.scss +193 -0
- package/src/scss/atlas-custom-properties/variables/_buttons.scss +1442 -0
- package/src/scss/atlas-custom-properties/variables/_c-root.scss +343 -0
- package/src/scss/atlas-custom-properties/variables/_cards.scss +1212 -0
- package/src/scss/atlas-custom-properties/variables/_clay-color.scss +617 -0
- package/src/scss/atlas-custom-properties/variables/_custom-forms.scss +1096 -0
- package/src/scss/atlas-custom-properties/variables/_date-picker.scss +619 -0
- package/src/scss/atlas-custom-properties/variables/_drilldown.scss +244 -0
- package/src/scss/atlas-custom-properties/variables/_dropdowns.scss +1229 -0
- package/src/scss/atlas-custom-properties/variables/_dual-listbox.scss +72 -0
- package/src/scss/atlas-custom-properties/variables/_empty-state.scss +102 -0
- package/src/scss/atlas-custom-properties/variables/_forms.scss +2305 -0
- package/src/scss/atlas-custom-properties/variables/_globals-z-index.scss +48 -0
- package/src/scss/atlas-custom-properties/variables/_globals.scss +844 -0
- package/src/scss/atlas-custom-properties/variables/_icons.scss +71 -0
- package/src/scss/atlas-custom-properties/variables/_images.scss +9 -0
- package/src/scss/atlas-custom-properties/variables/_labels.scss +1374 -0
- package/src/scss/atlas-custom-properties/variables/_links.scss +466 -0
- package/src/scss/atlas-custom-properties/variables/_list-group.scss +488 -0
- package/src/scss/atlas-custom-properties/variables/_loaders.scss +226 -0
- package/src/scss/atlas-custom-properties/variables/_management-bar.scss +151 -0
- package/src/scss/atlas-custom-properties/variables/_menubar.scss +778 -0
- package/src/scss/atlas-custom-properties/variables/_modals.scss +645 -0
- package/src/scss/atlas-custom-properties/variables/_multi-step-nav.scss +354 -0
- package/src/scss/atlas-custom-properties/variables/_navbar.scss +198 -0
- package/src/scss/atlas-custom-properties/variables/_navigation-bar.scss +449 -0
- package/src/scss/atlas-custom-properties/variables/_navs.scss +553 -0
- package/src/scss/atlas-custom-properties/variables/_pagination.scss +1064 -0
- package/src/scss/atlas-custom-properties/variables/_panels.scss +554 -0
- package/src/scss/atlas-custom-properties/variables/_popovers.scss +533 -0
- package/src/scss/atlas-custom-properties/variables/_progress-bars.scss +149 -0
- package/src/scss/atlas-custom-properties/variables/_quick-action.scss +28 -0
- package/src/scss/atlas-custom-properties/variables/_range.scss +262 -0
- package/src/scss/atlas-custom-properties/variables/_reorder.scss +91 -0
- package/src/scss/atlas-custom-properties/variables/_resizer.scss +37 -0
- package/src/scss/atlas-custom-properties/variables/_sheets.scss +301 -0
- package/src/scss/atlas-custom-properties/variables/_side-navigation.scss +2 -0
- package/src/scss/atlas-custom-properties/variables/_sidebar.scss +547 -0
- package/src/scss/atlas-custom-properties/variables/_slideout.scss +369 -0
- package/src/scss/atlas-custom-properties/variables/_stickers.scss +576 -0
- package/src/scss/atlas-custom-properties/variables/_tables.scss +1292 -0
- package/src/scss/atlas-custom-properties/variables/_tbar.scss +570 -0
- package/src/scss/atlas-custom-properties/variables/_time.scss +133 -0
- package/src/scss/atlas-custom-properties/variables/_timelines.scss +50 -0
- package/src/scss/atlas-custom-properties/variables/_toggle-switch.scss +702 -0
- package/src/scss/atlas-custom-properties/variables/_tooltip.scss +321 -0
- package/src/scss/atlas-custom-properties/variables/_treeview.scss +367 -0
- package/src/scss/atlas-custom-properties/variables/_type.scss +195 -0
- package/src/scss/atlas-custom-properties/variables/_utilities.scss +933 -0
- package/src/scss/cadmin/components/_focus-ring.scss +74 -0
- package/src/scss/cadmin/components/_forms.scss +2 -0
- package/src/scss/cadmin/components/_menubar.scss +8 -0
- package/src/scss/cadmin/components/_resizer.scss +19 -4
- package/src/scss/cadmin/variables/_breadcrumbs.scss +3 -1
- package/src/scss/cadmin/variables/_forms.scss +3 -1
- package/src/scss/cadmin/variables/_reorder.scss +1 -0
- package/src/scss/cadmin/variables/_resizer.scss +16 -3
- package/src/scss/cadmin.scss +1 -0
- package/src/scss/components/_focus-ring.scss +64 -0
- package/src/scss/components/_forms.scss +2 -0
- package/src/scss/components/_keyboard-arrows-indicator.scss +82 -0
- package/src/scss/components/_menubar.scss +8 -0
- package/src/scss/components/_resizer.scss +15 -4
- package/src/scss/functions/_global-functions.scss +6 -4
- package/src/scss/functions/_lx-icons-generated.scss +10 -0
- package/src/scss/variables/_breadcrumbs.scss +4 -2
- package/src/scss/variables/_forms.scss +2 -0
- package/src/scss/variables/_globals.scss +8 -8
- package/src/scss/variables/_resizer.scss +16 -3
|
@@ -0,0 +1,702 @@
|
|
|
1
|
+
$toggle-switch-cursor: $link-cursor !default;
|
|
2
|
+
$toggle-switch-font-weight: var(
|
|
3
|
+
--toggle-switch-font-weight,
|
|
4
|
+
$input-label-font-weight
|
|
5
|
+
) !default;
|
|
6
|
+
$toggle-switch-transition:
|
|
7
|
+
background-color 100ms ease-in,
|
|
8
|
+
border-color 100ms ease-in,
|
|
9
|
+
box-shadow 150ms ease-in-out,
|
|
10
|
+
color 100ms ease-in,
|
|
11
|
+
left 100ms ease-in,
|
|
12
|
+
opacity 100ms ease-in,
|
|
13
|
+
right 100ms ease-in !default;
|
|
14
|
+
|
|
15
|
+
// must all be same units--start
|
|
16
|
+
$toggle-switch-bar-padding: var(--toggle-switch-bar-padding, 4px) !default;
|
|
17
|
+
$toggle-switch-button-width: var(--toggle-switch-button-width, 16px) !default;
|
|
18
|
+
|
|
19
|
+
$toggle-switch-bar-padding-mobile: var(
|
|
20
|
+
--toggle-switch-bar-padding-mobile,
|
|
21
|
+
4px
|
|
22
|
+
) !default;
|
|
23
|
+
$toggle-switch-button-width-mobile: var(
|
|
24
|
+
--toggle-switch-button-width-mobile,
|
|
25
|
+
16px
|
|
26
|
+
) !default;
|
|
27
|
+
|
|
28
|
+
$toggle-switch-bar-height: calc(
|
|
29
|
+
#{$toggle-switch-bar-padding} * 2 + #{$toggle-switch-button-width}
|
|
30
|
+
) !default;
|
|
31
|
+
|
|
32
|
+
$toggle-switch-bar-height-mobile: calc(
|
|
33
|
+
#{$toggle-switch-bar-padding-mobile} * 2 + #{$toggle-switch-button-width-mobile}
|
|
34
|
+
) !default;
|
|
35
|
+
|
|
36
|
+
$toggle-switch-bar-width: var(--toggle-switch-bar-width, 48px) !default;
|
|
37
|
+
|
|
38
|
+
$toggle-switch-bar-width-mobile: var(
|
|
39
|
+
--toggle-switch-bar-width-mobile,
|
|
40
|
+
40px
|
|
41
|
+
) !default;
|
|
42
|
+
// must all be same units--end
|
|
43
|
+
|
|
44
|
+
$toggle-switch-bar-bg: var(
|
|
45
|
+
--toggle-switch-bar-background-color,
|
|
46
|
+
$gray-500
|
|
47
|
+
) !default;
|
|
48
|
+
$toggle-switch-bar-border-color: var(
|
|
49
|
+
--toggle-switch-bar-border-color,
|
|
50
|
+
$toggle-switch-bar-bg
|
|
51
|
+
) !default;
|
|
52
|
+
$toggle-switch-bar-border-radius: var(
|
|
53
|
+
--toggle-switch-bar-border-radius,
|
|
54
|
+
20px
|
|
55
|
+
) !default;
|
|
56
|
+
$toggle-switch-bar-border-width: var(
|
|
57
|
+
--toggle-switch-bar-border-width,
|
|
58
|
+
1px
|
|
59
|
+
) !default;
|
|
60
|
+
$toggle-switch-bar-font-size: var(--toggle-switch-bar-font-size, 10px) !default;
|
|
61
|
+
$toggle-switch-bar-icon-color: var(
|
|
62
|
+
--toggle-switch-bar-icon-color,
|
|
63
|
+
$white
|
|
64
|
+
) !default;
|
|
65
|
+
|
|
66
|
+
$toggle-switch-bar-focus-box-shadow: $custom-control-indicator-focus-box-shadow !default;
|
|
67
|
+
|
|
68
|
+
$toggle-switch-button-bg: var(
|
|
69
|
+
--toggle-switch-button-background-color,
|
|
70
|
+
$white
|
|
71
|
+
) !default;
|
|
72
|
+
$toggle-switch-button-border-color: var(
|
|
73
|
+
--toggle-switch-button-border-color,
|
|
74
|
+
$toggle-switch-button-bg
|
|
75
|
+
) !default;
|
|
76
|
+
$toggle-switch-button-border-radius: var(
|
|
77
|
+
--toggle-switch-button-border-radius,
|
|
78
|
+
50%
|
|
79
|
+
) !default;
|
|
80
|
+
$toggle-switch-button-border-width: var(
|
|
81
|
+
--toggle-switch-button-border-width,
|
|
82
|
+
1px
|
|
83
|
+
) !default;
|
|
84
|
+
$toggle-switch-button-font-size: var(
|
|
85
|
+
--toggle-switch-button-font-size,
|
|
86
|
+
$toggle-switch-bar-font-size
|
|
87
|
+
) !default;
|
|
88
|
+
$toggle-switch-button-icon-color: var(
|
|
89
|
+
--toggle-switch-button-icon-color,
|
|
90
|
+
$gray-900
|
|
91
|
+
) !default;
|
|
92
|
+
|
|
93
|
+
$toggle-switch-bar-font-size-mobile: var(
|
|
94
|
+
--toggle-switch-bar-font-size-mobile,
|
|
95
|
+
10px
|
|
96
|
+
) !default;
|
|
97
|
+
|
|
98
|
+
$toggle-switch-button-font-size-mobile: var(
|
|
99
|
+
--toggle-switch-button-font-size-mobile,
|
|
100
|
+
$toggle-switch-bar-font-size-mobile
|
|
101
|
+
) !default;
|
|
102
|
+
|
|
103
|
+
// Toggle Switch On
|
|
104
|
+
|
|
105
|
+
$toggle-switch-bar-on-bg: var(
|
|
106
|
+
--toggle-switch-bar-on-background-color,
|
|
107
|
+
$component-active-bg
|
|
108
|
+
) !default;
|
|
109
|
+
$toggle-switch-bar-on-border-color: var(
|
|
110
|
+
--toggle-switch-bar-on-border-color,
|
|
111
|
+
$toggle-switch-bar-on-bg
|
|
112
|
+
) !default;
|
|
113
|
+
$toggle-switch-bar-on-icon-color: var(
|
|
114
|
+
--toggle-switch-bar-on-icon-color,
|
|
115
|
+
$white
|
|
116
|
+
) !default;
|
|
117
|
+
|
|
118
|
+
$toggle-switch-button-on-bg: var(
|
|
119
|
+
--toggle-switch-button-on-background-color,
|
|
120
|
+
$white
|
|
121
|
+
) !default;
|
|
122
|
+
$toggle-switch-button-on-border-color: var(
|
|
123
|
+
--toggle-switch-button-on-border-color,
|
|
124
|
+
$white
|
|
125
|
+
) !default;
|
|
126
|
+
$toggle-switch-button-on-border-radius: var(
|
|
127
|
+
--toggle-switch-button-on-border-radius,
|
|
128
|
+
$toggle-switch-button-border-radius
|
|
129
|
+
) !default;
|
|
130
|
+
$toggle-switch-button-on-icon-color: var(
|
|
131
|
+
--toggle-switch-button-on-icon-color,
|
|
132
|
+
$primary
|
|
133
|
+
) !default;
|
|
134
|
+
|
|
135
|
+
// Toggle Switch Disabled
|
|
136
|
+
|
|
137
|
+
$toggle-switch-disabled-cursor: $disabled-cursor !default;
|
|
138
|
+
$toggle-switch-disabled-opacity: var(
|
|
139
|
+
--toggle-switch-disabled-opacity,
|
|
140
|
+
0.4
|
|
141
|
+
) !default;
|
|
142
|
+
|
|
143
|
+
// Toggle Switch Label
|
|
144
|
+
|
|
145
|
+
$toggle-switch-label-disabled-color: var(
|
|
146
|
+
--toggle-switch-label-disabled-color,
|
|
147
|
+
$input-label-disabled-color
|
|
148
|
+
) !default;
|
|
149
|
+
|
|
150
|
+
// Toggle Switch Text
|
|
151
|
+
|
|
152
|
+
$toggle-switch-text-font-size: var(
|
|
153
|
+
--toggle-switch-text-font-size,
|
|
154
|
+
12px
|
|
155
|
+
) !default;
|
|
156
|
+
|
|
157
|
+
$toggle-switch-text-disabled-color: var(
|
|
158
|
+
--toggle-switch-text-disabled-color,
|
|
159
|
+
$input-label-disabled-color
|
|
160
|
+
) !default;
|
|
161
|
+
|
|
162
|
+
// .toggle-switch
|
|
163
|
+
|
|
164
|
+
$toggle-switch: () !default;
|
|
165
|
+
$toggle-switch: map-deep-merge(
|
|
166
|
+
(
|
|
167
|
+
breakpoint-down: sm,
|
|
168
|
+
cursor: $toggle-switch-cursor,
|
|
169
|
+
display: inline-block,
|
|
170
|
+
font-weight: $toggle-switch-font-weight,
|
|
171
|
+
max-width: 100%,
|
|
172
|
+
position: relative,
|
|
173
|
+
|
|
174
|
+
disabled: (
|
|
175
|
+
cursor: $toggle-switch-disabled-cursor,
|
|
176
|
+
|
|
177
|
+
toggle-switch-label: (
|
|
178
|
+
color: $toggle-switch-label-disabled-color,
|
|
179
|
+
cursor: $toggle-switch-disabled-cursor,
|
|
180
|
+
),
|
|
181
|
+
|
|
182
|
+
toggle-switch-text: (
|
|
183
|
+
color: $toggle-switch-text-disabled-color,
|
|
184
|
+
),
|
|
185
|
+
),
|
|
186
|
+
),
|
|
187
|
+
$toggle-switch
|
|
188
|
+
);
|
|
189
|
+
|
|
190
|
+
// .toggle-switch-check-bar
|
|
191
|
+
|
|
192
|
+
$toggle-switch-check-bar: () !default;
|
|
193
|
+
$toggle-switch-check-bar: map-merge(
|
|
194
|
+
(
|
|
195
|
+
display: inline-flex,
|
|
196
|
+
position: relative,
|
|
197
|
+
),
|
|
198
|
+
$toggle-switch-check-bar
|
|
199
|
+
);
|
|
200
|
+
|
|
201
|
+
// .toggle-switch-bar
|
|
202
|
+
|
|
203
|
+
$toggle-switch-bar: () !default;
|
|
204
|
+
$toggle-switch-bar: map-deep-merge(
|
|
205
|
+
(
|
|
206
|
+
toggle-switch-handle: (
|
|
207
|
+
display: block,
|
|
208
|
+
min-width: $toggle-switch-bar-width,
|
|
209
|
+
text-transform: uppercase,
|
|
210
|
+
),
|
|
211
|
+
|
|
212
|
+
toggle-switch-icon: (
|
|
213
|
+
font-size: $toggle-switch-bar-font-size,
|
|
214
|
+
|
|
215
|
+
lexicon-icon: (
|
|
216
|
+
margin-top: -0.2em,
|
|
217
|
+
),
|
|
218
|
+
),
|
|
219
|
+
|
|
220
|
+
button-icon: (
|
|
221
|
+
font-size: $toggle-switch-button-font-size,
|
|
222
|
+
),
|
|
223
|
+
),
|
|
224
|
+
$toggle-switch-bar
|
|
225
|
+
);
|
|
226
|
+
|
|
227
|
+
// .toggle-switch-check
|
|
228
|
+
|
|
229
|
+
$toggle-switch-check: () !default;
|
|
230
|
+
$toggle-switch-check: map-deep-merge(
|
|
231
|
+
(
|
|
232
|
+
breakpoint-down: sm,
|
|
233
|
+
|
|
234
|
+
bottom: 0,
|
|
235
|
+
font-size: var(--togle-switch-check-font-size, 62.5%),
|
|
236
|
+
height: var(--togle-switch-check-height, $toggle-switch-bar-height),
|
|
237
|
+
opacity: 0,
|
|
238
|
+
position: absolute,
|
|
239
|
+
width: var(--togle-switch-check-width, $toggle-switch-bar-width),
|
|
240
|
+
z-index: 2,
|
|
241
|
+
|
|
242
|
+
toggle-switch-bar: (
|
|
243
|
+
display: inline-flex,
|
|
244
|
+
font-size: $toggle-switch-bar-font-size,
|
|
245
|
+
height: $toggle-switch-bar-height,
|
|
246
|
+
line-height: $toggle-switch-bar-height,
|
|
247
|
+
position: relative,
|
|
248
|
+
text-indent: 0,
|
|
249
|
+
user-select: none,
|
|
250
|
+
|
|
251
|
+
before: (
|
|
252
|
+
background-color: $toggle-switch-bar-bg,
|
|
253
|
+
border-color: $toggle-switch-bar-border-color,
|
|
254
|
+
border-radius:
|
|
255
|
+
clay-enable-rounded($toggle-switch-bar-border-radius),
|
|
256
|
+
border-style: solid,
|
|
257
|
+
border-width: $toggle-switch-bar-border-width,
|
|
258
|
+
bottom: 0,
|
|
259
|
+
content: ' ',
|
|
260
|
+
display: block,
|
|
261
|
+
left: 0,
|
|
262
|
+
position: absolute,
|
|
263
|
+
top: 0,
|
|
264
|
+
transition: $toggle-switch-transition,
|
|
265
|
+
width: $toggle-switch-bar-width,
|
|
266
|
+
),
|
|
267
|
+
|
|
268
|
+
after: (
|
|
269
|
+
background-color: $toggle-switch-button-bg,
|
|
270
|
+
border-color: $toggle-switch-button-border-color,
|
|
271
|
+
border-radius:
|
|
272
|
+
clay-enable-rounded($toggle-switch-button-border-radius),
|
|
273
|
+
border-style: solid,
|
|
274
|
+
border-width: $toggle-switch-button-border-width,
|
|
275
|
+
bottom: $toggle-switch-bar-padding,
|
|
276
|
+
content: '',
|
|
277
|
+
display: block,
|
|
278
|
+
height: $toggle-switch-button-width,
|
|
279
|
+
left: $toggle-switch-bar-padding,
|
|
280
|
+
position: absolute,
|
|
281
|
+
top: $toggle-switch-bar-padding,
|
|
282
|
+
transition: $toggle-switch-transition,
|
|
283
|
+
width: $toggle-switch-button-width,
|
|
284
|
+
),
|
|
285
|
+
|
|
286
|
+
toggle-switch-handle: (
|
|
287
|
+
before: (
|
|
288
|
+
transition: $toggle-switch-transition,
|
|
289
|
+
),
|
|
290
|
+
|
|
291
|
+
after: (
|
|
292
|
+
content: attr(data-label-off),
|
|
293
|
+
margin-left:
|
|
294
|
+
clay-data-label-text-position(
|
|
295
|
+
$toggle-switch-bar-width,
|
|
296
|
+
$toggle-switch-bar-padding
|
|
297
|
+
),
|
|
298
|
+
transition: $toggle-switch-transition,
|
|
299
|
+
white-space: nowrap,
|
|
300
|
+
),
|
|
301
|
+
),
|
|
302
|
+
|
|
303
|
+
toggle-switch-icon: (
|
|
304
|
+
color: $toggle-switch-bar-icon-color,
|
|
305
|
+
left: $toggle-switch-bar-padding,
|
|
306
|
+
line-height: $toggle-switch-button-width,
|
|
307
|
+
position: absolute,
|
|
308
|
+
text-align: center,
|
|
309
|
+
text-indent: 0,
|
|
310
|
+
top: $toggle-switch-bar-padding,
|
|
311
|
+
transition: $toggle-switch-transition,
|
|
312
|
+
width: $toggle-switch-button-width,
|
|
313
|
+
z-index: 1,
|
|
314
|
+
),
|
|
315
|
+
|
|
316
|
+
toggle-switch-icon-on: (
|
|
317
|
+
left: $toggle-switch-bar-padding,
|
|
318
|
+
opacity: 0,
|
|
319
|
+
),
|
|
320
|
+
|
|
321
|
+
toggle-switch-icon-off: (
|
|
322
|
+
left:
|
|
323
|
+
calc(
|
|
324
|
+
#{$toggle-switch-bar-width} - #{$toggle-switch-bar-padding} -
|
|
325
|
+
#{$toggle-switch-button-width}
|
|
326
|
+
),
|
|
327
|
+
),
|
|
328
|
+
|
|
329
|
+
button-icon: (
|
|
330
|
+
color: $toggle-switch-button-icon-color,
|
|
331
|
+
),
|
|
332
|
+
|
|
333
|
+
button-icon-on: (
|
|
334
|
+
opacity: 0,
|
|
335
|
+
),
|
|
336
|
+
),
|
|
337
|
+
|
|
338
|
+
focus: (
|
|
339
|
+
toggle-switch-bar: (
|
|
340
|
+
before: (
|
|
341
|
+
box-shadow: $toggle-switch-bar-focus-box-shadow,
|
|
342
|
+
),
|
|
343
|
+
),
|
|
344
|
+
),
|
|
345
|
+
|
|
346
|
+
disabled: (
|
|
347
|
+
toggle-switch-bar: (
|
|
348
|
+
cursor: $toggle-switch-disabled-cursor,
|
|
349
|
+
opacity: $toggle-switch-disabled-opacity,
|
|
350
|
+
),
|
|
351
|
+
),
|
|
352
|
+
|
|
353
|
+
checked: (
|
|
354
|
+
toggle-switch-bar: (
|
|
355
|
+
before: (
|
|
356
|
+
background-color: $toggle-switch-bar-on-bg,
|
|
357
|
+
border-color: $toggle-switch-bar-on-border-color,
|
|
358
|
+
border-radius:
|
|
359
|
+
clay-enable-rounded($toggle-switch-bar-border-radius),
|
|
360
|
+
border-style: solid,
|
|
361
|
+
border-width: $toggle-switch-bar-border-width,
|
|
362
|
+
),
|
|
363
|
+
|
|
364
|
+
after: (
|
|
365
|
+
background-color: $toggle-switch-button-on-bg,
|
|
366
|
+
border-color: $toggle-switch-button-on-border-color,
|
|
367
|
+
border-radius:
|
|
368
|
+
clay-enable-rounded(
|
|
369
|
+
$toggle-switch-button-on-border-radius
|
|
370
|
+
),
|
|
371
|
+
border-style: solid,
|
|
372
|
+
border-width: $toggle-switch-button-border-width,
|
|
373
|
+
left:
|
|
374
|
+
calc(
|
|
375
|
+
#{$toggle-switch-bar-width} - #{$toggle-switch-bar-padding} -
|
|
376
|
+
#{$toggle-switch-button-width}
|
|
377
|
+
),
|
|
378
|
+
),
|
|
379
|
+
|
|
380
|
+
toggle-switch-handle: (
|
|
381
|
+
after: (
|
|
382
|
+
content: attr(data-label-on),
|
|
383
|
+
),
|
|
384
|
+
),
|
|
385
|
+
|
|
386
|
+
toggle-switch-icon: (
|
|
387
|
+
color: $toggle-switch-bar-on-icon-color,
|
|
388
|
+
),
|
|
389
|
+
|
|
390
|
+
toggle-switch-icon-on: (
|
|
391
|
+
opacity: 1,
|
|
392
|
+
),
|
|
393
|
+
|
|
394
|
+
toggle-switch-icon-off: (
|
|
395
|
+
opacity: 0,
|
|
396
|
+
),
|
|
397
|
+
|
|
398
|
+
button-icon: (
|
|
399
|
+
color: $toggle-switch-button-on-icon-color,
|
|
400
|
+
left:
|
|
401
|
+
calc(
|
|
402
|
+
#{$toggle-switch-bar-width} - #{$toggle-switch-bar-padding} -
|
|
403
|
+
#{$toggle-switch-button-width}
|
|
404
|
+
),
|
|
405
|
+
),
|
|
406
|
+
|
|
407
|
+
button-icon-on: (
|
|
408
|
+
opacity: 1,
|
|
409
|
+
),
|
|
410
|
+
|
|
411
|
+
button-icon-off: (
|
|
412
|
+
opacity: 0,
|
|
413
|
+
),
|
|
414
|
+
),
|
|
415
|
+
),
|
|
416
|
+
|
|
417
|
+
mobile: (
|
|
418
|
+
height: $toggle-switch-bar-height-mobile,
|
|
419
|
+
width: $toggle-switch-bar-width-mobile,
|
|
420
|
+
|
|
421
|
+
toggle-switch-bar: (
|
|
422
|
+
height: $toggle-switch-bar-height-mobile,
|
|
423
|
+
line-height: $toggle-switch-bar-height-mobile,
|
|
424
|
+
text-indent: 0,
|
|
425
|
+
|
|
426
|
+
before: (
|
|
427
|
+
width: $toggle-switch-bar-width-mobile,
|
|
428
|
+
),
|
|
429
|
+
|
|
430
|
+
after: (
|
|
431
|
+
bottom: $toggle-switch-bar-padding-mobile,
|
|
432
|
+
height: $toggle-switch-button-width-mobile,
|
|
433
|
+
left: $toggle-switch-bar-padding-mobile,
|
|
434
|
+
top: $toggle-switch-bar-padding-mobile,
|
|
435
|
+
width: $toggle-switch-button-width-mobile,
|
|
436
|
+
),
|
|
437
|
+
|
|
438
|
+
toggle-switch-handle: (
|
|
439
|
+
min-width: $toggle-switch-bar-width-mobile,
|
|
440
|
+
|
|
441
|
+
after: (
|
|
442
|
+
margin-left:
|
|
443
|
+
clay-data-label-text-position(
|
|
444
|
+
$toggle-switch-bar-width-mobile,
|
|
445
|
+
$toggle-switch-bar-padding-mobile
|
|
446
|
+
),
|
|
447
|
+
),
|
|
448
|
+
),
|
|
449
|
+
|
|
450
|
+
toggle-switch-icon: (
|
|
451
|
+
font-size: $toggle-switch-bar-font-size-mobile,
|
|
452
|
+
left: $toggle-switch-bar-padding-mobile,
|
|
453
|
+
line-height: $toggle-switch-button-width-mobile,
|
|
454
|
+
top: $toggle-switch-bar-padding-mobile,
|
|
455
|
+
width: $toggle-switch-button-width-mobile,
|
|
456
|
+
),
|
|
457
|
+
|
|
458
|
+
toggle-switch-icon-on: (
|
|
459
|
+
left: $toggle-switch-bar-padding-mobile,
|
|
460
|
+
),
|
|
461
|
+
|
|
462
|
+
toggle-switch-icon-off: (
|
|
463
|
+
left:
|
|
464
|
+
calc(
|
|
465
|
+
#{$toggle-switch-bar-width-mobile} - #{$toggle-switch-bar-padding-mobile} -
|
|
466
|
+
#{$toggle-switch-button-width-mobile}
|
|
467
|
+
),
|
|
468
|
+
),
|
|
469
|
+
|
|
470
|
+
button-icon: (
|
|
471
|
+
font-size: $toggle-switch-button-font-size-mobile,
|
|
472
|
+
),
|
|
473
|
+
),
|
|
474
|
+
|
|
475
|
+
checked: (
|
|
476
|
+
toggle-switch-bar: (
|
|
477
|
+
after: (
|
|
478
|
+
left:
|
|
479
|
+
calc(
|
|
480
|
+
#{$toggle-switch-bar-width-mobile} - #{$toggle-switch-bar-padding-mobile} -
|
|
481
|
+
#{$toggle-switch-button-width-mobile}
|
|
482
|
+
),
|
|
483
|
+
),
|
|
484
|
+
|
|
485
|
+
toggle-switch-handle: (
|
|
486
|
+
after: (
|
|
487
|
+
margin-left:
|
|
488
|
+
clay-data-label-text-position(
|
|
489
|
+
$toggle-switch-bar-width-mobile,
|
|
490
|
+
$toggle-switch-bar-padding-mobile
|
|
491
|
+
),
|
|
492
|
+
),
|
|
493
|
+
),
|
|
494
|
+
|
|
495
|
+
button-icon: (
|
|
496
|
+
left:
|
|
497
|
+
calc(
|
|
498
|
+
#{$toggle-switch-bar-width-mobile} - #{$toggle-switch-bar-padding-mobile} -
|
|
499
|
+
#{$toggle-switch-button-width-mobile}
|
|
500
|
+
),
|
|
501
|
+
),
|
|
502
|
+
),
|
|
503
|
+
),
|
|
504
|
+
|
|
505
|
+
toggle-switch-text-left: (
|
|
506
|
+
line-height: $toggle-switch-bar-height-mobile,
|
|
507
|
+
),
|
|
508
|
+
|
|
509
|
+
toggle-switch-text-right: (
|
|
510
|
+
line-height: $toggle-switch-bar-height-mobile,
|
|
511
|
+
),
|
|
512
|
+
),
|
|
513
|
+
),
|
|
514
|
+
$toggle-switch-check
|
|
515
|
+
);
|
|
516
|
+
|
|
517
|
+
// .toggle-switch-label
|
|
518
|
+
|
|
519
|
+
$toggle-switch-label: () !default;
|
|
520
|
+
$toggle-switch-label: map-merge(
|
|
521
|
+
(
|
|
522
|
+
display: block,
|
|
523
|
+
margin-bottom: var(--toggle-switch-label-margin-bottom, 2px),
|
|
524
|
+
),
|
|
525
|
+
$toggle-switch-label
|
|
526
|
+
);
|
|
527
|
+
|
|
528
|
+
// .toggle-switch-text
|
|
529
|
+
|
|
530
|
+
$toggle-switch-text: () !default;
|
|
531
|
+
$toggle-switch-text: map-merge(
|
|
532
|
+
(
|
|
533
|
+
display: block,
|
|
534
|
+
font-size:
|
|
535
|
+
var(--toggle-switch-text-font-size, $toggle-switch-text-font-size),
|
|
536
|
+
),
|
|
537
|
+
$toggle-switch-text
|
|
538
|
+
);
|
|
539
|
+
|
|
540
|
+
// .toggle-switch-text-left
|
|
541
|
+
|
|
542
|
+
$toggle-switch-text-left: () !default;
|
|
543
|
+
$toggle-switch-text-left: map-deep-merge(
|
|
544
|
+
(
|
|
545
|
+
display: inline-flex,
|
|
546
|
+
line-height: $toggle-switch-bar-height,
|
|
547
|
+
margin-right: 8px,
|
|
548
|
+
),
|
|
549
|
+
$toggle-switch-text-left
|
|
550
|
+
);
|
|
551
|
+
|
|
552
|
+
// .toggle-switch-text-right
|
|
553
|
+
|
|
554
|
+
$toggle-switch-text-right: () !default;
|
|
555
|
+
$toggle-switch-text-right: map-merge(
|
|
556
|
+
(
|
|
557
|
+
display: inline-flex,
|
|
558
|
+
line-height: $toggle-switch-bar-height,
|
|
559
|
+
margin-left: 8px,
|
|
560
|
+
),
|
|
561
|
+
$toggle-switch-text-right
|
|
562
|
+
);
|
|
563
|
+
|
|
564
|
+
// .simple-toggle-switch
|
|
565
|
+
|
|
566
|
+
$simple-toggle-switch-label-line-height: 1 !default;
|
|
567
|
+
$simple-toggle-switch-label-spacer-x: 8px !default;
|
|
568
|
+
|
|
569
|
+
$simple-toggle-switch: () !default;
|
|
570
|
+
$simple-toggle-switch: map-deep-merge(
|
|
571
|
+
(
|
|
572
|
+
breakpoint-down: sm,
|
|
573
|
+
|
|
574
|
+
align-items: center,
|
|
575
|
+
display: inline-flex,
|
|
576
|
+
|
|
577
|
+
toggle-switch-label: (
|
|
578
|
+
line-height: $simple-toggle-switch-label-line-height,
|
|
579
|
+
margin-bottom: 0,
|
|
580
|
+
max-width:
|
|
581
|
+
calc(
|
|
582
|
+
100% - #{clay-data-label-text-position(
|
|
583
|
+
$toggle-switch-bar-width,
|
|
584
|
+
$toggle-switch-bar-padding
|
|
585
|
+
)}
|
|
586
|
+
),
|
|
587
|
+
),
|
|
588
|
+
|
|
589
|
+
mobile: (
|
|
590
|
+
toggle-switch-label: (
|
|
591
|
+
max-width:
|
|
592
|
+
calc(
|
|
593
|
+
100% - #{clay-data-label-text-position(
|
|
594
|
+
$toggle-switch-bar-width-mobile,
|
|
595
|
+
$toggle-switch-bar-padding-mobile
|
|
596
|
+
)}
|
|
597
|
+
),
|
|
598
|
+
),
|
|
599
|
+
),
|
|
600
|
+
),
|
|
601
|
+
$simple-toggle-switch
|
|
602
|
+
);
|
|
603
|
+
|
|
604
|
+
// .simple-toggle-switch-reverse
|
|
605
|
+
|
|
606
|
+
$simple-toggle-switch-reverse: () !default;
|
|
607
|
+
$simple-toggle-switch-reverse: map-deep-merge(
|
|
608
|
+
(
|
|
609
|
+
breakpoint-down: sm,
|
|
610
|
+
|
|
611
|
+
toggle-switch-label: (
|
|
612
|
+
margin-right: $simple-toggle-switch-label-spacer-x,
|
|
613
|
+
),
|
|
614
|
+
|
|
615
|
+
toggle-switch-check-bar: (
|
|
616
|
+
order: 5,
|
|
617
|
+
),
|
|
618
|
+
|
|
619
|
+
toggle-switch-check: (
|
|
620
|
+
toggle-switch-bar: (
|
|
621
|
+
order: 5,
|
|
622
|
+
),
|
|
623
|
+
),
|
|
624
|
+
),
|
|
625
|
+
$simple-toggle-switch-reverse
|
|
626
|
+
);
|
|
627
|
+
|
|
628
|
+
// .toggle-switch-sm
|
|
629
|
+
|
|
630
|
+
$toggle-switch-sizes: () !default;
|
|
631
|
+
$toggle-switch-sizes: map-deep-merge(
|
|
632
|
+
(
|
|
633
|
+
toggle-switch-sm: (
|
|
634
|
+
simple-toggle-switch: (
|
|
635
|
+
toggle-switch-label: (
|
|
636
|
+
max-width: calc(100% - 34px),
|
|
637
|
+
),
|
|
638
|
+
),
|
|
639
|
+
|
|
640
|
+
toggle-switch-check: (
|
|
641
|
+
height: 16px,
|
|
642
|
+
width: 30px,
|
|
643
|
+
|
|
644
|
+
toggle-switch-bar: (
|
|
645
|
+
height: 16px,
|
|
646
|
+
line-height: 16px,
|
|
647
|
+
|
|
648
|
+
before: (
|
|
649
|
+
width: 30px,
|
|
650
|
+
),
|
|
651
|
+
|
|
652
|
+
after: (
|
|
653
|
+
bottom: 0,
|
|
654
|
+
height: 12px,
|
|
655
|
+
left: 2px,
|
|
656
|
+
top: 2px,
|
|
657
|
+
width: 12px,
|
|
658
|
+
),
|
|
659
|
+
|
|
660
|
+
toggle-switch-handle: (
|
|
661
|
+
min-width: 30px,
|
|
662
|
+
|
|
663
|
+
after: (
|
|
664
|
+
margin-left: 34px,
|
|
665
|
+
),
|
|
666
|
+
),
|
|
667
|
+
|
|
668
|
+
toggle-switch-icon: (
|
|
669
|
+
font-size: 8px,
|
|
670
|
+
height: 16px,
|
|
671
|
+
left: 0,
|
|
672
|
+
line-height: 16px,
|
|
673
|
+
top: 0px,
|
|
674
|
+
width: 16px,
|
|
675
|
+
),
|
|
676
|
+
|
|
677
|
+
toggle-switch-icon-off: (
|
|
678
|
+
left: 13px,
|
|
679
|
+
),
|
|
680
|
+
),
|
|
681
|
+
|
|
682
|
+
checked: (
|
|
683
|
+
toggle-switch-bar: (
|
|
684
|
+
after: (
|
|
685
|
+
left: 16px,
|
|
686
|
+
),
|
|
687
|
+
|
|
688
|
+
button-icon: (
|
|
689
|
+
left: 14px,
|
|
690
|
+
),
|
|
691
|
+
),
|
|
692
|
+
),
|
|
693
|
+
),
|
|
694
|
+
|
|
695
|
+
toggle-switch-label: (
|
|
696
|
+
font-size: 12px,
|
|
697
|
+
max-width: calc(100% - 38px),
|
|
698
|
+
),
|
|
699
|
+
),
|
|
700
|
+
),
|
|
701
|
+
$toggle-switch-sizes
|
|
702
|
+
);
|