Created
May 29, 2023 09:26
-
-
Save nihat-js/14dbb59fddcce07e3929b40587731fd6 to your computer and use it in GitHub Desktop.
Breakpoint mixin in scss
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 breakpointt ($size : 'sm') { | |
$all : (sm : "320px", | |
md :"768px", | |
lg : "1200px", | |
); | |
@if (map-has-key($all, $size )) { | |
$size : map-get($all, $size ); | |
@media screen and (min-width: $size ) { | |
@content; | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment