@clayui/css 3.40.1 → 3.44.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 (91) hide show
  1. package/lib/css/atlas.css +1369 -1347
  2. package/lib/css/atlas.css.map +1 -1
  3. package/lib/css/base.css +1196 -1146
  4. package/lib/css/base.css.map +1 -1
  5. package/lib/css/bootstrap.css.map +1 -1
  6. package/lib/css/cadmin.css +1104 -1097
  7. package/lib/css/cadmin.css.map +1 -1
  8. package/lib/images/icons/date-time.svg +12 -0
  9. package/lib/images/icons/filter.svg +1 -1
  10. package/lib/images/icons/icons.svg +1 -1
  11. package/package.json +2 -2
  12. package/src/images/icons/date-time.svg +12 -0
  13. package/src/images/icons/filter.svg +1 -1
  14. package/src/scss/_mixins.scss +2 -0
  15. package/src/scss/atlas/variables/_application-bar.scss +32 -12
  16. package/src/scss/atlas/variables/_buttons.scss +2 -31
  17. package/src/scss/atlas/variables/_forms.scss +33 -1
  18. package/src/scss/atlas/variables/_globals.scss +13 -0
  19. package/src/scss/atlas/variables/_management-bar.scss +53 -21
  20. package/src/scss/atlas/variables/_navigation-bar.scss +104 -18
  21. package/src/scss/atlas/variables/_navs.scss +20 -15
  22. package/src/scss/atlas/variables/_pagination.scss +2 -0
  23. package/src/scss/atlas/variables/_sidebar.scss +1 -1
  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 +12 -312
  27. package/src/scss/cadmin/components/_navs.scss +35 -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 +270 -53
  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/_cards.scss +16 -116
  49. package/src/scss/components/_dropdowns.scss +4 -0
  50. package/src/scss/components/_form-validation.scss +8 -237
  51. package/src/scss/components/_input-groups.scss +12 -308
  52. package/src/scss/components/_multi-step-nav.scss +12 -8
  53. package/src/scss/components/_navs.scss +45 -128
  54. package/src/scss/components/_pagination.scss +18 -234
  55. package/src/scss/components/_popovers.scss +30 -237
  56. package/src/scss/components/_reboot.scss +1 -8
  57. package/src/scss/components/_toggle-switch.scss +36 -351
  58. package/src/scss/components/_tooltip.scss +29 -164
  59. package/src/scss/functions/_global-functions.scss +18 -0
  60. package/src/scss/functions/_lx-icons-generated.scss +3 -1
  61. package/src/scss/mixins/_buttons.scss +674 -472
  62. package/src/scss/mixins/_cards.scss +746 -560
  63. package/src/scss/mixins/_close.scss +0 -1
  64. package/src/scss/mixins/_custom-forms.scss +442 -409
  65. package/src/scss/mixins/_dropdown-menu.scss +483 -406
  66. package/src/scss/mixins/_forms.scss +751 -260
  67. package/src/scss/mixins/_globals.scss +7 -0
  68. package/src/scss/mixins/_input-groups.scss +405 -11
  69. package/src/scss/mixins/_labels.scss +320 -296
  70. package/src/scss/mixins/_links.scss +645 -414
  71. package/src/scss/mixins/_nav.scss +202 -131
  72. package/src/scss/mixins/_navbar.scss +791 -140
  73. package/src/scss/mixins/_pagination.scss +422 -0
  74. package/src/scss/mixins/_popovers.scss +90 -0
  75. package/src/scss/mixins/_toggle-switch.scss +1140 -14
  76. package/src/scss/mixins/_tooltip.scss +70 -0
  77. package/src/scss/variables/_alerts.scss +1 -0
  78. package/src/scss/variables/_application-bar.scss +18 -6
  79. package/src/scss/variables/_buttons.scss +26 -3
  80. package/src/scss/variables/_cards.scss +273 -1
  81. package/src/scss/variables/_dropdowns.scss +31 -2
  82. package/src/scss/variables/_forms.scss +700 -23
  83. package/src/scss/variables/_globals.scss +13 -0
  84. package/src/scss/variables/_management-bar.scss +45 -12
  85. package/src/scss/variables/_navigation-bar.scss +95 -14
  86. package/src/scss/variables/_navs.scss +266 -33
  87. package/src/scss/variables/_pagination.scss +261 -61
  88. package/src/scss/variables/_popovers.scss +392 -0
  89. package/src/scss/variables/_sidebar.scss +17 -5
  90. package/src/scss/variables/_toggle-switch.scss +404 -5
  91. package/src/scss/variables/_tooltip.scss +299 -0
@@ -35,3 +35,425 @@
35
35
  }
36
36
  }
37
37
  }
38
+
39
+ /// A mixin to help create `.pagination-items-per-page` variants.
40
+ /// @param {Map} $map - A map of `key: value` pairs. The keys and value types are listed below:
41
+ /// @example
42
+ /// (
43
+ /// enabled: {Bool}, // Set to false to prevent mixin styles from being output. Default: true
44
+ /// // .pagination-items-per-page
45
+ /// link: (
46
+ /// // .pagination-items-per-page > a, .pagination-items-per-page > button
47
+ /// hover: (
48
+ /// // .pagination-items-per-page > a:hover, .pagination-items-per-page > button:hover
49
+ /// ),
50
+ /// focus: (
51
+ /// // .pagination-items-per-page > a:focus, .pagination-items-per-page > a.focus,
52
+ /// // .pagination-items-per-page > button:focus, .pagination-items-per-page > button.focus
53
+ /// ),
54
+ /// active: (
55
+ /// // .pagination-items-per-page > a:active, .pagination-items-per-page > a.active,
56
+ /// // .pagination-items-per-page > button:active, .pagination-items-per-page > button.active,
57
+ /// // .pagination-items-per-page.active > a, .pagination-items-per-page.active > button
58
+ /// ),
59
+ /// show: (
60
+ /// // .pagination-items-per-page > a[aria-expanded='true'],
61
+ /// // .pagination-items-per-page > a.show,
62
+ /// // .pagination-items-per-page > button[aria-expanded='true'],
63
+ /// // .pagination-items-per-page > button.show
64
+ /// ),
65
+ /// disabled: (
66
+ /// // .pagination-items-per-page > a:disabled, .pagination-items-per-page > a.disabled,
67
+ /// // .pagination-items-per-page > button:disabled, .pagination-items-per-page > button.disabled,
68
+ /// // .pagination-items-per-page.disabled > a, .pagination-items-per-page.disabled > button
69
+ /// ),
70
+ /// ),
71
+ /// dropdown-menu: (
72
+ /// // .pagination-items-per-page .dropdown-menu
73
+ /// // See `clay-dropdown-menu-variant`
74
+ /// ),
75
+ /// lexicon-icon: (
76
+ /// // .pagination-items-per-page .lexicon-icon
77
+ /// ),
78
+ /// pagination-results: (
79
+ /// // .pagination-items-per-page + .pagination-results
80
+ /// ),
81
+ /// media-breakpoint-down: (
82
+ /// xs: (
83
+ /// // @include media-breakpoint-down(xs) {
84
+ /// // See above.
85
+ /// // }
86
+ /// ),
87
+ /// sm: (
88
+ /// // @include media-breakpoint-down(sm) {
89
+ /// // See above.
90
+ /// // }
91
+ /// ),
92
+ /// md: (
93
+ /// // @include media-breakpoint-down(md) {
94
+ /// // See above.
95
+ /// // }
96
+ /// ),
97
+ /// lg: (
98
+ /// // @include media-breakpoint-down(lg) {
99
+ /// // See above.
100
+ /// // }
101
+ /// ),
102
+ /// ),
103
+ /// )
104
+
105
+ @mixin clay-pagination-items-per-page-variant($map) {
106
+ @if (type-of($map) == 'map') {
107
+ $enabled: setter(map-get($map, enabled), true);
108
+
109
+ @if ($enabled) {
110
+ @include clay-css($map);
111
+
112
+ > a,
113
+ > button {
114
+ @include clay-link(setter(map-deep-get($map, link), ()));
115
+ }
116
+
117
+ &.active {
118
+ > a,
119
+ > button {
120
+ @include clay-link(
121
+ setter(map-deep-get($map, link, active-class), ())
122
+ );
123
+ }
124
+ }
125
+
126
+ &.disabled {
127
+ > a,
128
+ > button {
129
+ @include clay-link(
130
+ setter(map-deep-get($map, link, disabled), ())
131
+ );
132
+ }
133
+ }
134
+
135
+ .dropdown-menu {
136
+ @include clay-dropdown-menu-variant(
137
+ setter(map-deep-get($map, dropdown-menu), ())
138
+ );
139
+ }
140
+
141
+ .lexicon-icon {
142
+ @include clay-css(map-deep-get($map, lexicon-icon));
143
+ }
144
+
145
+ + .pagination-results {
146
+ @include clay-css(map-deep-get($map, pagination-results));
147
+ }
148
+
149
+ @if (map-get($map, media-breakpoint-down)) {
150
+ @each $breakpoint
151
+ in map-keys(map-get($map, media-breakpoint-down))
152
+ {
153
+ $media-breakpoint-down: map-deep-get(
154
+ $map,
155
+ media-breakpoint-down,
156
+ $breakpoint
157
+ );
158
+
159
+ @include media-breakpoint-down($breakpoint) {
160
+ @include clay-css($media-breakpoint-down);
161
+
162
+ > a,
163
+ > button {
164
+ @include clay-link(
165
+ setter(
166
+ map-deep-get($media-breakpoint-down, link),
167
+ ()
168
+ )
169
+ );
170
+ }
171
+
172
+ &.active {
173
+ > a,
174
+ > button {
175
+ @include clay-link(
176
+ setter(
177
+ map-deep-get(
178
+ $media-breakpoint-down,
179
+ link,
180
+ active-class
181
+ ),
182
+ ()
183
+ )
184
+ );
185
+ }
186
+ }
187
+
188
+ &.disabled {
189
+ > a,
190
+ > button {
191
+ @include clay-link(
192
+ setter(
193
+ map-deep-get(
194
+ $media-breakpoint-down,
195
+ link,
196
+ disabled
197
+ ),
198
+ ()
199
+ )
200
+ );
201
+ }
202
+ }
203
+
204
+ .dropdown-menu {
205
+ @include clay-dropdown-menu-variant(
206
+ setter(
207
+ map-deep-get(
208
+ $media-breakpoint-down,
209
+ dropdown-menu
210
+ ),
211
+ ()
212
+ )
213
+ );
214
+ }
215
+
216
+ .lexicon-icon {
217
+ @include clay-css(
218
+ map-deep-get(
219
+ $media-breakpoint-down,
220
+ lexicon-icon
221
+ )
222
+ );
223
+ }
224
+
225
+ + .pagination-results {
226
+ @include clay-css(
227
+ map-deep-get(
228
+ $media-breakpoint-down,
229
+ pagination-results
230
+ )
231
+ );
232
+ }
233
+ }
234
+ }
235
+ }
236
+ }
237
+ }
238
+ }
239
+
240
+ /// A mixin to help create `.pagination` variants.
241
+ /// @param {Map} $map - A map of `key: value` pairs. The keys and value types are listed below:
242
+ /// @example
243
+ /// (
244
+ /// enabled: {Bool}, // Set to false to prevent mixin styles from being output. Default: true
245
+ /// // .pagination
246
+ /// page-item: (
247
+ /// // .pagination .page-item
248
+ /// ),
249
+ /// page-link: (
250
+ /// // .pagination .page-link
251
+ /// hover: (
252
+ /// // .pagination .page-link:hover
253
+ /// ),
254
+ /// focus: (
255
+ /// // .pagination .page-link:focus, .pagination .page-link.focus
256
+ /// ),
257
+ /// active: (
258
+ /// // .pagination .page-link:active, .pagination .page-item.active .page-link
259
+ /// ),
260
+ /// show: (
261
+ /// // .pagination .page-link[aria-expanded='true'], .pagination .page-link.show
262
+ /// ),
263
+ /// disabled: (
264
+ /// // .pagination .page-link:disabled, .pagination .page-link.disabled,
265
+ /// // .pagination .page-item.disabled .page-link
266
+ /// ),
267
+ /// ),
268
+ /// page-link-first: (
269
+ /// // .pagination .page-item:first-child .page-link, .page-link-first
270
+ /// ),
271
+ /// page-link-last: (
272
+ /// // .pagination .page-item:last-child .page-link, .page-link-last
273
+ /// ),
274
+ /// pagination: (
275
+ /// // Used for .pagination-bar
276
+ /// // .pagination-bar .pagination
277
+ /// // See `clay-pagination-variant`
278
+ /// ),
279
+ /// pagination-items-per-page: (
280
+ /// // Used for .pagination-bar
281
+ /// // .pagination-bar .pagination-items-per-page
282
+ /// // See `clay-pagination-items-per-page-variant`
283
+ /// ),
284
+ /// media-breakpoint-down: (
285
+ /// xs: (
286
+ /// // @include media-breakpoint-down(xs) {
287
+ /// // See above.
288
+ /// // }
289
+ /// ),
290
+ /// sm: (
291
+ /// // @include media-breakpoint-down(sm) {
292
+ /// // See above.
293
+ /// // }
294
+ /// ),
295
+ /// md: (
296
+ /// // @include media-breakpoint-down(md) {
297
+ /// // See above.
298
+ /// // }
299
+ /// ),
300
+ /// lg: (
301
+ /// // @include media-breakpoint-down(lg) {
302
+ /// // See above.
303
+ /// // }
304
+ /// ),
305
+ /// ),
306
+ /// )
307
+
308
+ @mixin clay-pagination-variant($map) {
309
+ @if (type-of($map) == 'map') {
310
+ $enabled: setter(map-get($map, enabled), true);
311
+
312
+ @if ($enabled) {
313
+ @include clay-css($map);
314
+
315
+ .page-item {
316
+ @include clay-css(map-get($map, page-item));
317
+ }
318
+
319
+ .page-link {
320
+ @include clay-link(setter(map-get($map, page-link), ()));
321
+ }
322
+
323
+ .page-item:first-child .page-link,
324
+ .page-link-first {
325
+ @include clay-css(map-get($map, page-link-first));
326
+ }
327
+
328
+ .page-item:last-child .page-link,
329
+ .page-link-last {
330
+ @include clay-css(map-get($map, page-link-last));
331
+ }
332
+
333
+ .page-item {
334
+ &.active {
335
+ .page-link {
336
+ @include clay-link(
337
+ setter(
338
+ map-deep-get($map, page-link, active-class),
339
+ ()
340
+ )
341
+ );
342
+ }
343
+ }
344
+
345
+ &.disabled {
346
+ .page-link {
347
+ @include clay-link(
348
+ setter(map-deep-get($map, page-link, disabled), ())
349
+ );
350
+ }
351
+ }
352
+ }
353
+
354
+ .pagination {
355
+ @include clay-pagination-variant(
356
+ map-deep-get($map, pagination)
357
+ );
358
+ }
359
+
360
+ .pagination-items-per-page {
361
+ @include clay-pagination-items-per-page-variant(
362
+ map-deep-get($map, pagination-items-per-page)
363
+ );
364
+ }
365
+
366
+ @if (map-get($map, media-breakpoint-down)) {
367
+ @each $breakpoint
368
+ in map-keys(map-get($map, media-breakpoint-down))
369
+ {
370
+ $media-breakpoint-down: map-deep-get(
371
+ $map,
372
+ media-breakpoint-down,
373
+ $breakpoint
374
+ );
375
+
376
+ @include media-breakpoint-down($breakpoint) {
377
+ @include clay-css($media-breakpoint-down);
378
+
379
+ .page-item {
380
+ @include clay-css(
381
+ map-deep-get($media-breakpoint-down, page-item)
382
+ );
383
+ }
384
+
385
+ .page-link {
386
+ @include clay-link(
387
+ setter(
388
+ map-get($media-breakpoint-down, page-link),
389
+ ()
390
+ )
391
+ );
392
+ }
393
+
394
+ .page-item:first-child .page-link,
395
+ .page-link-first {
396
+ @include clay-css(
397
+ map-get($media-breakpoint-down, page-link-first)
398
+ );
399
+ }
400
+
401
+ .page-item:last-child .page-link,
402
+ .page-link-last {
403
+ @include clay-css(
404
+ map-get($media-breakpoint-down, page-link-last)
405
+ );
406
+ }
407
+
408
+ .page-item {
409
+ &.active {
410
+ .page-link {
411
+ @include clay-link(
412
+ setter(
413
+ map-deep-get(
414
+ $media-breakpoint-down,
415
+ page-link,
416
+ active
417
+ ),
418
+ ()
419
+ )
420
+ );
421
+ }
422
+ }
423
+
424
+ &.disabled {
425
+ .page-link {
426
+ @include clay-link(
427
+ setter(
428
+ map-deep-get(
429
+ $media-breakpoint-down,
430
+ page-link,
431
+ disabled
432
+ ),
433
+ ()
434
+ )
435
+ );
436
+ }
437
+ }
438
+ }
439
+
440
+ .pagination {
441
+ @include clay-pagination-variant(
442
+ map-deep-get($media-breakpoint-down, pagination)
443
+ );
444
+ }
445
+
446
+ .pagination-items-per-page {
447
+ @include clay-pagination-items-per-page-variant(
448
+ map-deep-get(
449
+ $media-breakpoint-down,
450
+ pagination-items-per-page
451
+ )
452
+ );
453
+ }
454
+ }
455
+ }
456
+ }
457
+ }
458
+ }
459
+ }
@@ -0,0 +1,90 @@
1
+ ////
2
+ /// @group popovers
3
+ ////
4
+
5
+ /// A mixin to help create `.popover` variants.
6
+ /// @param {Map} $map - A map of `key: value` pairs. The keys and value types are listed below:
7
+ /// @example
8
+ /// (
9
+ /// enabled: {Bool}, // Set to false to prevent mixin styles from being output. Default: true
10
+ /// // .popover
11
+ /// arrow: (
12
+ /// // .popover .arrow
13
+ /// before: (
14
+ /// // .popover .arrow::before
15
+ /// ),
16
+ /// after: (
17
+ /// // .popover .arrow::after
18
+ /// ),
19
+ /// ),
20
+ /// popover-header: (
21
+ /// // .popover .popover-header
22
+ /// before: (
23
+ /// // .popover .popover-header::before
24
+ /// ),
25
+ /// after: (
26
+ /// // .popover .popover-header::after
27
+ /// ),
28
+ /// empty: (
29
+ /// // .popover .popover-header:empty
30
+ /// ),
31
+ /// ),
32
+ /// popover-body: (
33
+ /// // .popover .popover-body
34
+ /// ),
35
+ /// inline-scroller: (
36
+ /// // .popover .inline-scroller
37
+ /// ),
38
+ /// )
39
+
40
+ @mixin clay-popover-variant($map) {
41
+ @if (type-of($map) == 'map') {
42
+ $enabled: setter(map-get($map, enabled), true);
43
+
44
+ @if ($enabled) {
45
+ @include clay-css($map);
46
+
47
+ .arrow {
48
+ @include clay-css(map-get($map, arrow));
49
+
50
+ &::before {
51
+ @include clay-css(map-deep-get($map, arrow, before));
52
+ }
53
+
54
+ &::after {
55
+ @include clay-css(map-deep-get($map, arrow, after));
56
+ }
57
+ }
58
+
59
+ .popover-header {
60
+ @include clay-css(map-get($map, popover-header));
61
+
62
+ &::before {
63
+ @include clay-css(
64
+ map-deep-get($map, popover-header, before)
65
+ );
66
+ }
67
+
68
+ &::after {
69
+ @include clay-css(
70
+ map-deep-get($map, popover-header, after)
71
+ );
72
+ }
73
+
74
+ &:empty {
75
+ @include clay-css(
76
+ map-deep-get($map, popover-header, empty)
77
+ );
78
+ }
79
+ }
80
+
81
+ .popover-body {
82
+ @include clay-css(map-get($map, popover-body));
83
+ }
84
+
85
+ .inline-scroller {
86
+ @include clay-css(map-get($map, inline-scroller));
87
+ }
88
+ }
89
+ }
90
+ }