From 98d49f1f584e9d50e0b84791602c4ac61e0aae07 Mon Sep 17 00:00:00 2001 From: ml-uni <43490189+ml-uni@users.noreply.github.com> Date: Mon, 24 Sep 2018 09:14:03 +0200 Subject: [PATCH] Add $cols to grid system --- sass/_library/grillade-grid.scss | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sass/_library/grillade-grid.scss b/sass/_library/grillade-grid.scss index f205a31..8a87829 100644 --- a/sass/_library/grillade-grid.scss +++ b/sass/_library/grillade-grid.scss @@ -57,14 +57,14 @@ $medium: 768px !default; } // grid constructor (.grid-2 to .grid-12) -@for $i from 2 through 12 { +@for $i from 2 through $cols { [class*="grid-#{$i}"] { grid-template-columns: repeat(#{$i}, 1fr); } } -// grid items constructor (.col-1 to .col-12, .row-1 to .row-12) -@for $i from 1 through 12 { +// grid items constructor (.col-1 to .col-$cols, .row-1 to .row-$cols) +@for $i from 1 through $cols { [class*="col-#{$i}"] { grid-column: auto / span #{$i}; }