From f560eb990a38d8d4db3dd132ef5db9ec068582fd Mon Sep 17 00:00:00 2001 From: Leonard Date: Mon, 16 Nov 2020 11:10:05 +0100 Subject: [PATCH] Allow custom tile denominator --- sass/grid/tiles.sass | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/sass/grid/tiles.sass b/sass/grid/tiles.sass index ebd136f6..2ef5d20c 100644 --- a/sass/grid/tiles.sass +++ b/sass/grid/tiles.sass @@ -1,5 +1,6 @@ @import "../utilities/mixins" +$tile-denominator: 12 !default $tile-spacing: 0.75rem !default .tile @@ -30,7 +31,7 @@ $tile-spacing: 0.75rem !default +tablet &:not(.is-child) display: flex - @for $i from 1 through 12 + @for $i from 1 through $tile-denominator &.is-#{$i} flex: none - width: ($i / 12) * 100% + width: ($i / $tile-denominator) * 100%