2022-03-24 17:54:53 -04:00
|
|
|
// ==========================================================================
|
|
|
|
|
// Tools / Grid Columns
|
|
|
|
|
// ==========================================================================
|
|
|
|
|
|
|
|
|
|
//
|
|
|
|
|
// Grid layout system.
|
|
|
|
|
//
|
|
|
|
|
// This tool generates columns for all needed media queries.
|
|
|
|
|
// Unused classes will be purge by the css post-processor.
|
|
|
|
|
//
|
|
|
|
|
|
|
|
|
|
$colsMax: $base-column-nb + 1;
|
|
|
|
|
|
2023-02-01 10:23:43 +01:00
|
|
|
@each $breakpoint, $mediaquery in $breakpoints {
|
2022-03-24 17:54:53 -04:00
|
|
|
@for $fromIndex from 1 through $colsMax {
|
|
|
|
|
@for $toIndex from 1 through $colsMax {
|
2023-06-15 17:28:06 +02:00
|
|
|
|
|
|
|
|
// Columns without media query
|
|
|
|
|
@if $breakpoint == "tiny" {
|
2022-03-24 17:54:53 -04:00
|
|
|
.u-gc-#{$fromIndex}\/#{$toIndex} {
|
2023-02-01 10:23:43 +01:00
|
|
|
--gc-start: #{$fromIndex};
|
|
|
|
|
--gc-end: #{$toIndex};
|
2022-03-24 17:54:53 -04:00
|
|
|
}
|
2023-06-15 17:28:06 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Columns min-width breakpoints `@from-*`
|
|
|
|
|
.u-gc-#{$fromIndex}\/#{$toIndex}\@from-#{$breakpoint} {
|
|
|
|
|
@media #{mq-min($breakpoint)} {
|
|
|
|
|
--gc-start: #{$fromIndex};
|
|
|
|
|
--gc-end: #{$toIndex};
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Columns max-width breakpoints @to-*`
|
|
|
|
|
.u-gc-#{$fromIndex}\/#{$toIndex}\@to-#{$breakpoint} {
|
|
|
|
|
@media #{mq-max($breakpoint)} {
|
|
|
|
|
--gc-start: #{$fromIndex};
|
|
|
|
|
--gc-end: #{$toIndex};
|
2022-03-24 17:54:53 -04:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|