Skip to content

Instantly share code, notes, and snippets.

@briznad
briznad / grid.scss
Created Nov 3, 2018
better sass grid
View grid.scss
@function _grid($columns, $total-columns: 12, $breakpoint: small, $external: true) {
$gutter-compensation: null;
$gutter-width: map-get($grid-gutters, $breakpoint);
@if $external {
$gutter-compensation: $gutter-width * 0.5;
} @else {
$gutter-compensation: $gutter-width * -1;
}
You can’t perform that action at this time.