Skip to content

Instantly share code, notes, and snippets.

@droid001
Created February 1, 2018 07:41
Show Gist options
  • Save droid001/ddf2327f2534e291d322284114137274 to your computer and use it in GitHub Desktop.
Save droid001/ddf2327f2534e291d322284114137274 to your computer and use it in GitHub Desktop.
break points min, max, min-max
@mixin break-min($min) {
@media only screen and (min-width: $min) {
@content;
}
}
@mixin break-max($max) {
@media only screen and (max-width: $max - 1px) {
@content;
}
}
@mixin break-min-max($min, $max) {
@media only screen and (min-width: $min) and (max-width: $max - 1px) {
@content;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment