Last active
March 21, 2019 18:45
-
-
Save kieranphilipbrown/75f83b8de9a38c1d6f16904421ba6e9f to your computer and use it in GitHub Desktop.
Custom Sass Breakpoint Mixin
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@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