@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.
Files changed (97) hide show
  1. package/lib/css/atlas.css +136 -6
  2. package/lib/css/atlas.css.map +1 -1
  3. package/lib/css/base.css +134 -5
  4. package/lib/css/base.css.map +1 -1
  5. package/lib/css/cadmin.css +74 -7
  6. package/lib/css/cadmin.css.map +1 -1
  7. package/lib/images/icons/arrow-key-down.svg +9 -0
  8. package/lib/images/icons/arrow-key-left.svg +9 -0
  9. package/lib/images/icons/arrow-key-right.svg +9 -0
  10. package/lib/images/icons/arrow-key-up.svg +9 -0
  11. package/lib/images/icons/icons.svg +1 -1
  12. package/package.json +1 -1
  13. package/src/images/icons/arrow-key-down.svg +9 -0
  14. package/src/images/icons/arrow-key-left.svg +9 -0
  15. package/src/images/icons/arrow-key-right.svg +9 -0
  16. package/src/images/icons/arrow-key-up.svg +9 -0
  17. package/src/images/icons/icons.svg +1 -1
  18. package/src/scss/_components.scss +2 -0
  19. package/src/scss/_license-text.scss +1 -1
  20. package/src/scss/atlas/variables/_forms.scss +3 -1
  21. package/src/scss/atlas/variables/_reorder.scss +1 -1
  22. package/src/scss/atlas-custom-properties/_variables.scss +0 -2
  23. package/src/scss/atlas-custom-properties/variables/_alerts.scss +928 -935
  24. package/src/scss/atlas-custom-properties/variables/_application-bar.scss +54 -56
  25. package/src/scss/atlas-custom-properties/variables/_aspect-ratio.scss +25 -27
  26. package/src/scss/atlas-custom-properties/variables/_badges.scss +298 -309
  27. package/src/scss/atlas-custom-properties/variables/_breadcrumbs.scss +175 -187
  28. package/src/scss/atlas-custom-properties/variables/_buttons.scss +1164 -1220
  29. package/src/scss/atlas-custom-properties/variables/_c-root.scss +343 -353
  30. package/src/scss/atlas-custom-properties/variables/_cards.scss +1009 -1014
  31. package/src/scss/atlas-custom-properties/variables/_clay-color.scss +560 -590
  32. package/src/scss/atlas-custom-properties/variables/_custom-forms.scss +766 -797
  33. package/src/scss/atlas-custom-properties/variables/_date-picker.scss +532 -614
  34. package/src/scss/atlas-custom-properties/variables/_drilldown.scss +244 -252
  35. package/src/scss/atlas-custom-properties/variables/_dropdowns.scss +1052 -1073
  36. package/src/scss/atlas-custom-properties/variables/_dual-listbox.scss +65 -68
  37. package/src/scss/atlas-custom-properties/variables/_empty-state.scss +90 -92
  38. package/src/scss/atlas-custom-properties/variables/_forms.scss +1918 -1955
  39. package/src/scss/atlas-custom-properties/variables/_globals-z-index.scss +27 -29
  40. package/src/scss/atlas-custom-properties/variables/_globals.scss +799 -801
  41. package/src/scss/atlas-custom-properties/variables/_icons.scss +71 -73
  42. package/src/scss/atlas-custom-properties/variables/_images.scss +8 -13
  43. package/src/scss/atlas-custom-properties/variables/_labels.scss +1091 -1202
  44. package/src/scss/atlas-custom-properties/variables/_links.scss +394 -410
  45. package/src/scss/atlas-custom-properties/variables/_list-group.scss +455 -460
  46. package/src/scss/atlas-custom-properties/variables/_loaders.scss +187 -204
  47. package/src/scss/atlas-custom-properties/variables/_management-bar.scss +135 -137
  48. package/src/scss/atlas-custom-properties/variables/_menubar.scss +605 -663
  49. package/src/scss/atlas-custom-properties/variables/_modals.scss +582 -587
  50. package/src/scss/atlas-custom-properties/variables/_multi-step-nav.scss +342 -312
  51. package/src/scss/atlas-custom-properties/variables/_navbar.scss +170 -172
  52. package/src/scss/atlas-custom-properties/variables/_navigation-bar.scss +337 -361
  53. package/src/scss/atlas-custom-properties/variables/_navs.scss +501 -495
  54. package/src/scss/atlas-custom-properties/variables/_pagination.scss +851 -888
  55. package/src/scss/atlas-custom-properties/variables/_panels.scss +467 -480
  56. package/src/scss/atlas-custom-properties/variables/_popovers.scss +483 -515
  57. package/src/scss/atlas-custom-properties/variables/_progress-bars.scss +146 -139
  58. package/src/scss/atlas-custom-properties/variables/_quick-action.scss +24 -23
  59. package/src/scss/atlas-custom-properties/variables/_range.scss +215 -220
  60. package/src/scss/atlas-custom-properties/variables/_reorder.scss +82 -82
  61. package/src/scss/atlas-custom-properties/variables/_resizer.scss +27 -16
  62. package/src/scss/atlas-custom-properties/variables/_sheets.scss +275 -275
  63. package/src/scss/atlas-custom-properties/variables/_side-navigation.scss +2 -4
  64. package/src/scss/atlas-custom-properties/variables/_sidebar.scss +413 -445
  65. package/src/scss/atlas-custom-properties/variables/_slideout.scss +300 -310
  66. package/src/scss/atlas-custom-properties/variables/_stickers.scss +551 -553
  67. package/src/scss/atlas-custom-properties/variables/_tables.scss +1094 -1079
  68. package/src/scss/atlas-custom-properties/variables/_tbar.scss +491 -557
  69. package/src/scss/atlas-custom-properties/variables/_time.scss +121 -130
  70. package/src/scss/atlas-custom-properties/variables/_timelines.scss +50 -43
  71. package/src/scss/atlas-custom-properties/variables/_toggle-switch.scss +562 -566
  72. package/src/scss/atlas-custom-properties/variables/_tooltip.scss +295 -306
  73. package/src/scss/atlas-custom-properties/variables/_treeview.scss +276 -278
  74. package/src/scss/atlas-custom-properties/variables/_type.scss +186 -185
  75. package/src/scss/atlas-custom-properties/variables/_utilities.scss +705 -788
  76. package/src/scss/atlas-variables.scss +0 -2
  77. package/src/scss/atlas.scss +0 -2
  78. package/src/scss/base-variables.scss +0 -2
  79. package/src/scss/base.scss +0 -2
  80. package/src/scss/cadmin/components/_focus-ring.scss +74 -0
  81. package/src/scss/cadmin/components/_forms.scss +2 -0
  82. package/src/scss/cadmin/components/_menubar.scss +8 -0
  83. package/src/scss/cadmin/components/_resizer.scss +19 -4
  84. package/src/scss/cadmin/variables/_breadcrumbs.scss +3 -1
  85. package/src/scss/cadmin/variables/_forms.scss +3 -1
  86. package/src/scss/cadmin/variables/_reorder.scss +1 -0
  87. package/src/scss/cadmin/variables/_resizer.scss +16 -3
  88. package/src/scss/cadmin.scss +1 -0
  89. package/src/scss/components/_focus-ring.scss +64 -0
  90. package/src/scss/components/_forms.scss +2 -0
  91. package/src/scss/components/_keyboard-arrows-indicator.scss +82 -0
  92. package/src/scss/components/_menubar.scss +8 -0
  93. package/src/scss/components/_resizer.scss +15 -4
  94. package/src/scss/functions/_lx-icons-generated.scss +8 -0
  95. package/src/scss/variables/_breadcrumbs.scss +4 -2
  96. package/src/scss/variables/_forms.scss +2 -0
  97. package/src/scss/variables/_resizer.scss +16 -3
@@ -1,438 +1,488 @@
1
- @if ($enable-atlas-custom-properties) {
2
- $toggle-switch-cursor: $link-cursor;
3
- $toggle-switch-font-weight: var(
4
- --toggle-switch-font-weight,
5
- $input-label-font-weight
6
- );
7
- $toggle-switch-transition:
8
- background-color 100ms ease-in,
9
- border-color 100ms ease-in,
10
- box-shadow 150ms ease-in-out,
11
- color 100ms ease-in,
12
- left 100ms ease-in,
13
- opacity 100ms ease-in,
14
- right 100ms ease-in;
15
-
16
- // must all be same units--start
17
- $toggle-switch-bar-padding: var(--toggle-switch-bar-padding, 4px);
18
- $toggle-switch-button-width: var(--toggle-switch-button-width, 16px);
19
-
20
- $toggle-switch-bar-padding-mobile: var(
21
- --toggle-switch-bar-padding-mobile,
22
- 4px
23
- );
24
- $toggle-switch-button-width-mobile: var(
25
- --toggle-switch-button-width-mobile,
26
- 16px
27
- );
28
-
29
- $toggle-switch-bar-height: calc(
30
- #{$toggle-switch-bar-padding} * 2 + #{$toggle-switch-button-width}
31
- );
32
-
33
- $toggle-switch-bar-height-mobile: calc(
34
- #{$toggle-switch-bar-padding-mobile} *
35
- 2 +
36
- #{$toggle-switch-button-width-mobile}
37
- );
38
-
39
- $toggle-switch-bar-width: var(--toggle-switch-bar-width, 48px);
40
-
41
- $toggle-switch-bar-width-mobile: var(
42
- --toggle-switch-bar-width-mobile,
43
- 40px
44
- );
45
- // must all be same units--end
46
-
47
- $toggle-switch-bar-bg: var(--toggle-switch-bar-background-color, $gray-500);
48
- $toggle-switch-bar-border-color: var(
49
- --toggle-switch-bar-border-color,
50
- $toggle-switch-bar-bg
51
- );
52
- $toggle-switch-bar-border-radius: var(
53
- --toggle-switch-bar-border-radius,
54
- 20px
55
- );
56
- $toggle-switch-bar-border-width: var(--toggle-switch-bar-border-width, 1px);
57
- $toggle-switch-bar-font-size: var(--toggle-switch-bar-font-size, 10px);
58
- $toggle-switch-bar-icon-color: var(--toggle-switch-bar-icon-color, $white);
59
-
60
- $toggle-switch-bar-focus-box-shadow: $custom-control-indicator-focus-box-shadow;
61
-
62
- $toggle-switch-button-bg: var(
63
- --toggle-switch-button-background-color,
64
- $white
65
- );
66
- $toggle-switch-button-border-color: var(
67
- --toggle-switch-button-border-color,
68
- $toggle-switch-button-bg
69
- );
70
- $toggle-switch-button-border-radius: var(
71
- --toggle-switch-button-border-radius,
72
- 50%
73
- );
74
- $toggle-switch-button-border-width: var(
75
- --toggle-switch-button-border-width,
76
- 1px
77
- );
78
- $toggle-switch-button-font-size: var(
79
- --toggle-switch-button-font-size,
80
- $toggle-switch-bar-font-size
81
- );
82
- $toggle-switch-button-icon-color: var(
83
- --toggle-switch-button-icon-color,
84
- $gray-900
85
- );
86
-
87
- $toggle-switch-bar-font-size-mobile: var(
88
- --toggle-switch-bar-font-size-mobile,
89
- 10px
90
- );
91
-
92
- $toggle-switch-button-font-size-mobile: var(
93
- --toggle-switch-button-font-size-mobile,
94
- $toggle-switch-bar-font-size-mobile
95
- );
96
-
97
- // Toggle Switch On
98
-
99
- $toggle-switch-bar-on-bg: var(
100
- --toggle-switch-bar-on-background-color,
101
- $component-active-bg
102
- );
103
- $toggle-switch-bar-on-border-color: var(
104
- --toggle-switch-bar-on-border-color,
105
- $toggle-switch-bar-on-bg
106
- );
107
- $toggle-switch-bar-on-icon-color: var(
108
- --toggle-switch-bar-on-icon-color,
109
- $white
110
- );
111
-
112
- $toggle-switch-button-on-bg: var(
113
- --toggle-switch-button-on-background-color,
114
- $white
115
- );
116
- $toggle-switch-button-on-border-color: var(
117
- --toggle-switch-button-on-border-color,
118
- $white
119
- );
120
- $toggle-switch-button-on-border-radius: var(
121
- --toggle-switch-button-on-border-radius,
122
- $toggle-switch-button-border-radius
123
- );
124
- $toggle-switch-button-on-icon-color: var(
125
- --toggle-switch-button-on-icon-color,
126
- $primary
127
- );
128
-
129
- // Toggle Switch Disabled
130
-
131
- $toggle-switch-disabled-cursor: $disabled-cursor;
132
- $toggle-switch-disabled-opacity: var(--toggle-switch-disabled-opacity, 0.4);
133
-
134
- // Toggle Switch Label
135
-
136
- $toggle-switch-label-disabled-color: var(
137
- --toggle-switch-label-disabled-color,
138
- $input-label-disabled-color
139
- );
140
-
141
- // Toggle Switch Text
142
-
143
- $toggle-switch-text-font-size: var(--toggle-switch-text-font-size, 12px);
144
-
145
- $toggle-switch-text-disabled-color: var(
146
- --toggle-switch-text-disabled-color,
147
- $input-label-disabled-color
148
- );
149
-
150
- // .toggle-switch
151
-
152
- $toggle-switch: ();
153
- $toggle-switch: map-deep-merge(
154
- (
155
- breakpoint-down: sm,
156
- cursor: $toggle-switch-cursor,
157
- display: inline-block,
158
- font-weight: $toggle-switch-font-weight,
159
- max-width: 100%,
160
- position: relative,
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
- disabled: (
177
+ toggle-switch-label: (
178
+ color: $toggle-switch-label-disabled-color,
163
179
  cursor: $toggle-switch-disabled-cursor,
180
+ ),
164
181
 
165
- toggle-switch-label: (
166
- color: $toggle-switch-label-disabled-color,
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
- $toggle-switch
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
- // .toggle-switch-check-bar
215
+ lexicon-icon: (
216
+ margin-top: -0.2em,
217
+ ),
218
+ ),
179
219
 
180
- $toggle-switch-check-bar: ();
181
- $toggle-switch-check-bar: map-merge(
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
- $toggle-switch-check-bar
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
- // .toggle-switch-bar
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
- display: block,
196
- min-width: $toggle-switch-bar-width,
197
- text-transform: uppercase,
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
- font-size: $toggle-switch-bar-font-size,
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
- lexicon-icon: (
204
- margin-top: -0.2em,
205
- ),
316
+ toggle-switch-icon-on: (
317
+ left: $toggle-switch-bar-padding,
318
+ opacity: 0,
206
319
  ),
207
320
 
208
- button-icon: (
209
- font-size: $toggle-switch-button-font-size,
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
- // .toggle-switch-check
329
+ button-icon: (
330
+ color: $toggle-switch-button-icon-color,
331
+ ),
216
332
 
217
- $toggle-switch-check: ();
218
- $toggle-switch-check: map-deep-merge(
219
- (
220
- breakpoint-down: sm,
333
+ button-icon-on: (
334
+ opacity: 0,
335
+ ),
336
+ ),
221
337
 
222
- bottom: 0,
223
- font-size: var(--togle-switch-check-font-size, 62.5%),
224
- height: var(--togle-switch-check-height, $toggle-switch-bar-height),
225
- opacity: 0,
226
- position: absolute,
227
- width: var(--togle-switch-check-width, $toggle-switch-bar-width),
228
- z-index: 2,
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
- display: inline-flex,
232
- font-size: $toggle-switch-bar-font-size,
233
- height: $toggle-switch-bar-height,
234
- line-height: $toggle-switch-bar-height,
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
- bottom: $toggle-switch-bar-padding,
266
- content: '',
267
- display: block,
268
- height: $toggle-switch-button-width,
269
- left: $toggle-switch-bar-padding,
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-off),
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
- left: $toggle-switch-bar-padding,
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
- color: $toggle-switch-button-icon-color,
407
+ button-icon-on: (
408
+ opacity: 1,
322
409
  ),
323
410
 
324
- button-icon-on: (
411
+ button-icon-off: (
325
412
  opacity: 0,
326
413
  ),
327
414
  ),
415
+ ),
328
416
 
329
- focus: (
330
- toggle-switch-bar: (
331
- before: (
332
- box-shadow: $toggle-switch-bar-focus-box-shadow,
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
- disabled: (
338
- toggle-switch-bar: (
339
- cursor: $toggle-switch-disabled-cursor,
340
- opacity: $toggle-switch-disabled-opacity,
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
- checked: (
345
- toggle-switch-bar: (
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
- background-color: $toggle-switch-button-on-bg,
359
- border-color: $toggle-switch-button-on-border-color,
360
- border-radius:
361
- clay-enable-rounded(
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
- toggle-switch-handle: (
375
- after: (
376
- content: attr(data-label-on),
377
- ),
378
- ),
379
-
380
- toggle-switch-icon: (
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
- button-icon: (
393
- color: $toggle-switch-button-on-icon-color,
394
- left:
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
- button-icon-on: (
403
- opacity: 1,
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
- button-icon-off: (
407
- opacity: 0,
408
- ),
470
+ button-icon: (
471
+ font-size: $toggle-switch-button-font-size-mobile,
409
472
  ),
410
473
  ),
411
474
 
412
- mobile: (
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
- bottom: $toggle-switch-bar-padding-mobile,
427
- height: $toggle-switch-button-width-mobile,
428
- left: $toggle-switch-bar-padding-mobile,
429
- top: $toggle-switch-bar-padding-mobile,
430
- width: $toggle-switch-button-width-mobile,
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
- toggle-switch-icon: (
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
- // .toggle-switch-label
505
+ toggle-switch-text-left: (
506
+ line-height: $toggle-switch-bar-height-mobile,
507
+ ),
516
508
 
517
- $toggle-switch-label: ();
518
- $toggle-switch-label: map-merge(
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
- $toggle-switch-label
524
- );
525
-
526
- // .toggle-switch-text
527
-
528
- $toggle-switch-text: ();
529
- $toggle-switch-text: map-merge(
530
- (
531
- display: block,
532
- font-size:
533
- var(
534
- --toggle-switch-text-font-size,
535
- $toggle-switch-text-font-size
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
- #{clay-data-label-text-position(
585
- $toggle-switch-bar-width,
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
- $simple-toggle-switch
605
- );
600
+ ),
601
+ $simple-toggle-switch
602
+ );
606
603
 
607
- // .simple-toggle-switch-reverse
604
+ // .simple-toggle-switch-reverse
608
605
 
609
- $simple-toggle-switch-reverse: ();
610
- $simple-toggle-switch-reverse: map-deep-merge(
611
- (
612
- breakpoint-down: sm,
606
+ $simple-toggle-switch-reverse: () !default;
607
+ $simple-toggle-switch-reverse: map-deep-merge(
608
+ (
609
+ breakpoint-down: sm,
613
610
 
614
- toggle-switch-label: (
615
- margin-right: $simple-toggle-switch-label-spacer-x,
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
- toggle-switch-check-bar: (
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
- toggle-switch-check: (
623
- toggle-switch-bar: (
624
- order: 5,
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
- toggle-switch-check: (
644
- height: 16px,
645
- width: 30px,
640
+ toggle-switch-check: (
641
+ height: 16px,
642
+ width: 30px,
646
643
 
647
- toggle-switch-bar: (
648
- height: 16px,
649
- line-height: 16px,
644
+ toggle-switch-bar: (
645
+ height: 16px,
646
+ line-height: 16px,
650
647
 
651
- before: (
652
- width: 30px,
653
- ),
648
+ before: (
649
+ width: 30px,
650
+ ),
654
651
 
655
- after: (
656
- bottom: 0,
657
- height: 12px,
658
- left: 2px,
659
- top: 2px,
660
- width: 12px,
661
- ),
652
+ after: (
653
+ bottom: 0,
654
+ height: 12px,
655
+ left: 2px,
656
+ top: 2px,
657
+ width: 12px,
658
+ ),
662
659
 
663
- toggle-switch-handle: (
664
- min-width: 30px,
660
+ toggle-switch-handle: (
661
+ min-width: 30px,
665
662
 
666
- after: (
667
- margin-left: 34px,
668
- ),
663
+ after: (
664
+ margin-left: 34px,
669
665
  ),
666
+ ),
670
667
 
671
- toggle-switch-icon: (
672
- font-size: 8px,
673
- height: 16px,
674
- left: 0,
675
- line-height: 16px,
676
- top: 0px,
677
- width: 16px,
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
- toggle-switch-icon-off: (
681
- left: 13px,
682
- ),
677
+ toggle-switch-icon-off: (
678
+ left: 13px,
683
679
  ),
680
+ ),
684
681
 
685
- checked: (
686
- toggle-switch-bar: (
687
- after: (
688
- left: 16px,
689
- ),
682
+ checked: (
683
+ toggle-switch-bar: (
684
+ after: (
685
+ left: 16px,
686
+ ),
690
687
 
691
- button-icon: (
692
- left: 14px,
693
- ),
688
+ button-icon: (
689
+ left: 14px,
694
690
  ),
695
691
  ),
696
692
  ),
693
+ ),
697
694
 
698
- toggle-switch-label: (
699
- font-size: 12px,
700
- max-width: calc(100% - 38px),
701
- ),
695
+ toggle-switch-label: (
696
+ font-size: 12px,
697
+ max-width: calc(100% - 38px),
702
698
  ),
703
699
  ),
704
- $toggle-switch-sizes
705
- );
706
- }
700
+ ),
701
+ $toggle-switch-sizes
702
+ );