Skip to content

Instantly share code, notes, and snippets.

@glinesbdev
Created October 11, 2014 18:06
Show Gist options
  • Save glinesbdev/d817fa0fa83c6d2f6632 to your computer and use it in GitHub Desktop.
Save glinesbdev/d817fa0fa83c6d2f6632 to your computer and use it in GitHub Desktop.
SASS
$col-numbers: "1", "2", "3", "4", "5", "6",
"7", "8", "9", "10", "11", "12";
$selector: ();
@each $item in $col-numbers {
$selector: append($selector, unquote('.col-md-#{$item}'), comma);
}
#{$selector} {
padding-right: 0px;
padding-left: 0px;
}
#=>
.col-md-1, .col-md-2, .col-md-3, .col-md-4, .col-md-5, .col-md-6, .col-md-7, .col-md-8, .col-md-9, .col-md-10, .col-md-11, .col-md-12 {
padding-right: 0px;
padding-left: 0px; }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment