matcha-core 1.1.14 → 1.1.15

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.
package/core.scss CHANGED
@@ -1310,3 +1310,36 @@ $helper-breakpoints: (
1310
1310
  }
1311
1311
  }
1312
1312
  @include generate-line-clamp-classes($helper-breakpoints);
1313
+
1314
+ // -----------------------------------------------------------------------------------------------------
1315
+ // @ Masonry
1316
+ // -----------------------------------------------------------------------------------------------------
1317
+ @mixin generate-masonry-classes($helper-breakpoints){
1318
+ @each $breakpoint, $materialBreakpoint in $helper-breakpoints {
1319
+ @include media-breakpoint($materialBreakpoint) {
1320
+ $infix: if($materialBreakpoint == null, "", "-#{$breakpoint}");
1321
+ @for $i from 1 through 12 {
1322
+ // Classes para borda geral
1323
+ .masonry#{$infix}-#{$i}{
1324
+ column-count: $i;
1325
+ > *{
1326
+ break-inside: avoid;
1327
+ display: inline-block;
1328
+ width: 100%;
1329
+ }
1330
+ }
1331
+ }
1332
+ @for $i from 0 through 12 {
1333
+ $size: $i * 4;
1334
+ // Classes para borda geral
1335
+ .masonry-gap#{$infix}-#{$size}{
1336
+ column-gap: #{$size}px;
1337
+ > *{
1338
+ margin-bottom: #{$size}px;
1339
+ }
1340
+ }
1341
+ }
1342
+ }
1343
+ }
1344
+ }
1345
+ @include generate-masonry-classes($helper-breakpoints);