Skip to content

Instantly share code, notes, and snippets.

@kieranphilipbrown
Last active March 21, 2019 18:45
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 kieranphilipbrown/75f83b8de9a38c1d6f16904421ba6e9f to your computer and use it in GitHub Desktop.
Save kieranphilipbrown/75f83b8de9a38c1d6f16904421ba6e9f to your computer and use it in GitHub Desktop.
Custom Sass Breakpoint Mixin
@mixin breakpoint($breakpoint-value) {
@media (min-width: #{$breakpoint-value + 'px'}) {
@content;
}
}
.header {
background: orange;
@include breakpoint(400) {
background: green;
}
@include breakpoint(600) {
background: blue;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment