@clayui/css 3.44.0 → 3.46.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 (60) hide show
  1. package/README.md +23 -69
  2. package/lib/css/atlas.css +316 -14
  3. package/lib/css/atlas.css.map +1 -1
  4. package/lib/css/base.css +306 -14
  5. package/lib/css/base.css.map +1 -1
  6. package/lib/css/bootstrap.css.map +1 -1
  7. package/lib/css/cadmin.css +82 -26
  8. package/lib/css/cadmin.css.map +1 -1
  9. package/lib/images/icons/add-cell.svg +1 -1
  10. package/lib/images/icons/corner-radius.svg +12 -0
  11. package/lib/images/icons/export.svg +11 -0
  12. package/lib/images/icons/font-family.svg +10 -0
  13. package/lib/images/icons/font-size.svg +10 -0
  14. package/lib/images/icons/icons.svg +1 -1
  15. package/lib/images/icons/shadow.svg +9 -0
  16. package/package.json +2 -2
  17. package/src/images/icons/add-cell.svg +1 -1
  18. package/src/images/icons/corner-radius.svg +12 -0
  19. package/src/images/icons/export.svg +11 -0
  20. package/src/images/icons/font-family.svg +10 -0
  21. package/src/images/icons/font-size.svg +10 -0
  22. package/src/images/icons/shadow.svg +9 -0
  23. package/src/scss/_components.scss +1 -0
  24. package/src/scss/_variables.scss +2 -0
  25. package/src/scss/atlas/variables/_buttons.scss +3 -0
  26. package/src/scss/atlas/variables/_forms.scss +2 -1
  27. package/src/scss/atlas/variables/_globals.scss +42 -13
  28. package/src/scss/cadmin/_variables.scss +1 -0
  29. package/src/scss/cadmin/components/_aspect-ratio.scss +25 -38
  30. package/src/scss/cadmin/components/_custom-forms.scss +4 -0
  31. package/src/scss/cadmin/components/_forms.scss +1 -1
  32. package/src/scss/cadmin/components/_links.scss +1 -6
  33. package/src/scss/cadmin/components/_navs.scss +8 -0
  34. package/src/scss/cadmin/components/_treeview.scss +135 -211
  35. package/src/scss/cadmin/components/_type.scss +27 -42
  36. package/src/scss/cadmin/components/_utilities-functional-important.scss +35 -15
  37. package/src/scss/cadmin/variables/_aspect-ratio.scss +26 -0
  38. package/src/scss/cadmin/variables/_custom-forms.scss +3 -0
  39. package/src/scss/cadmin/variables/_forms.scss +3 -2
  40. package/src/scss/cadmin/variables/_globals.scss +173 -11
  41. package/src/scss/cadmin/variables/_navs.scss +1 -0
  42. package/src/scss/cadmin/variables/_treeview.scss +21 -16
  43. package/src/scss/cadmin/variables/_utilities.scss +42 -0
  44. package/src/scss/components/_aspect-ratio.scss +25 -38
  45. package/src/scss/components/_forms.scss +1 -1
  46. package/src/scss/components/_links.scss +12 -0
  47. package/src/scss/components/_treeview.scss +310 -0
  48. package/src/scss/components/_type.scss +27 -41
  49. package/src/scss/components/_utilities-functional-important.scss +35 -15
  50. package/src/scss/functions/_lx-icons-generated.scss +10 -0
  51. package/src/scss/mixins/_buttons.scss +31 -64
  52. package/src/scss/mixins/_cards.scss +8 -0
  53. package/src/scss/mixins/_grid.scss +29 -0
  54. package/src/scss/variables/_aspect-ratio.scss +26 -0
  55. package/src/scss/variables/_buttons.scss +6 -0
  56. package/src/scss/variables/_forms.scss +3 -2
  57. package/src/scss/variables/_globals.scss +172 -11
  58. package/src/scss/variables/_links.scss +17 -0
  59. package/src/scss/variables/_treeview.scss +222 -0
  60. package/src/scss/variables/_utilities.scss +42 -0
@@ -635,25 +635,19 @@
635
635
  }
636
636
 
637
637
  .inline-item {
638
- @include clay-css(setter(map-get($hover, inline-item), ()));
638
+ @include clay-css(map-get($hover, inline-item));
639
639
  }
640
640
 
641
641
  .inline-item-before {
642
- @include clay-css(
643
- setter(map-get($hover, inline-item-before), ())
644
- );
642
+ @include clay-css(map-get($hover, inline-item-before));
645
643
  }
646
644
 
647
645
  .inline-item-middle {
648
- @include clay-css(
649
- setter(map-get($hover, inline-item-middle), ())
650
- );
646
+ @include clay-css(map-get($hover, inline-item-middle));
651
647
  }
652
648
 
653
649
  .inline-item-after {
654
- @include clay-css(
655
- setter(map-get($hover, inline-item-after), ())
656
- );
650
+ @include clay-css(map-get($hover, inline-item-after));
657
651
  }
658
652
  }
659
653
 
@@ -670,25 +664,19 @@
670
664
  }
671
665
 
672
666
  .inline-item {
673
- @include clay-css(setter(map-get($focus, inline-item), ()));
667
+ @include clay-css(map-get($focus, inline-item));
674
668
  }
675
669
 
676
670
  .inline-item-before {
677
- @include clay-css(
678
- setter(map-get($focus, inline-item-before), ())
679
- );
671
+ @include clay-css(map-get($focus, inline-item-before));
680
672
  }
681
673
 
682
674
  .inline-item-middle {
683
- @include clay-css(
684
- setter(map-get($focus, inline-item-middle), ())
685
- );
675
+ @include clay-css(map-get($focus, inline-item-middle));
686
676
  }
687
677
 
688
678
  .inline-item-after {
689
- @include clay-css(
690
- setter(map-get($focus, inline-item-after), ())
691
- );
679
+ @include clay-css(map-get($focus, inline-item-after));
692
680
  }
693
681
  }
694
682
 
@@ -720,27 +708,19 @@
720
708
  }
721
709
 
722
710
  .inline-item {
723
- @include clay-css(
724
- setter(map-get($active, inline-item), ())
725
- );
711
+ @include clay-css(map-get($active, inline-item));
726
712
  }
727
713
 
728
714
  .inline-item-before {
729
- @include clay-css(
730
- setter(map-get($active, inline-item-before), ())
731
- );
715
+ @include clay-css(map-get($active, inline-item-before));
732
716
  }
733
717
 
734
718
  .inline-item-middle {
735
- @include clay-css(
736
- setter(map-get($active, inline-item-middle), ())
737
- );
719
+ @include clay-css(map-get($active, inline-item-middle));
738
720
  }
739
721
 
740
722
  .inline-item-after {
741
- @include clay-css(
742
- setter(map-get($active, inline-item-after), ())
743
- );
723
+ @include clay-css(map-get($active, inline-item-after));
744
724
  }
745
725
  }
746
726
 
@@ -756,26 +736,24 @@
756
736
  }
757
737
 
758
738
  .inline-item {
759
- @include clay-css(
760
- setter(map-get($active-class, inline-item), ())
761
- );
739
+ @include clay-css(map-get($active-class, inline-item));
762
740
  }
763
741
 
764
742
  .inline-item-before {
765
743
  @include clay-css(
766
- setter(map-get($active-class, inline-item-before), ())
744
+ map-get($active-class, inline-item-before)
767
745
  );
768
746
  }
769
747
 
770
748
  .inline-item-middle {
771
749
  @include clay-css(
772
- setter(map-get($active-class, inline-item-middle), ())
750
+ map-get($active-class, inline-item-middle)
773
751
  );
774
752
  }
775
753
 
776
754
  .inline-item-after {
777
755
  @include clay-css(
778
- setter(map-get($active-class, inline-item-after), ())
756
+ map-get($active-class, inline-item-after)
779
757
  );
780
758
  }
781
759
  }
@@ -825,27 +803,19 @@
825
803
  }
826
804
 
827
805
  .inline-item {
828
- @include clay-css(
829
- setter(map-get($disabled, inline-item), ())
830
- );
806
+ @include clay-css(map-get($disabled, inline-item));
831
807
  }
832
808
 
833
809
  .inline-item-before {
834
- @include clay-css(
835
- setter(map-get($disabled, inline-item-before), ())
836
- );
810
+ @include clay-css(map-get($disabled, inline-item-before));
837
811
  }
838
812
 
839
813
  .inline-item-middle {
840
- @include clay-css(
841
- setter(map-get($disabled, inline-item-middle), ())
842
- );
814
+ @include clay-css(map-get($disabled, inline-item-middle));
843
815
  }
844
816
 
845
817
  .inline-item-after {
846
- @include clay-css(
847
- setter(map-get($disabled, inline-item-after), ())
848
- );
818
+ @include clay-css(map-get($disabled, inline-item-after));
849
819
  }
850
820
  }
