Created
September 5, 2012 14:24
-
-
Save simonsmith/3637429 to your computer and use it in GitHub Desktop.
Mobile first responsive classes, taken from Bootstrap
This file contains 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
@tablet: 46.875em; // Approx 750px - Larger Tablets upwards | |
@desktop: 75em; // Approx 1200px - Desktops | |
.mobile() { | |
.visible-phone { display: block; } | |
.visible-tablet { display: none; } | |
.visible-desktop { display: none; } | |
.hidden-phone { display: none; } | |
.hidden-tablet { display: block; } | |
.hidden-desktop { display: block; } | |
} | |
.tablet() { | |
.visible-phone { display: none; } | |
.visible-tablet { display: block; } | |
.hidden-phone { display: block; } | |
.hidden-tablet { display: none; } | |
} | |
.desktop() { | |
.visible-tablet { display: none; } | |
.visible-desktop { display: block; } | |
.hidden-tablet { display: block; } | |
.hidden-desktop { display: none; } | |
} | |
.mobile; | |
@media all and (min-width: @tablet) { | |
.tablet; | |
} | |
@media all and (min-width: @desktop) { | |
.desktop; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment