jun01ito
5/10/2017 - 6:25 AM

cols sass

cols sass

$colSplit: 32;

@mixin grids($cols,$cols-i) {
	width:(100% / ($cols/$cols-i));
}

@mixin grids-ml($cols,$cols-i) {
	margin-left:(100% / ($cols/$cols-i));
}
@mixin grids-mr($cols,$cols-i) {
	margin-right:(100% / ($cols/$cols-i));
}
@mixin grids-pl($cols,$cols-i) {
	padding-left:(100% / ($cols/$cols-i));
}
@mixin grids-pr($cols,$cols-i) {
	padding-right:(100% / ($cols/$cols-i));
}


@include grids(18,7);
@include grids($colSplit,18);