Created
December 18, 2014 16:27
-
-
Save acodesmith/57172b75cc0aad8772d5 to your computer and use it in GitHub Desktop.
Twitter Bootstrap Floats based on Media Query Breakpoints
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
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