Added grid
This commit is contained in:
parent
bf0887f123
commit
e77b0d0a34
2 changed files with 21 additions and 0 deletions
20
assets/styles/base/_grid.scss
Normal file
20
assets/styles/base/_grid.scss
Normal file
|
@ -0,0 +1,20 @@
|
|||
.grid {
|
||||
display: grid;
|
||||
grid-gap: $base-spacing-unit;
|
||||
@include resp-max($breakpoint-sm) {
|
||||
grid-gap: $base-spacing-unit / 2;
|
||||
}
|
||||
|
||||
@each $breakpoint in $breakpoints {
|
||||
$name: nth($breakpoint, 1);
|
||||
$declaration: nth($breakpoint, 2);
|
||||
|
||||
@media only screen and #{$declaration} {
|
||||
@for $i from 1 through 6 {
|
||||
&.grid--#{$name}-#{$i}x {
|
||||
grid-template-columns: repeat(#{$i}, 1fr);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue