@clayui/css 3.40.0 → 3.43.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 (88) hide show
  1. package/lib/css/atlas.css +1199 -1285
  2. package/lib/css/atlas.css.map +1 -1
  3. package/lib/css/base.css +1037 -1095
  4. package/lib/css/base.css.map +1 -1
  5. package/lib/css/bootstrap.css.map +1 -1
  6. package/lib/css/cadmin.css +1036 -1163
  7. package/lib/css/cadmin.css.map +1 -1
  8. package/lib/images/icons/filter.svg +1 -1
  9. package/lib/images/icons/icons.svg +1 -1
  10. package/package.json +2 -2
  11. package/src/images/icons/filter.svg +1 -1
  12. package/src/scss/_mixins.scss +2 -0
  13. package/src/scss/atlas/variables/_application-bar.scss +32 -12
  14. package/src/scss/atlas/variables/_buttons.scss +2 -31
  15. package/src/scss/atlas/variables/_forms.scss +33 -1
  16. package/src/scss/atlas/variables/_globals.scss +13 -0
  17. package/src/scss/atlas/variables/_management-bar.scss +53 -21
  18. package/src/scss/atlas/variables/_navigation-bar.scss +104 -18
  19. package/src/scss/atlas/variables/_navs.scss +20 -15
  20. package/src/scss/atlas/variables/_pagination.scss +2 -0
  21. package/src/scss/atlas/variables/_sidebar.scss +1 -1
  22. package/src/scss/{_atlas-variables.scss → atlas-variables.scss} +0 -0
  23. package/src/scss/{_base-variables.scss → base-variables.scss} +0 -0
  24. package/src/scss/cadmin/components/_dropdowns.scss +4 -0
  25. package/src/scss/cadmin/components/_form-validation.scss +10 -237
  26. package/src/scss/cadmin/components/_input-groups.scss +11 -313
  27. package/src/scss/cadmin/components/_navs.scss +23 -113
  28. package/src/scss/cadmin/components/_pagination.scss +20 -236
  29. package/src/scss/cadmin/components/_popovers.scss +31 -252
  30. package/src/scss/cadmin/components/_reboot.scss +1 -8
  31. package/src/scss/cadmin/components/_toggle-switch.scss +20 -358
  32. package/src/scss/cadmin/components/_tooltip.scss +29 -167
  33. package/src/scss/cadmin/components/_utilities-functional-important.scss +4 -3
  34. package/src/scss/cadmin/variables/_alerts.scss +3 -2
  35. package/src/scss/cadmin/variables/_dropdowns.scss +31 -2
  36. package/src/scss/cadmin/variables/_forms.scss +719 -7
  37. package/src/scss/cadmin/variables/_globals.scss +14 -0
  38. package/src/scss/cadmin/variables/_management-bar.scss +70 -30
  39. package/src/scss/cadmin/variables/_navigation-bar.scss +118 -22
  40. package/src/scss/cadmin/variables/_navs.scss +227 -52
  41. package/src/scss/cadmin/variables/_pagination.scss +274 -68
  42. package/src/scss/cadmin/variables/_popovers.scss +410 -0
  43. package/src/scss/cadmin/variables/_sidebar.scss +17 -5
  44. package/src/scss/cadmin/variables/_toggle-switch.scss +404 -1
  45. package/src/scss/cadmin/variables/_tooltip.scss +299 -0
  46. package/src/scss/components/_button-groups.scss +6 -6
  47. package/src/scss/components/_buttons.scss +87 -49
  48. package/src/scss/components/_dropdowns.scss +4 -0
  49. package/src/scss/components/_form-validation.scss +8 -237
  50. package/src/scss/components/_input-groups.scss +12 -308
  51. package/src/scss/components/_multi-step-nav.scss +12 -8
  52. package/src/scss/components/_navs.scss +33 -128
  53. package/src/scss/components/_pagination.scss +18 -234
  54. package/src/scss/components/_popovers.scss +30 -237
  55. package/src/scss/components/_reboot.scss +1 -8
  56. package/src/scss/components/_toggle-switch.scss +36 -351
  57. package/src/scss/components/_tooltip.scss +29 -164
  58. package/src/scss/functions/_global-functions.scss +18 -0
  59. package/src/scss/functions/_lx-icons-generated.scss +1 -1
  60. package/src/scss/mixins/_buttons.scss +674 -472
  61. package/src/scss/mixins/_close.scss +0 -1
  62. package/src/scss/mixins/_custom-forms.scss +46 -34
  63. package/src/scss/mixins/_dropdown-menu.scss +483 -406
  64. package/src/scss/mixins/_forms.scss +751 -260
  65. package/src/scss/mixins/_globals.scss +7 -0
  66. package/src/scss/mixins/_input-groups.scss +405 -11
  67. package/src/scss/mixins/_labels.scss +320 -296
  68. package/src/scss/mixins/_links.scss +645 -414
  69. package/src/scss/mixins/_nav.scss +202 -131
  70. package/src/scss/mixins/_navbar.scss +759 -140
  71. package/src/scss/mixins/_pagination.scss +422 -0
  72. package/src/scss/mixins/_popovers.scss +90 -0
  73. package/src/scss/mixins/_toggle-switch.scss +1140 -14
  74. package/src/scss/mixins/_tooltip.scss +70 -0
  75. package/src/scss/variables/_alerts.scss +1 -0
  76. package/src/scss/variables/_application-bar.scss +18 -6
  77. package/src/scss/variables/_buttons.scss +26 -3
  78. package/src/scss/variables/_dropdowns.scss +31 -2
  79. package/src/scss/variables/_forms.scss +700 -23
  80. package/src/scss/variables/_globals.scss +13 -0
  81. package/src/scss/variables/_management-bar.scss +45 -12
  82. package/src/scss/variables/_navigation-bar.scss +95 -14
  83. package/src/scss/variables/_navs.scss +223 -32
  84. package/src/scss/variables/_pagination.scss +261 -61
  85. package/src/scss/variables/_popovers.scss +392 -0
  86. package/src/scss/variables/_sidebar.scss +17 -5
  87. package/src/scss/variables/_toggle-switch.scss +404 -5
  88. package/src/scss/variables/_tooltip.scss +299 -0
