@clayui/css 3.39.0 → 3.42.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 (109) hide show
  1. package/lib/css/atlas.css +1127 -1387
  2. package/lib/css/atlas.css.map +1 -1
  3. package/lib/css/base.css +908 -1138
  4. package/lib/css/base.css.map +1 -1
  5. package/lib/css/bootstrap.css.map +1 -1
  6. package/lib/css/cadmin.css +1021 -1148
  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/_alerts.scss +10 -0
  14. package/src/scss/atlas/variables/_application-bar.scss +32 -12
  15. package/src/scss/atlas/variables/_breadcrumbs.scss +4 -2
  16. package/src/scss/atlas/variables/_cards.scss +2 -2
  17. package/src/scss/atlas/variables/_dropdowns.scss +179 -12
  18. package/src/scss/atlas/variables/_forms.scss +33 -1
  19. package/src/scss/atlas/variables/_globals.scss +13 -0
  20. package/src/scss/atlas/variables/_labels.scss +88 -56
  21. package/src/scss/atlas/variables/_management-bar.scss +53 -21
  22. package/src/scss/atlas/variables/_navigation-bar.scss +104 -18
  23. package/src/scss/atlas/variables/_navs.scss +20 -8
  24. package/src/scss/atlas/variables/_pagination.scss +4 -2
  25. package/src/scss/atlas/variables/_sheets.scss +4 -2
  26. package/src/scss/atlas/variables/_sidebar.scss +1 -1
  27. package/src/scss/atlas/variables/_tables.scss +58 -28
  28. package/src/scss/cadmin/components/_alerts.scss +1 -17
  29. package/src/scss/cadmin/components/_cards.scss +12 -14
  30. package/src/scss/cadmin/components/_dropdowns.scss +66 -196
  31. package/src/scss/cadmin/components/_form-validation.scss +10 -237
  32. package/src/scss/cadmin/components/_icons.scss +1 -6
  33. package/src/scss/cadmin/components/_input-groups.scss +17 -14
  34. package/src/scss/cadmin/components/_pagination.scss +20 -236
  35. package/src/scss/cadmin/components/_popovers.scss +31 -252
  36. package/src/scss/cadmin/components/_reboot.scss +1 -8
  37. package/src/scss/cadmin/components/_toggle-switch.scss +20 -358
  38. package/src/scss/cadmin/components/_tooltip.scss +29 -167
  39. package/src/scss/cadmin/components/_type.scss +9 -1
  40. package/src/scss/cadmin/variables/_alerts.scss +35 -11
  41. package/src/scss/cadmin/variables/_breadcrumbs.scss +10 -6
  42. package/src/scss/cadmin/variables/_cards.scss +91 -23
  43. package/src/scss/cadmin/variables/_dropdowns.scss +440 -71
  44. package/src/scss/cadmin/variables/_forms.scss +353 -2
  45. package/src/scss/cadmin/variables/_globals.scss +14 -0
  46. package/src/scss/cadmin/variables/_icons.scss +15 -2
  47. package/src/scss/cadmin/variables/_labels.scss +104 -72
  48. package/src/scss/cadmin/variables/_links.scss +9 -7
  49. package/src/scss/cadmin/variables/_management-bar.scss +70 -30
  50. package/src/scss/cadmin/variables/_navigation-bar.scss +118 -22
  51. package/src/scss/cadmin/variables/_pagination.scss +274 -68
  52. package/src/scss/cadmin/variables/_popovers.scss +410 -0
  53. package/src/scss/cadmin/variables/_sidebar.scss +17 -5
  54. package/src/scss/cadmin/variables/_toggle-switch.scss +404 -1
  55. package/src/scss/cadmin/variables/_tooltip.scss +299 -0
  56. package/src/scss/cadmin/variables/_type.scss +3 -0
  57. package/src/scss/components/_alerts.scss +5 -17
  58. package/src/scss/components/_button-groups.scss +6 -6
  59. package/src/scss/components/_cards.scss +5 -5
  60. package/src/scss/components/_dropdowns.scss +52 -200
  61. package/src/scss/components/_form-validation.scss +8 -237
  62. package/src/scss/components/_forms.scss +61 -4
  63. package/src/scss/components/_icons.scss +4 -9
  64. package/src/scss/components/_input-groups.scss +17 -14
  65. package/src/scss/components/_multi-step-nav.scss +12 -8
  66. package/src/scss/components/_pagination.scss +18 -234
  67. package/src/scss/components/_popovers.scss +30 -237
  68. package/src/scss/components/_reboot.scss +3 -39
  69. package/src/scss/components/_toggle-switch.scss +36 -351
  70. package/src/scss/components/_tooltip.scss +29 -164
  71. package/src/scss/components/_type.scss +9 -1
  72. package/src/scss/functions/_global-functions.scss +18 -0
  73. package/src/scss/functions/_lx-icons-generated.scss +1 -1
  74. package/src/scss/mixins/_alerts.scss +25 -0
  75. package/src/scss/mixins/_buttons.scss +827 -384
  76. package/src/scss/mixins/_cards.scss +610 -114
  77. package/src/scss/mixins/_close.scss +0 -1
  78. package/src/scss/mixins/_custom-forms.scss +46 -34
  79. package/src/scss/mixins/_dropdown-menu.scss +139 -53
  80. package/src/scss/mixins/_forms.scss +686 -252
  81. package/src/scss/mixins/_globals.scss +244 -234
  82. package/src/scss/mixins/_labels.scss +1 -1
  83. package/src/scss/mixins/_links.scss +795 -329
  84. package/src/scss/mixins/_navbar.scss +759 -140
  85. package/src/scss/mixins/_pagination.scss +422 -0
  86. package/src/scss/mixins/_popovers.scss +90 -0
  87. package/src/scss/mixins/_toggle-switch.scss +1140 -14
  88. package/src/scss/mixins/_tooltip.scss +70 -0
  89. package/src/scss/variables/_alerts.scss +34 -10
  90. package/src/scss/variables/_application-bar.scss +18 -6
  91. package/src/scss/variables/_breadcrumbs.scss +8 -4
  92. package/src/scss/variables/_cards.scss +40 -2
  93. package/src/scss/variables/_dropdowns.scss +570 -62
  94. package/src/scss/variables/_forms.scss +303 -1
  95. package/src/scss/variables/_globals.scss +53 -0
  96. package/src/scss/variables/_icons.scss +60 -9
  97. package/src/scss/variables/_labels.scss +120 -88
  98. package/src/scss/variables/_links.scss +15 -13
  99. package/src/scss/variables/_management-bar.scss +45 -12
  100. package/src/scss/variables/_navigation-bar.scss +95 -14
  101. package/src/scss/variables/_navs.scss +33 -13
  102. package/src/scss/variables/_pagination.scss +267 -65
  103. package/src/scss/variables/_popovers.scss +392 -0
  104. package/src/scss/variables/_sheets.scss +4 -2
  105. package/src/scss/variables/_sidebar.scss +17 -5
  106. package/src/scss/variables/_tables.scss +24 -8
  107. package/src/scss/variables/_toggle-switch.scss +404 -5
  108. package/src/scss/variables/_tooltip.scss +299 -0
  109. package/src/scss/variables/_type.scss +3 -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
  }
@@ -202,7 +202,7 @@ strong {
202
202
  @include clay-css($c-kbd-group);
203
203
 
204
204
  > .c-kbd {
205
- font-size: inherit;
205
+ @include clay-css(setter(map-get($c-kbd-group, c-kbd), ()));
206
206
  }
207
207
  }
208
208
 
@@ -265,6 +265,10 @@ strong {
265
265
 
266
266
  .c-kbd-group-sm {
267
267
  @include clay-css($c-kbd-group-sm);
268
+
269
+ > .c-kbd {
270
+ @include clay-css(setter(map-get($c-kbd-group-sm, c-kbd), ()));
271
+ }
268
272
  }
269
273
 
270
274
  .c-kbd-sm,
@@ -280,6 +284,10 @@ strong {
280
284
 
281
285
  .c-kbd-group-lg {
282
286
  @include clay-css($c-kbd-group-lg);
287
+
288
+ > .c-kbd {
289
+ @include clay-css(setter(map-get($c-kbd-group-lg, c-kbd), ()));
290
+ }
283
291
  }
284
292
 
285
293
  .c-kbd-lg,
@@ -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[()]