Skip to content

Instantly share code, notes, and snippets.

@acodesmith
Created December 4, 2015 16:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save acodesmith/6ea67acc9a73f6e78971 to your computer and use it in GitHub Desktop.
Save acodesmith/6ea67acc9a73f6e78971 to your computer and use it in GitHub Desktop.
$directions: right, left;
$sizes: xs, sm, md, lg;
@each $direction in $directions {
@each $size in $sizes {
.pull-#{$direction}-#{$size}{
@if($size == xs){
@media (min-width: $screen-xs-min) {
float:#{$direction};
}
}
@else if($size == sm){
@media (min-width: $screen-sm-min) {
float:#{$direction};
}
}
@else if($size == md){
@media (min-width: $screen-md-min) {
float:#{$direction};
}
}
@else if($size == lg){
@media (min-width: $screen-lg-min) {
float:#{$direction};
}
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment