peterramsing / lost

LostGrid is a powerful grid system built in PostCSS that works with any preprocessor and even vanilla CSS.
http://lostgrid.org
MIT License
4.5k stars 160 forks source link

Not applying gutter size #416

Closed clemsontiger closed 6 years ago

clemsontiger commented 6 years ago

I'm definitely doing something wrong here, as it's not applying the 8px gutter size. Keeps using the default. I'm assuming it's something to do with the fact I'm using unquote but not sure...

$grid-columns: 20;
@for $i from 1 through $grid-columns {
        .row .col-#{$i*5} {  
                lost-column: unquote($i + '/' + $grid-columns) 8px;

        }
    }
clemsontiger commented 6 years ago

Ugh, so I totally missed the note.. it was because i was not declaring a cycle. sigh...

"Note: When specifying the gutter, you need to also specify the cycle." So the following works.

$grid-columns: 20;
@for $i from 1 through $grid-columns {
        .row .col-#{$i*5} {  
                lost-column: unquote($i + '/' + $grid-columns) $grid-columns 8px;

        }
    }