@@ -1,386 +1,71 @@
1
- // Simple Toggle Switch
2
-
3
- .simple-toggle-switch {
4
- &.toggle-switch {
5
- align-items: center;
6
- display: inline-flex;
7
- }
8
-
9
- .toggle-switch-check + .toggle-switch-label {
10
- margin-right: $simple-toggle-switch-label-spacer-x;
11
- }
12
-
13
- .toggle-switch-label + .toggle-switch-check-bar {
14
- margin-left: $simple-toggle-switch-label-spacer-x;
15
- }
16
-
17
- .toggle-switch-label {
18
- line-height: $simple-toggle-switch-label-line-height;
19
- margin-bottom: 0;
20
- max-width: calc(
21
- 100% - #{clay-data-label-text-position(
22
- $toggle-switch-bar-width,
23
- $toggle-switch-bar-padding
24
- )}
25
- );
26
-
27
- @include clay-scale-component {
28
- max-width: calc(
29
- 100% - #{clay-data-label-text-position(
30
- $toggle-switch-bar-width-mobile,
31
- $toggle-switch-bar-padding-mobile
32
- )}
33
- );
34
- }
35
- }
36
- }
37
-
38
- .simple-toggle-switch-reverse {
39
- .toggle-switch-label {
40
- margin-right: $simple-toggle-switch-label-spacer-x;
41
- }
42
-
43
- .toggle-switch-check-bar {
44
- order: 5;
45
-
46
- .toggle-switch-bar {
47
- order: 0;
48
- }
49
- }
50
-
51
- .toggle-switch-bar {
52
- order: 5;
53
- }
54
- }
55
-
56
1
  // Toggle Switch
57
2
 
