Skip to content

Instantly share code, notes, and snippets.

@NickDeckerDevs
Created April 30, 2018 16:56
Show Gist options
  • Select an option

  • Save NickDeckerDevs/910ed3422e83c1491eb963944a7ce5e5 to your computer and use it in GitHub Desktop.

Select an option

Save NickDeckerDevs/910ed3422e83c1491eb963944a7ce5e5 to your computer and use it in GitHub Desktop.
sass breakpoints
@mixin breakpoint($point) {
@if $point == desktopwide {
@media (min-width: 77em) {
@content ;
}
}
@else if $point == desktop {
@media (min-width: 64em) {
@content ;
}
}
@else if $point == tablet {
@media (min-width: 50em) {
@content ;
}
}
@else if $point == mobile {
@media (min-width: 37.5em) {
@content ;
}
}
@else if $point == phone {
@media (max-width: 37.5em) {
@content ;
}
}
@else {
@media (min-width: $point) {
@content ;
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment