Skip to content

Instantly share code, notes, and snippets.

@peterldowns
Created February 1, 2013 06:19
Show Gist options
  • Save peterldowns/4689669 to your computer and use it in GitHub Desktop.
Save peterldowns/4689669 to your computer and use it in GitHub Desktop.
Demo of responsive template with mixins.
// Rename:
// .locu-mobile-menu => .mobile-mixin
// .locu-web-menu => .web-mixin
// Then, use the mixins like so
@media screen and (max-width: 480px) {
.mobile-mixin;
}
// Keep this if you want the mobile preview to show your small-screen style
.locu-mobile-menu {
.mobile-mixin;
}
@media screen and (min-width: 481px) {
.web-mixin;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment