Last active
September 19, 2022 10:05
-
-
Save hyperframed/66e9ce0ba5c87846e4263e6101d751ad to your computer and use it in GitHub Desktop.
SASS Mixin for Breakpoints
This file contains hidden or 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 bpmax($breakpoint) { | |
@media all and (max-width:($breakpoint+px)) { | |
@content; | |
} | |
} | |
@mixin bpmin($breakpoint) { | |
@media all and (min-width:($breakpoint+px)) { | |
@content; | |
} | |
} | |
@mixin bpminmax($breakpointmin, $breakpointmax) { | |
@media all and (min-width:($breakpointmin+px)) and (max-width:($breakpointmax+px)) { | |
@content; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment