Underscore filename for components

This commit is contained in:
Raphael Goetter 2017-08-28 17:10:31 +02:00
parent c5d37f172f
commit 35c42d2b4b
16 changed files with 16 additions and 16 deletions

View file

@ -0,0 +1,25 @@
/* ----------------------------- */
/* ==Autogrid object */
/* ----------------------------- */
/* see https://codepen.io/raphaelgoetter/pen/zzwxEE */
.autogrid {
@media (min-width: $tiny) {
display: grid;
grid-auto-flow: column;
grid-auto-column: 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;
}
}
}
}