Skip to content

Instantly share code, notes, and snippets.

@acodesmith
Created December 18, 2014 16:27
Show Gist options
  • Save acodesmith/57172b75cc0aad8772d5 to your computer and use it in GitHub Desktop.
Save acodesmith/57172b75cc0aad8772d5 to your computer and use it in GitHub Desktop.
Twitter Bootstrap Floats based on Media Query Breakpoints
/**
Reference ONLY! Variables should be included elsewhere.
$small-lower:'767px';
$medium-lower:'991px';
$large-lower:'1199px';
**/
/**
Floats Based on BreakPoints
**/
//RIGHT
.pull-right-lg {
@media(max-width: $large-lower){
float:right;
}
}
.pull-right-md {
@media(max-width: $medium-lower){
float:right;
}
}
.pull-right-sm {
@media(max-width: $small-lower){
float:right;
}
}
//LEFT
.pull-left-lg {
@media(max-width: $large-lower){
float:left;
}
}
.pull-left-md {
@media(max-width: $medium-lower){
float:left;
}
}
.pull-left-sm {
@media(max-width: $small-lower){
float:left;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment