talks/drupal-vm-symfony-console/2016-07-23-drupalcamp-bristol/slides/assets/sass/_grid.sass

16 lines
321 B
Sass
Raw Normal View History

2017-07-01 23:51:42 +00:00
=grid($total, $number_of_columns)
width: (100% / $total) * $number_of_columns
[class^=col--]
float: left
margin-bottom: 20px !important
&:last-of-type
float: right
@for $total from 1 through 6
div.col--#{$total}
@for $columns from 1 through $total
&-#{$columns}
+grid($total, $columns)