58
- label.toggle-switch {
59
- cursor: $toggle-switch-cursor;
60
-
61
- &.disabled {
62
- cursor: $toggle-switch-disabled-cursor;
63
- }
64
- }
65
-
66
3
  .toggle-switch {
67
- display: inline-block;
68
- font-weight: $toggle-switch-font-weight;
69
- max-width: 100%;
70
- position: relative;
71
-
72
- &.disabled {
73
- .toggle-switch-label {
74
- color: $toggle-switch-label-disabled-color;
75
- cursor: $toggle-switch-disabled-cursor;
76
- }
77
-
78
- .toggle-switch-text {
79
- color: $toggle-switch-text-disabled-color;
80
- }
81
- }
4
+ @include clay-toggle-switch-variant($toggle-switch);
82
5
  }
83
6
 
84
7
  .toggle-switch-check-bar {
85
- display: inline-flex;
86
- position: relative;
8
+ @include clay-css($toggle-switch-check-bar);
87
9
  }
88
10
 
89
11
  .toggle-switch-bar {
90
- .toggle-switch-handle {
91
- display: block;
92
- min-width: $toggle-switch-bar-width;
93
- text-transform: uppercase;
94
- }
95
-
96
- .toggle-switch-icon {
97
- font-size: $toggle-switch-bar-font-size;
98
-
99
- .lexicon-icon {
100
- margin-top: -0.2em;
101
- }
102
- }
103
-
104
- .button-icon {
105
- font-size: $toggle-switch-button-font-size;
106
- }
12
+ @include clay-toggle-switch-bar-variant($toggle-switch-bar);
107
13
  }
108
14
 
109
15
  .toggle-switch-check {
110
- bottom: 0;
111
- font-size: 62.5%;
112
- height: $toggle-switch-bar-height;
113
- opacity: 0;
114
- position: absolute;
115
- width: $toggle-switch-bar-width;
116
- z-index: 2;
117
-
118
- @include clay-scale-component {
119
- height: $toggle-switch-bar-height-mobile;
120
- width: $toggle-switch-bar-width-mobile;
121
- }
122
-
123
- &:empty ~ .toggle-switch-bar {
124
- display: inline-flex;
125
- font-size: $toggle-switch-bar-font-size;
126
- height: $toggle-switch-bar-height;
127
- line-height: $toggle-switch-bar-height;
128
- position: relative;
129
- text-indent: 0;
130
-
131
- -ms-user-select: none;
132
- user-select: none;
133
-
134
- &:after {
135
- background-color: $toggle-switch-button-bg;
136
- border-color: $toggle-switch-button-border-color;
137
-
138
- @include border-radius($toggle-switch-button-border-radius);
139
-
140
- border-style: solid;
141
- border-width: $toggle-switch-button-border-width;
142
- bottom: $toggle-switch-bar-padding;
143
- content: '';
144
- display: block;
145
- height: $toggle-switch-button-width;
146
- left: $toggle-switch-bar-padding;
147
- position: absolute;
148
- top: $toggle-switch-bar-padding;
149
- transition: $toggle-switch-transition;
150
- width: $toggle-switch-button-width;
151
- }
152
-
153
- &:before {
154
- background-color: $toggle-switch-bar-bg;
155
- border-color: $toggle-switch-bar-border-color;
156
-
157
- @include border-radius($toggle-switch-bar-border-radius);
158
-
159
- border-style: solid;
160
- border-width: $toggle-switch-bar-border-width;
161
- bottom: 0;
162
- content: ' ';
163
- display: block;
164
- left: 0;
165
- position: absolute;
166
- top: 0;
167
- transition: $toggle-switch-transition;
168
- width: $toggle-switch-bar-width;
169
- }
170
-
171
- .toggle-switch-handle {
172
- &:after {
173
- content: attr(data-label-off);
174
- margin-left: clay-data-label-text-position(
175
- $toggle-switch-bar-width,
176
- $toggle-switch-bar-padding
177
- );
178
- transition: $toggle-switch-transition;
179
- white-space: nowrap;
180
- }
181
-
182
- &:before {
183
- transition: $toggle-switch-transition;
184
- }
185
- }
186
-
187
- .toggle-switch-icon {
188
- color: $toggle-switch-bar-icon-color;
189
- left: $toggle-switch-bar-padding;
190
- line-height: $toggle-switch-button-width;
191
- position: absolute;
192
- text-align: center;
193
- text-indent: 0;
194
- top: $toggle-switch-bar-padding;
195
- transition: $toggle-switch-transition;
196
- width: $toggle-switch-button-width;
197
- z-index: 1;
198
- }
199
-
200
- .toggle-switch-icon-on {
201
- left: $toggle-switch-bar-padding;
202
- opacity: 0;
203
- }
204
-
205
- .toggle-switch-icon-off {
206
- left: $toggle-switch-bar-width - $toggle-switch-bar-padding -
207
- $toggle-switch-button-width;
208
- }
209
-
210
- .button-icon {
211
- color: $toggle-switch-button-icon-color;
212
- }
213
-
214
- .button-icon-on {
215
- opacity: 0;
216
- }
217
- }
218
-
219
- &:checked ~ .toggle-switch-bar {
220
- &:after {
221
- background-color: $toggle-switch-button-on-bg;
222
- border-color: $toggle-switch-button-on-border-color;
223
-
224
- @include border-radius($toggle-switch-button-on-border-radius);
225
-
226
- border-style: solid;
227
- border-width: $toggle-switch-button-border-width;
228
- left: $toggle-switch-bar-width - $toggle-switch-bar-padding -
229
- $toggle-switch-button-width;
230
- }
231
-
232
- &:before {
233
- background-color: $toggle-switch-bar-on-bg;
234
- border-color: $toggle-switch-bar-on-border-color;
235
-
236
- @include border-radius($toggle-switch-bar-border-radius);
237
-
238
- border-style: solid;
239
- border-width: $toggle-switch-bar-border-width;
240
- }
241
-
242
- .toggle-switch-handle:after {
243
- content: attr(data-label-on);
244
- }
245
-
246
- .toggle-switch-icon {
247
- color: $toggle-switch-bar-on-icon-color;
248
- }
249
-
250
- .button-icon {
251
- color: $toggle-switch-button-on-icon-color;
252
- left: $toggle-switch-bar-width - $toggle-switch-bar-padding -
253
- $toggle-switch-button-width;
254
- }
255
-
256
- .button-icon-on,
257
- .toggle-switch-icon-on {
258
- opacity: 1;
259
- }
260
-
261
- .button-icon-off,
262
- .toggle-switch-icon-off {
263
- opacity: 0;
264
- }
265
- }
266
-
267
- &:disabled,
268
- &.disabled {
269
- ~ .toggle-switch-bar {
270
- cursor: $toggle-switch-disabled-cursor;
271
- opacity: $toggle-switch-disabled-opacity;
272
- }
273
- }
274
-
275
- &:focus ~ .toggle-switch-bar:before {
276
- box-shadow: $toggle-switch-bar-focus-box-shadow;
277
- }
16
+ @include clay-toggle-switch-check-variant($toggle-switch-check);
278
17
  }
279
18
 
280
19
  .toggle-switch-label {
281
- display: block;
282
- margin-bottom: 2px;
20
+ @include clay-css($toggle-switch-label);
283
21
  }
284
22
 
285
23
  .toggle-switch-text {
286
- display: block;
287
- font-size: $toggle-switch-text-font-size;
24
+ @include clay-css($toggle-switch-text);
288
25
  }
289
26
 
290
27
  .toggle-switch-text-left {
291
- display: inline-flex;
292
- line-height: $toggle-switch-bar-height;
293
- margin-right: 8px;
294
- }
28
+ $breakpoint-down: setter(
29
+ map-get($toggle-switch-text-left, breakpoint-down),
30
+ sm
31
+ );
295
32
 
296
- .toggle-switch-text-right {
297
- display: inline-flex;
298
- line-height: $toggle-switch-bar-height;
299
- margin-left: 8px;
300
- }
33
+ @include clay-css($toggle-switch-text-left);
301
34
 
