Sass Grid mixin

1
2
/* Based on this : https://css-tricks.com/video-screencasts/132-quick-useful-case-sass-math-mixins/ */
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
Based on this : https://css-tricks.com/video-screencasts/132-quick-useful-case-sass-math-mixins/


Used like this :


$listing-cols: 3 !default;
$listing-cols-margin: 2% !default;


.listing-element{
@include columnandmargin($listing-cols,$listing-cols-margin);
}

@media (max-width:576px){
.listing-element{
@include columnandmargin(2,$listing-cols-margin);
}
}

Be the first to comment

You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.