@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
@@ -656,12 +656,6 @@
656
656
  }
657
657
  }
658
658
 
659
- // Text
660
-
661
- .text-monospace {
662
- font-family: $cadmin-font-family-monospace !important;
663
- }
664
-
665
659
  // Text Alignment
666
660
 
667
661
  .text-justify {
@@ -721,34 +715,60 @@
721
715
 
722
716
  // Font Weight and Italics
723
717
 
724
- .font-weight-light {
725
- font-weight: $cadmin-font-weight-light !important;
718
+ .font-weight-lighter,
719
+ .text-weight-lighter {
720
+ font-weight: $cadmin-font-weight-lighter !important;
726
721
  }
727
722
 
728
- .font-weight-lighter {
729
- font-weight: $cadmin-font-weight-lighter !important;
723
+ .font-weight-light,
724
+ .text-weight-light {
725
+ font-weight: $cadmin-font-weight-light !important;
730
726
  }
731
727
 
732
- .font-weight-normal {
728
+ .font-weight-normal,
729
+ .text-weight-normal {
733
730
  font-weight: $cadmin-font-weight-normal !important;
734
731
  }
735
732
 
736
- .font-weight-semi-bold {
733
+ .font-weight-semi-bold,
734
+ .text-weight-semi-bold {
737
735
  font-weight: $cadmin-font-weight-semi-bold !important;
738
736
  }
739
737
 
740
- .font-weight-bold {
738
+ .font-weight-bold,
739
+ .text-weight-bold {
741
740
  font-weight: $cadmin-font-weight-bold !important;
742
741
  }
743
742
 
744
- .font-weight-bolder {
743
+ .font-weight-bolder,
744
+ .text-weight-bolder {
745
745
  font-weight: $cadmin-font-weight-bolder !important;
746
746
  }
747
747
 
748
- .font-italic {
748
+ .font-italic,
749
+ .text-italic {
749
750
  font-style: italic !important;
750
751
  }
751
752
 
753
+ .font-monospace,
754
+ .text-monospace {
755
+ font-family: $cadmin-font-family-monospace !important;
756
+ }
757
+
758
+ // Font Sizes
759
+
760
+ @each $selector, $value in $cadmin-font-sizes {
761
+ $selector: if(
762
+ starts-with($selector, '.') or starts-with($selector, '#'),
763
+ $selector,
764
+ str-insert($selector, '.', 1)
765
+ );
766
+
767
+ #{$selector} {
768
+ @include clay-css($value);
769
+ }
770
+ }
771
+
752
772
  // Contextual Colors
753
773
 
754
774
  .text-white {
@@ -0,0 +1,26 @@
1
+ $cadmin-aspect-ratio-sizes: () !default;
2
+ $cadmin-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
+ $cadmin-aspect-ratio-sizes
26
+ );
@@ -136,6 +136,7 @@ $cadmin-custom-control-label: map-deep-merge(
136
136
  top: $cadmin-custom-control-indicator-position-top,
137
137
  transition: clay-enable-transitions($cadmin-custom-forms-transition),
138
138
  width: $cadmin-custom-control-indicator-size,
139
+ z-index: 0,
139
140
  ),
140
141
  after: (
141
142
  background: no-repeat 50% / #{$cadmin-custom-control-indicator-bg-size},
@@ -146,6 +147,7 @@ $cadmin-custom-control-label: map-deep-merge(
146
147
  position: absolute,
147
148
  top: $cadmin-custom-control-indicator-position-top,
148
149
  width: $cadmin-custom-control-indicator-size,
150
+ z-index: 0,
149
151
  ),
150
152
  ),
151
153
  $cadmin-custom-control-label
@@ -216,6 +218,7 @@ $cadmin-custom-control: map-deep-merge(
216
218
  display: inline,
217
219
  font-size: $cadmin-font-size-base,
218
220
  margin-bottom: 0,
221
+ position: static,
219
222
  ),
220
223
  ),
221
224
  $cadmin-custom-control
@@ -319,10 +319,11 @@ $cadmin-form-control-label-size: map-deep-merge(
319
319
  (
320
320
  border-width: 1px,
321
321
  font-size: map-get($cadmin-label-lg, font-size),
322
- height: 24px,
322
+ height: auto,
323
323
  margin-bottom: 5px,
324
324
  margin-right: 10px,
325
325
  margin-top: 5px,
326
+ min-height: 24px,
326
327
  padding-x: map-get($cadmin-label-lg, padding-x),
327
328
  padding-y: map-get($cadmin-label-lg, padding-y),
328
329
  text-transform: none,
@@ -340,7 +341,7 @@ $cadmin-form-control-label-size: map-deep-merge(
340
341
  $cadmin-form-control-tag-group-padding-y: (
341
342
  $cadmin-input-height - $cadmin-input-border-bottom-width -
342
343
  $cadmin-input-border-top-width -
343
- map-get($cadmin-form-control-label-size, height) -
344
+ map-get($cadmin-form-control-label-size, min-height) -
344
345
  (map-get($cadmin-form-control-label-size, margin-bottom)) -
345
346
  (map-get($cadmin-form-control-label-size, margin-top))
346
347
  ) * 0.5 !default;
@@ -435,26 +435,135 @@ $cadmin-font-weight-bolder: 900 !default;
435
435
  $cadmin-font-weight-base: $cadmin-font-weight-normal !default;
436
436
  $cadmin-line-height-base: 1.5 !default;
437
437
 
438
- $cadmin-h1-font-size: 26px !default; // 26px
439
- $cadmin-h2-font-size: 22px !default; // 22px
440
- $cadmin-h3-font-size: 19px !default; // 19px
441
- $cadmin-h4-font-size: 16px !default; // 16px
442
- $cadmin-h5-font-size: 14px !default; // 14px
443
- $cadmin-h6-font-size: 13px !default; // 13px
438
+ // h1, .h1
444
439
 
440
+ $cadmin-h1-font-size: 26px !default; // 26px
445
441
  $cadmin-h1-font-size-mobile: null !default;
442
+
443
+ $cadmin-h1: () !default;
444
+ $cadmin-h1: map-deep-merge(
445
+ (
446
+ font-size: $cadmin-h1-font-size,
447
+ media-breakpoint-down: (
448
+ sm: (
449
+ font-size: $cadmin-h1-font-size-mobile,
450
+ ),
451
+ ),
452
+ ),
453
+ $cadmin-h1
454
+ );
455
+
456
+ // h2, .h2
457
+
458
+ $cadmin-h2-font-size: 22px !default; // 22px
446
459
  $cadmin-h2-font-size-mobile: null !default;
460
+
461
+ $cadmin-h2: () !default;
462
+ $cadmin-h2: map-deep-merge(
463
+ (
464
+ font-size: $cadmin-h2-font-size,
465
+ media-breakpoint-down: (
466
+ sm: (
467
+ font-size: $cadmin-h2-font-size-mobile,
468
+ ),
469
+ ),
470
+ ),
471
+ $cadmin-h2
472
+ );
473
+
474
+ // h3, .h3
475
+
476
+ $cadmin-h3-font-size: 19px !default; // 19px
447
477
  $cadmin-h3-font-size-mobile: null !default;
478
+
479
+ $cadmin-h3: () !default;
480
+ $cadmin-h3: map-deep-merge(
481
+ (
482
+ font-size: $cadmin-h3-font-size,
483
+ media-breakpoint-down: (
484
+ sm: (
485
+ font-size: $cadmin-h3-font-size-mobile,
486
+ ),
487
+ ),
488
+ ),
489
+ $cadmin-h3
490
+ );
491
+
492
+ // h4, .h4
493
+
494
+ $cadmin-h4-font-size: 16px !default; // 16px
448
495
  $cadmin-h4-font-size-mobile: null !default;
496
+
497
+ $cadmin-h4: () !default;
498
+ $cadmin-h4: map-deep-merge(
499
+ (
500
+ font-size: $cadmin-h4-font-size,
501
+ media-breakpoint-down: (
502
+ sm: (
503
+ font-size: $cadmin-h4-font-size-mobile,
504
+ ),
505
+ ),
506
+ ),
507
+ $cadmin-h4
508
+ );
509
+
510
+ // h5, .h5
511
+
512
+ $cadmin-h5-font-size: 14px !default; // 14px
449
513
  $cadmin-h5-font-size-mobile: null !default;
514
+
515
+ $cadmin-h5: () !default;
516
+ $cadmin-h5: map-deep-merge(
517
+ (
518
+ font-size: $cadmin-h5-font-size,
519
+ media-breakpoint-down: (
520
+ sm: (
521
+ font-size: $cadmin-h5-font-size-mobile,
522
+ ),
523
+ ),
524
+ ),
525
+ $cadmin-h5
526
+ );
527
+
528
+ // h6, .h6
529
+
530
+ $cadmin-h6-font-size: 13px !default; // 13px
450
531
  $cadmin-h6-font-size-mobile: null !default;
451
532
 
533
+ $cadmin-h6: () !default;
534
+ $cadmin-h6: map-deep-merge(
535
+ (
536
+ font-size: $cadmin-h6-font-size,
537
+ media-breakpoint-down: (
538
+ sm: (
539
+ font-size: $cadmin-h6-font-size-mobile,
540
+ ),
541
+ ),
542
+ ),
543
+ $cadmin-h6
544
+ );
545
+
546
+ // Headings h1-h6
547
+
452
548
  $cadmin-headings-margin-bottom: $cadmin-spacer * 0.5 !default;
453
549
  $cadmin-headings-font-family: null !default;
454
550
  $cadmin-headings-font-weight: $cadmin-font-weight-bold !default;
455
551
  $cadmin-headings-line-height: 1.2 !default;
456
552
  $cadmin-headings-color: null !default;
457
553
 
554
+ $cadmin-headings: () !default;
555
+ $cadmin-headings: map-deep-merge(
556
+ (
557
+ color: $cadmin-headings-color,
558
+ font-family: $cadmin-headings-font-family,
559
+ font-weight: $cadmin-headings-font-weight,
560
+ line-height: $cadmin-headings-line-height,
561
+ margin-bottom: $cadmin-headings-margin-bottom,
562
+ margin-top: 0,
563
+ ),
564
+ $cadmin-headings
565
+ );
566
+
458
567
  // This is similar to the html and body tag allows you to isolate all styles inside it.
459
568
 
460
569
  $cadmin: () !default;
@@ -590,16 +699,69 @@ $cadmin-emphasized-link-hover-darken-percentage: 15% !default;
590
699
 
591
700
  $cadmin-paragraph-margin-bottom: 16px !default;
592
701
 
593
- $cadmin-display1-size: 96px !default;
594
- $cadmin-display2-size: 88px !default;
595
- $cadmin-display3-size: 72px !default;
596
- $cadmin-display4-size: 56px !default;
702
+ // Display
703
+
704
+ $cadmin-display-line-height: $cadmin-headings-line-height !default;
705
+
706
+ // .display-1
597
707
 
708
+ $cadmin-display1-size: 96px !default;
598
709
  $cadmin-display1-weight: 300 !default;
710
+
711
+ $cadmin-display-1: () !default;
712
+ $cadmin-display-1: map-deep-merge(
713
+ (
714
+ font-size: $cadmin-display1-size,
715
+ font-weight: $cadmin-display1-weight,
716
+ line-height: $cadmin-display-line-height,
717
+ ),
718
+ $cadmin-display-1
719
+ );
720
+
721
+ // .display-2
722
+
723
+ $cadmin-display2-size: 88px !default;
599
724
  $cadmin-display2-weight: 300 !default;
725
+
726
+ $cadmin-display-2: () !default;
727
+ $cadmin-display-2: map-deep-merge(
728
+ (
729
+ font-size: $cadmin-display2-size,
730
+ font-weight: $cadmin-display2-weight,
731
+ line-height: $cadmin-display-line-height,
732
+ ),
733
+ $cadmin-display-2
734
+ );
735
+
736
+ // .display-3
737
+
738
+ $cadmin-display3-size: 72px !default;
600
739
  $cadmin-display3-weight: 300 !default;
740
+
741
+ $cadmin-display-3: () !default;
742
+ $cadmin-display-3: map-deep-merge(
743
+ (
744
+ font-size: $cadmin-display3-size,
745
+ font-weight: $cadmin-display3-weight,
746
+ line-height: $cadmin-display-line-height,
747
+ ),
748
+ $cadmin-display-3
749
+ );
750
+
751
+ // .display-4
752
+
753
+ $cadmin-display4-size: 56px !default;
601
754
  $cadmin-display4-weight: 300 !default;
602
- $cadmin-display-line-height: $cadmin-headings-line-height !default;
755
+
756
+ $cadmin-display-4: () !default;
757
+ $cadmin-display-4: map-deep-merge(
758
+ (
759
+ font-size: $cadmin-display4-size,
760
+ font-weight: $cadmin-display4-weight,
761
+ line-height: $cadmin-display-line-height,
762
+ ),
763
+ $cadmin-display-4
764
+ );
603
765
 
604
766
  $cadmin-lead-font-size: $cadmin-font-size-base * 1.25 !default;
605
767
  $cadmin-lead-font-weight: 300 !default;
@@ -473,6 +473,7 @@ $cadmin-nav-underline-link: map-deep-merge(
473
473
  active-class: (
474
474
  color: $cadmin-nav-underline-link-active-color,
475
475
  after: (
476
+ background-color: $cadmin-nav-underline-link-active-highlight,
476
477
  content: $cadmin-nav-underline-link-active-content,
477
478
  height: $cadmin-nav-underline-link-active-highlight-height,
478
479
  ),
@@ -42,7 +42,16 @@ $cadmin-treeview: map-merge(
42
42
  treeview-item: (
43
43
  word-wrap: break-word,
44
44
  ),
45
- link: (
45
+ treeview-item-dragging: (
46
+ cursor: $cadmin-disabled-cursor,
47
+ opacity: 0.4,
48
+ treeview-link: (
49
+ background-color: transparent,
50
+ border-color: transparent,
51
+ box-shadow: none,
52
+ ),
53
+ ),
54
+ treeview-link: (
46
55
  cursor: pointer,
47
56
  display: block,
48
57
  border-color: transparent,
@@ -54,19 +63,15 @@ $cadmin-treeview: map-merge(
54
63
  padding: 0,
55
64
  position: relative,
56
65
  user-select: none,
57
- dropping: (
58
- bottom: (
59
- border-bottom-width: 2px,
60
- border-bottom-color: $cadmin-primary-l1,
61
- ),
62
- middle: (
63
- background-color: $cadmin-primary-l3,
64
- border-color: $cadmin-primary-l1,
65
- ),
66
- top: (
67
- border-top-color: $cadmin-primary-l1,
68
- border-top-width: 2px,
69
- ),
66
+ treeview-dropping-bottom: (
67
+ box-shadow: 0 2px 0 0 $cadmin-primary-l1,
68
+ ),
69
+ treeview-dropping-middle: (
70
+ background-color: $cadmin-primary-l3,
71
+ border-color: $cadmin-primary-l1,
72
+ ),
73
+ treeview-dropping-top: (
74
+ box-shadow: 0 -2px 0 0 $cadmin-primary-l1,
70
75
  ),
71
76
  hover: (
72
77
  text-decoration: none,
@@ -159,7 +164,7 @@ $cadmin-treeview-light: map-deep-merge(
159
164
  background-color: $cadmin-white,
160
165
  ),
161
166
  ),
162
- link: (
167
+ treeview-link: (
163
168
  color: $cadmin-gray-600,
164
169
  hover: (
165
170
  background-color: $cadmin-gray-100,
@@ -191,7 +196,7 @@ $cadmin-treeview-dark: map-deep-merge(
191
196
  color: $cadmin-primary-l1,
192
197
  ),
193
198
  ),
194
- link: (
199
+ treeview-link: (
195
200
  color: $cadmin-secondary-l1,
196
201
  hover: (
197
202
  background-color: rgba($cadmin-white, 0.04),
@@ -141,3 +141,45 @@ $cadmin-overflows: auto, hidden !default;
141
141
  // Position
142
142
 
143
143
  $cadmin-positions: static, relative, absolute, fixed, sticky !default;
144
+
145
+ // Font Sizes
146
+
147
+ $cadmin-font-sizes: () !default;
148
+ $cadmin-font-sizes: map-deep-merge(
149
+ (
150
+ text-1: (
151
+ font-size: 0.625rem,
152
+ ),
153
+ text-2: (
154
+ font-size: 0.75rem,
155
+ ),
156
+ text-3: (
157
+ font-size: 0.875rem,
158
+ ),
159
+ text-4: (
160
+ font-size: 1rem,
161
+ ),
162
+ text-5: (
163
+ font-size: 1.125rem,
164
+ ),
165
+ text-6: (
166
+ font-size: 1.25rem,
167
+ ),
168
+ text-7: (
169
+ font-size: 1.5rem,
170
+ ),
171
+ text-8: (
172
+ font-size: 1.75rem,
173
+ ),
174
+ text-9: (
175
+ font-size: 2rem,
176
+ ),
177
+ text-10: (
178
+ font-size: 2.25rem,
179
+ ),
180
+ text-11: (
181
+ font-size: 2.5rem,
182
+ ),
183
+ ),
184
+ $cadmin-font-sizes
185
+ );
@@ -158,44 +158,31 @@
158
158
  @extend %aspect-ratio-item-center-middle;
159
159
  }
160
160
 
161
- // 3 to 2
162
-
163
- %aspect-ratio-3-to-2 {
164
- @include clay-aspect-ratio(3, 2);
165
- }
166
-
167
- .aspect-ratio-3-to-2 {
168
- @extend %aspect-ratio-3-to-2;
169
- }
170
-
171
- // 4 to 3
172
-
173
- %aspect-ratio-4-to-3 {
174
- @include clay-aspect-ratio(4, 3);
175
- }
176
-
177
- .aspect-ratio-4-to-3 {
178
- @extend %aspect-ratio-4-to-3;
179
- }
180
-
181
- // 8 to 5
182
-
183
- %aspect-ratio-8-to-5 {
184
- @include clay-aspect-ratio(8, 5);
185
- }
186
-
187
- .aspect-ratio-8-to-5 {
188
- @extend %aspect-ratio-8-to-5;
189
- }
190
-
191
- // 16 to 9
192
-
193
- %aspect-ratio-16-to-9 {
194
- @include clay-aspect-ratio(16, 9);
195
- }
196
-
197
- .aspect-ratio-16-to-9 {
198
- @extend %aspect-ratio-16-to-9;
161
+ // aspect-ratio-#-to-#
162
+
163
+ @each $selector, $value in $aspect-ratio-sizes {
164
+ $selector: if(
165
+ starts-with($selector, '.') or starts-with($selector, '#'),
166
+ $selector,
167
+ str-insert($selector, '.', 1)
168
+ );
169
+
170
+ $placeholder: str-insert(
171
+ str-slice($selector, 2, str-length($selector)),
172
+ '%',
173
+ 1
174
+ );
175
+
176
+ #{$placeholder} {
177
+ @include clay-aspect-ratio(
178
+ map-get($value, width),
179
+ map-get($value, height)
180
+ );
181
+ }
182
+
183
+ #{$selector} {
184
+ @extend #{$placeholder} !optional;
185
+ }
199
186
  }
200
187
 
201
188
  // Bg Contain
@@ -118,7 +118,7 @@ fieldset[disabled] label {
118
118
  }
119
119
 
120
120
  .label {
121
- @include clay-label-size($form-control-label-size);
121
+ @include clay-label-variant($form-control-label-size);
122
122
  }
123
123
  }
124
124
 
@@ -65,3 +65,15 @@ button.link-outline {
65
65
  .component-action {
66
66
  @include clay-link($component-action);
67
67
  }
68
+
69
+ .component-text {
70
+ @include clay-css($component-text);
71
+ }
72
+
73
+ .component-icon {
74
+ @include clay-css($component-icon);
75
+
76
+ .lexicon-icon {
77
+ @include clay-css(map-get($component-icon, lexicon-icon));
78
+ }
79
+ }