302
- @include clay-scale-component {
303
- .toggle-switch-bar {
304
- .toggle-switch-handle {
305
- min-width: $toggle-switch-bar-width-mobile;
306
- }
307
-
308
- .toggle-switch-icon {
309
- font-size: $toggle-switch-bar-font-size-mobile;
310
- }
311
-
312
- .button-icon {
313
- font-size: $toggle-switch-button-font-size-mobile;
314
- }
35
+ @include media-breakpoint-down($breakpoint-down) {
36
+ @include clay-css(map-get($toggle-switch-text-left, mobile));
315
37
  }
38
+ }
316
39
 
317
- .toggle-switch-check {
318
- &:empty ~ .toggle-switch-bar {
319
- height: $toggle-switch-bar-height-mobile;
320
- line-height: $toggle-switch-bar-height-mobile;
321
- text-indent: 0;
322
-
323
- &:after {
324
- bottom: $toggle-switch-bar-padding-mobile;
325
- height: $toggle-switch-button-width-mobile;
326
- left: $toggle-switch-bar-padding-mobile;
327
- top: $toggle-switch-bar-padding-mobile;
328
- width: $toggle-switch-button-width-mobile;
329
- }
330
-
331
- &:before {
332
- width: $toggle-switch-bar-width-mobile;
333
- }
334
-
335
- .toggle-switch-handle:after {
336
- margin-left: clay-data-label-text-position(
337
- $toggle-switch-bar-width-mobile,
338
- $toggle-switch-bar-padding-mobile
339
- );
340
- }
40
+ .toggle-switch-text-right {
41
+ $breakpoint-down: setter(
42
+ map-get($toggle-switch-text-right, breakpoint-down),
43
+ sm
44
+ );
341
45
 
342
- .toggle-switch-icon {
343
- left: $toggle-switch-bar-padding-mobile;
344
- line-height: $toggle-switch-button-width-mobile;
345
- top: $toggle-switch-bar-padding-mobile;
346
- width: $toggle-switch-button-width-mobile;
347
- }
46
+ @include clay-css($toggle-switch-text-right);
348
47
 
349
- .toggle-switch-icon-on {
350
- left: $toggle-switch-bar-padding-mobile;
351
- }
48
+ @include media-breakpoint-down($breakpoint-down) {
49
+ @include clay-css(map-get($toggle-switch-text-right, mobile));
50
+ }
51
+ }
352
52
 
353
- .toggle-switch-icon-off {
354
- left: $toggle-switch-bar-width-mobile -
355
- $toggle-switch-bar-padding-mobile -
356
- $toggle-switch-button-width-mobile;
357
- }
358
- }
53
+ // Simple Toggle Switch
359
54
 
360
- &:checked ~ .toggle-switch-bar {
361
- &:after {
362
- left: $toggle-switch-bar-width-mobile -
363
- $toggle-switch-bar-padding-mobile -
364
- $toggle-switch-button-width-mobile;
365
- }
55
+ .simple-toggle-switch.toggle-switch {
56
+ @include clay-toggle-switch-variant($simple-toggle-switch);
366
57
 
367
- .toggle-switch-handle:after {
368
- margin-left: clay-data-label-text-position(
369
- $toggle-switch-bar-width-mobile,
370
- $toggle-switch-bar-padding-mobile
371
- );
372
- }
58
+ // deprecated
373
59
 
374
- .button-icon {
375
- left: $toggle-switch-bar-width-mobile -
376
- $toggle-switch-bar-padding-mobile -
377
- $toggle-switch-button-width-mobile;
378
- }
379
- }
60
+ .toggle-switch-check + .toggle-switch-label {
61
+ margin-right: $simple-toggle-switch-label-spacer-x;
380
62
  }
381
63
 
382
- .toggle-switch-text-left,
383
- .toggle-switch-text-right {
384
- line-height: $toggle-switch-bar-height-mobile;
64
+ .toggle-switch-label + .toggle-switch-check-bar {
65
+ margin-left: $simple-toggle-switch-label-spacer-x;
385
66
  }
386
67
  }
68
+
69
+ .simple-toggle-switch-reverse.simple-toggle-switch {
70
+ @include clay-toggle-switch-variant($simple-toggle-switch-reverse);
71
+ }
@@ -1,56 +1,9 @@
1
1
  .tooltip {
2
- display: block;
3
- font-family: $font-family-base;
4
- font-size: $tooltip-font-size;
5
- font-style: normal;
6
- font-weight: $font-weight-normal;
7
- letter-spacing: normal;
8
- line-break: auto;
9
- line-height: $line-height-base;
10
- margin: $tooltip-margin;
11
- opacity: 0;
12
- position: absolute;
13
- text-align: left;
14
- text-align: start;
15
- text-decoration: none;
16
- text-shadow: none;
17
- text-transform: none;
18
- white-space: normal;
19
- word-break: normal;
20
- word-spacing: normal;
21
- word-wrap: break-word;
22
- z-index: $zindex-tooltip;
23
-
24
- &.show {
25
- opacity: $tooltip-opacity;
26
- }
27
-
28
- .arrow {
29
- display: block;
30
- height: $tooltip-arrow-height;
31
- position: absolute;
32
- width: $tooltip-arrow-width;
33
-
34
- &::before {
35
- border-color: transparent;
36
- border-style: solid;
37
- content: '';
38
- position: absolute;
39
- }
40
- }
2
+ @include clay-tooltip-variant($tooltip);
41
3
  }
42
4
 
43
5
  .tooltip-inner {
44
- background-color: $tooltip-bg;
45
-
46
- @include border-radius($tooltip-border-radius);
47
- @include box-shadow($tooltip-box-shadow);
48
-
49
- color: $tooltip-color;
50
- max-width: $tooltip-max-width;
51
- padding: $tooltip-padding-y $tooltip-padding-x;
52
- text-align: center;
53
- white-space: pre-line;
6
+ @include clay-css($tooltip-inner);
54
7
  }
55
8
 
56
9
  .tooltip-arrow {
@@ -143,75 +96,20 @@
143
96
  @extend %bs-tooltip-left !optional;
144
97
  }
145
98
 
146
- // Tooltip Positions
99
+ // Bottom
147
100
 
148
101
  .clay-tooltip-bottom,
149
- .clay-tooltip-top {
150
- .arrow {
151
- left: 50%;
152
- margin-left: math-sign($tooltip-arrow-width * 0.5);
153
- }
154
- }
155
-
156
102
  .clay-tooltip-bottom-left,
157
- .clay-tooltip-top-left {
158
- .arrow {
159
- left: $tooltip-arrow-offset;
160
- }
161
- }
162
-
163
- .clay-tooltip-bottom-right,
164
- .clay-tooltip-top-right {
165
- .arrow {
166
- right: $tooltip-arrow-offset;
167
- }
168
- }
169
-
170
- .clay-tooltip-left,
171
- .clay-tooltip-right {
172
- .arrow {
173
- margin-top: math-sign($tooltip-arrow-width * 0.5);
174
- top: 50%;
175
- }
176
- }
177
-
178
- .clay-tooltip-left-bottom,
179
- .clay-tooltip-right-bottom {
180
- .arrow {
181
- bottom: $tooltip-arrow-offset;
182
- }
103
+ .clay-tooltip-bottom-right {
104
+ @include clay-tooltip-variant($clay-tooltip-bottom);
183
105
  }
184
106
 
185
- .clay-tooltip-left-top,
186
- .clay-tooltip-right-top {
187
- .arrow {
188
- top: $tooltip-arrow-offset;
189
- }
107
+ .clay-tooltip-bottom-left {
108
+ @include clay-tooltip-variant($clay-tooltip-bottom-left);
190
109
  }
191
110
 
192
- // Bottom
193
-
194
- .clay-tooltip-bottom,
195
- .clay-tooltip-bottom-left,
196
111
  .clay-tooltip-bottom-right {
197
- padding-top: $tooltip-arrow-height;
198
-
199
- .arrow {
200
- top: 0;
201
-
202
- &::before {
203
- border-bottom-color: $tooltip-arrow-color;
204
- border-width: 0 ($tooltip-arrow-width * 0.5) $tooltip-arrow-height;
205
- bottom: 0;
206
- }
207
- }
208
-
209
- .tooltip-arrow {
210
- border-bottom-color: transparent;
211
- border-right-color: transparent;
212
- left: 50%;
213
- top: 0;
214
- }
112
+ @include clay-tooltip-variant($clay-tooltip-bottom-right);
215
113
  }
216
114
 
217
115
  // Left
@@ -219,27 +117,15 @@
219
117
  .clay-tooltip-left,
220
118
  .clay-tooltip-left-bottom,
221
119
  .clay-tooltip-left-top {
222
- padding-right: $tooltip-arrow-height;
223
-
224
- .arrow {
225
- height: $tooltip-arrow-width;
226
- right: 0;
227
- width: $tooltip-arrow-height;
120
+ @include clay-tooltip-variant($clay-tooltip-left);
121
+ }
228
122
 
229
- &::before {
230
- border-left-color: $tooltip-arrow-color;
231
- border-width: ($tooltip-arrow-width * 0.5) 0
232
- ($tooltip-arrow-width * 0.5) $tooltip-arrow-height;
233
- left: 0;
234
- }
235
- }
123
+ .clay-tooltip-left-bottom {
124
+ @include clay-tooltip-variant($clay-tooltip-left-bottom);
125
+ }
236
126
 
237
- .tooltip-arrow {
238
- border-bottom-color: transparent;
239
- border-left-color: transparent;
240
- right: 0;
241
- top: 50%;
242
- }
127
+ .clay-tooltip-left-top {
128
+ @include clay-tooltip-variant($clay-tooltip-left-top);
243
129
  }
244
130
 
245
131
  // Right
@@ -247,27 +133,15 @@
247
133
  .clay-tooltip-right,
248
134
  .clay-tooltip-right-bottom,
249
135
  .clay-tooltip-right-top {
250
- padding-left: $tooltip-arrow-height;
251
-
252
- .arrow {
253
- height: $tooltip-arrow-width;
254
- left: 0;
255
- width: $tooltip-arrow-height;
136
+ @include clay-tooltip-variant($clay-tooltip-right);
137
+ }
256
138
 
257
- &::before {
258
- border-right-color: $tooltip-arrow-color;
259
- border-width: ($tooltip-arrow-width * 0.5) $tooltip-arrow-height
260
- ($tooltip-arrow-width * 0.5) 0;
261
- right: 0;
262
- }
263
- }
139
+ .clay-tooltip-right-bottom {
140
+ @include clay-tooltip-variant($clay-tooltip-right-bottom);
141
+ }
264
142
 
265
- .tooltip-arrow {
266
- border-right-color: transparent;
267
- border-top-color: transparent;
268
- left: 0;
269
- top: 50%;
270
- }
143
+ .clay-tooltip-right-top {
144
+ @include clay-tooltip-variant($clay-tooltip-right-top);
271
145
  }
272
146
 
273
147
  // Top
@@ -275,22 +149,13 @@
275
149
  .clay-tooltip-top,
276
150
  .clay-tooltip-top-left,
277
151
  .clay-tooltip-top-right {
278
- padding-bottom: $tooltip-arrow-height;
279
-
280
- .arrow {
281
- bottom: 0;
152
+ @include clay-tooltip-variant($clay-tooltip-top);
153
+ }
282
154
 
283
- &::before {
284
- border-top-color: $tooltip-arrow-color;
285
- border-width: $tooltip-arrow-height ($tooltip-arrow-width * 0.5) 0;
286
- top: 0;
287
- }
288
- }
155
+ .clay-tooltip-top-left {
156
+ @include clay-tooltip-variant($clay-tooltip-top-left);
157
+ }
289
158
 
290
- .tooltip-arrow {
291
- border-left-color: transparent;
292
- border-top-color: transparent;
293
- bottom: 0;
294
- left: 50%;
295
- }
159
+ .clay-tooltip-top-right {
160
+ @include clay-tooltip-variant($clay-tooltip-top-right);
296
161
  }
@@ -8,6 +8,24 @@
8
8
  @import '_lx-icons-generated.scss';
9
9
  @import '_type-conversion-functions.scss';
10
10
 
11
+ /// A helper function that calculates text-indent of data-label-on and data-label-off in a `.toggle-switch`.
12
+ /// @param {Number} $toggle-switch-width - Width of switch bar
13
+ /// @param {Number} $toggle-switch-padding - Space between button and bar
14
+ /// @param {Number} $label-spacer-x[8px] - Space between toggle-switch-bar and data-label
15
+
16
+ @function clay-data-label-text-position(
17
+ $toggle-switch-width,
18
+ $toggle-switch-padding,
19
+ $label-spacer-x: 8px
20
+ ) {
21
+ @if ($toggle-switch-padding < 0) {
22
+ $toggle-switch-width: $toggle-switch-width +
23
+ abs($toggle-switch-padding);
24
+ }
25
+
26
+ @return $toggle-switch-width + $label-spacer-x;
27
+ }
28
+
11
29
  /// A function that returns a new map with all the keys and values including nested keys and values from both `$map1` and `$map2`. If both `$map1` and `$map2` have the same key, `$map2`’s value takes precedence.
12
30
  /// @param {Map, Null} $map1[()]
13
31
  /// @param {Map, Null} $map2[()]
@@ -300,7 +300,7 @@
300
300
 
301
301
  'file-xsl': '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path class="lexicon-icon-outline file-xsl-border1" d="M96 192V64h224v64c0 19.2 12.8 32 32 32h64v32h64v-38.4c0-32-19.2-44.8-64-89.6S358.4 0 326.4 0H96C60.8 0 32 28.8 32 64v128h64z" fill="#{$color}"/><path class="lexicon-icon-outline file-xsl-border2" d="M32 448c0 35.2 28.8 64 64 64h320c35.2 0 64-28.8 64-64H32z" fill="#{$color}"/><path class="lexicon-icon-outline file-xsl-x" d="m80 326.4-44.8-83.2H80l26.2 52.1 24.9-52.1h41.6L128 326.4l48 89.6h-44.8l-28.8-64-28.8 64H32l48-89.6z" fill="#{$color}"/><path class="lexicon-icon-outline file-xsl-s" d="m198.4 393.6 22.4-25.6c12.8 12.8 64 28.8 67.2 0 3.2-22.4-83.2-19.2-83.2-76.8 0-48 73.6-73.6 115.2-28.8L304 288c-25.6-19.2-60.8-16-60.8 3.2 0 25.6 86.4 16 86.4 76.8 0 57.6-70.4 73.6-131.2 25.6z" fill="#{$color}"/><path class="lexicon-icon-outline file-xsl-l" d="M374.4 243.2h38.4V384H480v32H374.4V243.2z" fill="#{$color}"/></svg>',
302
302
 
303
- 'filter': '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path class="lexicon-icon-outline filter-border" d="M448.1 89.9V156L256 316.1 63.9 156V89.9h384.2m32.1-64H31.8c-17.7 0-32 14.3-32 32V186L192 346.1v108.3c0 18.6 18.5 40.8 46.3 28.6l64-32c10.8-5.4 17.7-16.5 17.7-28.6v-76.3L512.2 186V57.9c0-17.7-14.3-32-32-32z" fill="#{$color}"/></svg>',
303
+ 'filter': '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path class="lexicon-icon-outline filter-body" d="M448 160H63.9c-42.5 0-42.5-64 0-64H448c42.7 0 42.7 64 0 64zm-64 64H128c-42.7 0-42.7 64 0 64h256c42.7 0 42.7-64 0-64zm-64 128H192c-42.7 0-42.7 64 0 64h128c42.7 0 42.7-64 0-64z" fill="#{$color}"/></svg>',
304
304
 
305
305
  'flag-empty': '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path class="lexicon-icon-outline" d="M384 32H128c0-42.4-64-42.9-64 0v448c0 42.6 64 42.7 64 0V288h256c18.2 0 32-13.8 32-32V64c0-18.2-13.8-32-32-32zm-32 192H128V96h224v128z" fill="#{$color}"/></svg>',
306
306