mirror of
https://github.com/locomotivemtl/locomotive-boilerplate.git
synced 2026-01-15 00:55:08 +08:00
42 lines
1.2 KiB
SCSS
42 lines
1.2 KiB
SCSS
// ==========================================================================
|
|
// 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;
|
|
|
|
$breakpoints: (
|
|
"null" null,
|
|
"from-tiny" $from-tiny,
|
|
"from-small" $from-small,
|
|
"from-medium" $from-medium,
|
|
"from-large" $from-large,
|
|
"from-big" $from-big
|
|
) !default;
|
|
|
|
@each $breakpoint, $mediaquery in $breakpoints {
|
|
@for $fromIndex from 1 through $colsMax {
|
|
@for $toIndex from 1 through $colsMax {
|
|
@if $mediaquery == null {
|
|
.u-gc-#{$fromIndex}\/#{$toIndex} {
|
|
--gc-start: #{$fromIndex};
|
|
--gc-end: #{$toIndex};
|
|
}
|
|
} @else {
|
|
.u-gc-#{$fromIndex}\/#{$toIndex}\@#{$breakpoint} {
|
|
@media (min-width: #{$mediaquery}) {
|
|
--gc-start: #{$fromIndex};
|
|
--gc-end: #{$toIndex};
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|