intégration de (auto)grid dans Grillade

This commit is contained in:
Raphael Goetter 2018-01-04 11:10:34 +01:00
parent 383160ac70
commit e580d2e311
10 changed files with 57 additions and 64 deletions

View file

@ -1,27 +0,0 @@
/* ----------------------------- */
/* ==Autogrid object */
/* ----------------------------- */
/* recommanded HTML : <div class="autogrid">... some elements ...</div> */
/* see https://codepen.io/raphaelgoetter/pen/zzwxEE */
.autogrid,
.grid {
@media (min-width: $tiny) {
display: grid;
grid-auto-flow: column;
grid-auto-columns: 1fr;
// gutters
@if variable_exists(grid-gutters) {
$gutter: $grid-gutters !global;
} @else {
$gutter: ( '': 1rem, '-l': 2rem, '-xl': 4rem ) !global;
}
@each $affix, $size in $gutter {
&.has-gutter#{$affix} {
grid-column-gap: $size;
}
}
}
}