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