851
821
 
@@ -874,35 +844,32 @@
874
844
 
875
845
  .inline-item {
876
846
  @include clay-css($inline-item);
847
+
848
+ .lexicon-icon {
849
+ @include clay-css(map-get($inline-item, lexicon-icon));
850
+ }
877
851
  }
878
852
 
879
853
  .inline-item-before {
880
- @include clay-css(
881
- setter(map-get($map, inline-item-before), ())
882
- );
854
+ @include clay-css(map-get($map, inline-item-before));
883
855
  }
884
856
 
885
857
  .inline-item-middle {
886
- @include clay-css(
887
- setter(map-get($map, inline-item-middle), ())
888
- );
858
+ @include clay-css(map-get($map, inline-item-middle));
889
859
 
890
860
  + .inline-item-middle {
891
861
  @include clay-css(
892
- setter(
893
- map-deep-get(
894
- $map,
895
- inline-item-middle,
896
- inline-item-middle
897
- ),
898
- ()
862
+ map-deep-get(
863
+ $map,
864
+ inline-item-middle,
865
+ inline-item-middle
899
866
  )
900
867
  );
901
868
  }
902
869
  }
903
870
 
904
871
  .inline-item-after {
905
- @include clay-css(setter(map-get($map, inline-item-after), ()));
872
+ @include clay-css(map-get($map, inline-item-after));
906
873
  }
907
874
 
908
875
  .btn-section {
@@ -769,6 +769,14 @@
769
769
  setter(map-get($map, after-highlight), ())
770
770
  );
771
771
 
772
+ &::before {
773
+ @include clay-css(map-get($map, before));
774
+ }
775
+
776
+ &::after {
777
+ @include clay-css(map-get($map, after));
778
+ }
779
+
772
780
  &.form-check-card {
773
781
  @include clay-form-check-card-variant(
774
782
  map-get($map, form-check-card)
@@ -176,6 +176,35 @@
176
176
  }
177
177
  }
178
178
 
179
+ /// A mixin that generates media-breakpoint-{up|down} styles from a Sass map.
180
+ /// @param {Map} $map - A map of `key: value` pairs that is passed to the `clay-css` mixin
181
+
182
+ @mixin clay-generate-media-breakpoints($map) {
183
+ @if (map-get($map, media-breakpoint-up)) {
184
+ $media-breakpoint-up: map-get($map, media-breakpoint-up);
185
+
186
+ @each $breakpoint in map-keys($media-breakpoint-up) {
187
+ $breakpoint-up: map-get($map, $breakpoint);
188
+
189
+ @include media-breakpoint-up($breakpoint) {
190
+ @include clay-css($breakpoint-up);
191
+ }
192
+ }
193
+ }
194
+
195
+ @if (map-get($map, media-breakpoint-down)) {
196
+ $media-breakpoint-down: map-get($map, media-breakpoint-down);
197
+
198
+ @each $breakpoint in map-keys($map) {
199
+ $breakpoint-down: map-get($map, $breakpoint);
200
+
201
+ @include media-breakpoint-down($breakpoint) {
202
+ @include clay-css($breakpoint-down);
203
+ }
204
+ }
205
+ }
206
+ }
207
+
179
208
  /// A Bootstrap 4 mixin that generates the correct number of grid classes given any value of `$grid-columns`. This mixin is deprecated. This has been inlined into `components/_grid.scss`.
180
209
  /// @deprecated
181
210
  /// @param {Number} $columns[$grid-columns]
@@ -0,0 +1,26 @@
1
+ $aspect-ratio-sizes: () !default;
2
+ $aspect-ratio-sizes: map-deep-merge(
3
+ (
4
+ aspect-ratio-3-to-2: (
5
+ height: 2,
6
+ width: 3,
7
+ ),
8
+ aspect-ratio-4-to-3: (
9
+ height: 3,
10
+ width: 4,
11
+ ),
12
+ aspect-ratio-8-to-3: (
13
+ height: 3,
14
+ width: 8,
15
+ ),
16
+ aspect-ratio-8-to-5: (
17
+ height: 5,
18
+ width: 8,
19
+ ),
20
+ aspect-ratio-16-to-9: (
21
+ height: 9,
22
+ width: 16,
23
+ ),
24
+ ),
25
+ $aspect-ratio-sizes
26
+ );
@@ -92,6 +92,9 @@ $btn: map-deep-merge(
92
92
  ),
93
93
  inline-item: (
94
94
  font-size: $btn-inline-item-font-size,
95
+ lexicon-icon: (
96
+ margin-top: 0,
97
+ ),
95
98
  ),
96
99
  btn-section: (
97
100
  display: block,
@@ -226,6 +229,9 @@ $btn-monospaced: map-deep-merge(
226
229
  height: $btn-monospaced-size-mobile,
227
230
  width: $btn-monospaced-size-mobile,
228
231
  ),
232
+ lexicon-icon: (
233
+ margin-top: 0,
234
+ ),
229
235
  c-inner: (
230
236
  align-items: center,
231
237
  display: flex,
@@ -310,10 +310,11 @@ $form-control-label-size: () !default;
310
310
  $form-control-label-size: map-deep-merge(
311
311
  (
312
312
  border-width: 0.0625rem,
313
- height: 1.25rem,
313
+ height: auto,
314
314
  margin-bottom: 0.25rem,
315
315
  margin-right: 0.5rem,
316
316
  margin-top: 0.25rem,
317
+ min-height: 1.25rem,
317
318
  ),
318
319
  $form-control-label-size
319
320
  );
@@ -322,7 +323,7 @@ $form-control-label-size: map-deep-merge(
322
323
 
323
324
  $form-control-tag-group-padding-y: (
324
325
  $input-height - $input-border-bottom-width - $input-border-top-width -
325
- map-get($form-control-label-size, height) -
326
+ map-get($form-control-label-size, min-height) -
326
327
  (map-get($form-control-label-size, margin-bottom)) -
327
328
  (map-get($form-control-label-size, margin-top))
328
329
  ) * 0.5 !default;
@@ -368,26 +368,134 @@ $font-weight-base: $font-weight-normal !default;
368
368
 
369
369
  $line-height-base: 1.5 !default;
370
370
 
371
- $h1-font-size: $font-size-base * 2.5 !default;
372
- $h2-font-size: $font-size-base * 2 !default;
373
- $h3-font-size: $font-size-base * 1.75 !default;
374
- $h4-font-size: $font-size-base * 1.5 !default;
375
- $h5-font-size: $font-size-base * 1.25 !default;
376
- $h6-font-size: $font-size-base !default;
371
+ // h1, .h1
377
372
 
373
+ $h1-font-size: $font-size-base * 2.5 !default;
378
374
  $h1-font-size-mobile: null !default;
375
+
376
+ $h1: () !default;
377
+ $h1: map-deep-merge(
378
+ (
379
+ font-size: $h1-font-size,
380
+ media-breakpoint-down: (
381
+ sm: (
382
+ font-size: $h1-font-size-mobile,
383
+ ),
384
+ ),
385
+ ),
386
+ $h1
387
+ );
388
+
389
+ // h2, .h2
390
+
391
+ $h2-font-size: $font-size-base * 2 !default;
379
392
  $h2-font-size-mobile: null !default;
393
+
394
+ $h2: () !default;
395
+ $h2: map-deep-merge(
396
+ (
397
+ font-size: $h2-font-size,
398
+ media-breakpoint-down: (
399
+ sm: (
400
+ font-size: $h2-font-size-mobile,
401
+ ),
402
+ ),
403
+ ),
404
+ $h2
405
+ );
406
+
407
+ // h3, .h3
408
+
409
+ $h3-font-size: $font-size-base * 1.75 !default;
380
410
  $h3-font-size-mobile: null !default;
411
+
412
+ $h3: () !default;
413
+ $h3: map-deep-merge(
414
+ (
415
+ font-size: $h3-font-size,
416
+ media-breakpoint-down: (
417
+ sm: (
418
+ font-size: $h3-font-size-mobile,
419
+ ),
420
+ ),
421
+ ),
422
+ $h3
423
+ );
424
+
425
+ // h4, .h4
426
+
427
+ $h4-font-size: $font-size-base * 1.5 !default;
381
428
  $h4-font-size-mobile: null !default;
429
+
430
+ $h4: () !default;
431
+ $h4: map-deep-merge(
432
+ (
433
+ font-size: $h4-font-size,
434
+ media-breakpoint-down: (
435
+ sm: (
436
+ font-size: $h4-font-size-mobile,
437
+ ),
438
+ ),
439
+ ),
440
+ $h4
441
+ );
442
+
443
+ // h5, .h5
444
+
445
+ $h5-font-size: $font-size-base * 1.25 !default;
382
446
  $h5-font-size-mobile: null !default;
447
+
448
+ $h5: () !default;
449
+ $h5: map-deep-merge(
450
+ (
451
+ font-size: $h5-font-size,
452
+ media-breakpoint-down: (
453
+ sm: (
454
+ font-size: $h5-font-size-mobile,
455
+ ),
456
+ ),
457
+ ),
458
+ $h5
459
+ );
460
+
461
+ // h6, .h6
462
+
463
+ $h6-font-size: $font-size-base !default;
383
464
  $h6-font-size-mobile: null !default;
384
465
 
466
+ $h6: () !default;
467
+ $h6: map-deep-merge(
468
+ (
469
+ font-size: $h6-font-size,
470
+ media-breakpoint-down: (
471
+ sm: (
472
+ font-size: $h6-font-size-mobile,
473
+ ),
474
+ ),
475
+ ),
476
+ $h6
477
+ );
478
+
479
+ // Headings h1-h6
480
+
385
481
  $headings-margin-bottom: $spacer * 0.5 !default;
386
482
  $headings-font-family: null !default;
387
483
  $headings-font-weight: 500 !default;
388
484
  $headings-line-height: 1.2 !default;
389
485
  $headings-color: null !default;
390
486
 
487
+ $headings: () !default;
488
+ $headings: map-deep-merge(
489
+ (
490
+ color: $headings-color,
491
+ font-family: $headings-font-family,
492
+ font-weight: $headings-font-weight,
493
+ line-height: $headings-line-height,
494
+ margin-bottom: $headings-margin-bottom,
495
+ ),
496
+ $headings
497
+ );
498
+
391
499
  // Body
392
500
 
393
501
  $body-bg: $white !default;
@@ -454,16 +562,69 @@ $emphasized-link-hover-darken-percentage: 15% !default;
454
562
 
455
563
  $paragraph-margin-bottom: 1rem !default;
456
564
 
457
- $display1-size: 6rem !default;
458
- $display2-size: 5.5rem !default;
459
- $display3-size: 4.5rem !default;
460
- $display4-size: 3.5rem !default;
565
+ // Display
566
+
567
+ $display-line-height: $headings-line-height !default;
568
+
569
+ // .display-1
461
570
 
571
+ $display1-size: 6rem !default;
462
572
  $display1-weight: 300 !default;
573
+
574
+ $display-1: () !default;
575
+ $display-1: map-deep-merge(
576
+ (
577
+ font-size: $display1-size,
578
+ font-weight: $display1-weight,
579
+ line-height: $display-line-height,
580
+ ),
581
+ $display-1
582
+ );
583
+
584
+ // .display-2
585
+
586
+ $display2-size: 5.5rem !default;
463
587
  $display2-weight: 300 !default;
588
+
589
+ $display-2: () !default;
590
+ $display-2: map-deep-merge(
591
+ (
592
+ font-size: $display2-size,
593
+ font-weight: $display2-weight,
594
+ line-height: $display-line-height,
595
+ ),
596
+ $display-2
597
+ );
598
+
599
+ // .display-3
600
+
601
+ $display3-size: 4.5rem !default;
464
602
  $display3-weight: 300 !default;
603
+
604
+ $display-3: () !default;
605
+ $display-3: map-deep-merge(
606
+ (
607
+ font-size: $display3-size,
608
+ font-weight: $display3-weight,
609
+ line-height: $display-line-height,
610
+ ),
611
+ $display-3
612
+ );
613
+
614
+ // .display-4
615
+
616
+ $display4-size: 3.5rem !default;
465
617
  $display4-weight: 300 !default;
466
- $display-line-height: $headings-line-height !default;
618
+
619
+ $display-4: () !default;
620
+ $display-4: map-deep-merge(
621
+ (
622
+ font-size: $display4-size,
623
+ font-weight: $display4-weight,
624
+ line-height: $display-line-height,
625
+ ),
626
+ $display-4
627
+ );
467
628
 
468
629
  $lead-font-size: $font-size-base * 1.25 !default;
469
630
  $lead-font-weight: 300 !default;
@@ -285,3 +285,20 @@ $component-action: map-deep-merge(
285
285
  ),
286
286
  $component-action
287
287
  );
288
+
289
+ $component-text: () !default;
290
+
291
+ $component-icon: () !default;
292
+ $component-icon: map-deep-merge(
293
+ (
294
+ align-items: center,
295
+ display: inline-flex,
296
+ height: 32px,
297
+ justify-content: center,
298
+ width: 32px,
299
+ lexicon-icon: (
300
+ margin-top: 0,
301
+ ),
302
+ ),
303
+ $component-icon
304
+ );