Skip to content

Instantly share code, notes, and snippets.

@NatalieMac
Created November 24, 2013 01:30
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 NatalieMac/7622248 to your computer and use it in GitHub Desktop.
Save NatalieMac/7622248 to your computer and use it in GitHub Desktop.
Sass Breakpoint for Mobile
Setting up breakpoints:
@mixin bp($point) {
@if $point == lg {
@media screen and (min-width: 960px) { @content; }
}
@else if $point == md {
@media screen and (min-width: 600px) { @content; }
}
@else if $point == sm {
@media screen and (max-width: 400px) { @content; }
}
@else if $point == pt {
@media print { @content; }
}
}
Using them:
.menu-toggle {
font-family: $font-title;
@include bp(md) {
display: none;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment