Created
October 24, 2020 10:38
-
-
Save Burick/fb4d660d4cbda8bf4508e6d136969d88 to your computer and use it in GitHub Desktop.
Миксин брекпонинтов
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($point){ | |
@if $point == xs { | |
@media (min-width: 36em) {@content;} | |
} | |
@else if $point == sm { | |
@media (min-width: 48em) {@content;} | |
} | |
@else if $point == md { | |
@media (min-width: 62em) {@content;} | |
} | |
@else if $point == lg { | |
@media (min-width: 74em) {@content;} | |
} | |
@else if $point { // allows custom breakpoints | |
@media (min-width: $point) {@content;} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment