mirror of
https://github.com/jgthms/bulma.git
synced 2024-11-14 11:14:24 +00:00
Allow custom tile denominator
This commit is contained in:
parent
7b844c7156
commit
f560eb990a
@ -1,5 +1,6 @@
|
|||||||
@import "../utilities/mixins"
|
@import "../utilities/mixins"
|
||||||
|
|
||||||
|
$tile-denominator: 12 !default
|
||||||
$tile-spacing: 0.75rem !default
|
$tile-spacing: 0.75rem !default
|
||||||
|
|
||||||
.tile
|
.tile
|
||||||
@ -30,7 +31,7 @@ $tile-spacing: 0.75rem !default
|
|||||||
+tablet
|
+tablet
|
||||||
&:not(.is-child)
|
&:not(.is-child)
|
||||||
display: flex
|
display: flex
|
||||||
@for $i from 1 through 12
|
@for $i from 1 through $tile-denominator
|
||||||
&.is-#{$i}
|
&.is-#{$i}
|
||||||
flex: none
|
flex: none
|
||||||
width: ($i / 12) * 100%
|
width: ($i / $tile-denominator) * 100%
|
||||||
|
Loading…
Reference in New Issue
Block a user