@clayui/css 3.130.0 → 3.132.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.
@@ -862,6 +862,16 @@ $user-card: map-deep-merge(
862
862
  $user-card
863
863
  );
864
864
 
865
+ $card-page: () !default;
866
+ $card-page: map-deep-merge(
867
+ (
868
+ container-name: c-card-page,
869
+ container-type: inline-size,
870
+ extend: '%clay-custom-grid-wrapper',
871
+ ),
872
+ $card-page
873
+ );
874
+
865
875
  // Card Page Item Asset
866
876
 
867
877
  // base: min-width 0, sm min-width: 576px, md: min-width: 768px,
@@ -870,27 +880,30 @@ $user-card: map-deep-merge(
870
880
  $card-page-item-asset: () !default;
871
881
  $card-page-item-asset: map-deep-merge(
872
882
  (
873
- base: (
874
- breakpoint: 0,
875
- min-width: 193px,
876
- padding-left: $grid-gutter-width * 0.5,
877
- padding-right: $grid-gutter-width * 0.5,
878
- ),
879
- sm: (
880
- breakpoint: map-get($grid-breakpoints, sm),
883
+ flex-basis: 100%,
884
+ max-width: 100%,
885
+ padding-left: $grid-gutter-width * 0.5,
886
+ padding-right: $grid-gutter-width * 0.5,
887
+ '@container #{map-get($card-page, container-name)} (min-width: #{map-get($container-max-widths, sm)})':
888
+ (
881
889
  flex-basis: 50%,
882
890
  max-width: 50%,
883
891
  ),
884
- md: (
885
- breakpoint: map-get($grid-breakpoints, md),
886
- flex-basis: 33.3333%,
887
- max-width: 33.3333%,
892
+ '@container #{map-get($card-page, container-name)} (min-width: #{map-get($container-max-widths, md)})':
893
+ (
894
+ flex-basis: 33.33333%,
895
+ max-width: 33.33333%,
888
896
  ),
889
- lg: (
890
- breakpoint: map-get($grid-breakpoints, lg),
897
+ '@container #{map-get($card-page, container-name)} (min-width: #{map-get($container-max-widths, lg)})':
898
+ (
891
899
  flex-basis: 25%,
892
900
  max-width: 25%,
893
901
  ),
902
+ '@container #{map-get($card-page, container-name)} (min-width: #{map-get($container-max-widths, xl)})':
903
+ (
904
+ flex-basis: 20%,
905
+ max-width: 20%,
906
+ ),
894
907
  ),
895
908
  $card-page-item-asset
896
909
  );
@@ -901,26 +914,7 @@ $card-page-item-asset: map-deep-merge(
901
914
 
902
915
  $card-page-item-user: () !default;
903
916
  $card-page-item-user: map-deep-merge(
904
- (
905
- base: (
906
- breakpoint: 0,
907
- flex-basis: 50%,
908
- max-width: 50%,
909
- padding-left: $grid-gutter-width * 0.5,
910
- padding-right: $grid-gutter-width * 0.5,
911
- ),
912
- sm: (
913
- breakpoint: map-get($grid-breakpoints, sm),
914
- flex-basis: 33.33333%,
915
- max-width: 33.33333%,
916
- min-width: 200px,
917
- ),
918
- lg: (
919
- breakpoint: map-get($grid-breakpoints, lg),
920
- flex-basis: 20%,
921
- max-width: 20%,
922
- ),
923
- ),
917
+ $card-page-item-asset,
924
918
  $card-page-item-user
925
919
  );
926
920
 
@@ -96,6 +96,54 @@ $loading-animation-squares: map-deep-merge(
96
96
  transform: scale(2),
97
97
  width: 1em,
98
98
  ),
99
+ 'prefers-reduced-motion': (
100
+ display: block,
101
+ height: 1em,
102
+ margin-left: auto,
103
+ margin-right: auto,
104
+ overflow: hidden,
105
+ position: relative,
106
+ text-align: left,
107
+ vertical-align: middle,
108
+ width: 1em,
109
+ '&::before': (
110
+ animation: loading-animation-circle 1s linear infinite,
111
+ background-color: transparent,
112
+ border-radius: 50%,
113
+ box-shadow: -0.03125em -0.375em 0 0 currentColor,
114
+ content: '',
115
+ display: block,
116
+ font-size: inherit,
117
+ height: 0.25em,
118
+ left: 50%,
119
+ margin-left: -0.125em,
120
+ margin-top: -0.125em,
121
+ opacity: inherit,
122
+ position: absolute,
123
+ top: 50%,
124
+ transform: none,
125
+ width: 0.25em,
126
+ ),
127
+ '&::after': (
128
+ animation: loading-animation-circle 1s linear infinite,
129
+ background-color: currentColor,
130
+ border-radius: 50%,
131
+ content: '',
132
+ display: block,
133
+ font-size: inherit,
134
+ height: 1em,
135
+ left: auto,
136
+ -webkit-mask: #{conic-gradient(transparent 10%, #000),
137
+ linear-gradient(#000 0 0) content-box},
138
+ -webkit-mask-composite: source-out,
139
+ mask-composite: subtract,
140
+ padding: 0.25em,
141
+ position: relative,
142
+ top: auto,
143
+ transform: none,
144
+ width: 1em,
145
+ ),
146
+ ),
99
147
  ),
100
148
  $loading-animation-squares
101
149
  );
@@ -798,22 +798,6 @@ $c-prefers-reduced-motion: map-merge(
798
798
  (
799
799
  scroll-behavior: auto,
800
800
  transition: clay-enable-transitions(none),
801
- '.loading-animation-squares': (
802
- '&::before': (
803
- background-color: transparent,
804
- display: block,
805
- font-size: inherit,
806
- opacity: inherit,
807
- transform: none,
808
- ),
809
- '&::after': (
810
- font-size: inherit,
811
- left: auto,
812
- position: relative,
813
- top: auto,
814
- transform: none,
815
- ),
816
- ),
817
801
  ),
818
802
  $c-prefers-reduced-motion
819
803
  );