Created
December 25, 2020 11:22
-
-
Save KamaMakh/400b528e9d36cbf2d319a8e7b46e13f8 to your computer and use it in GitHub Desktop.
scss media queries
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
$lg: 1920px; | |
$md: 1280px; | |
$sm: 768px; | |
$xs: 360px; | |
@mixin xs { | |
@media (max-width: $sm - 1px) { | |
@content; | |
} | |
} | |
@mixin sm { | |
@media (min-width: $sm) and (max-width: $md - 1px) { | |
@content; | |
} | |
} | |
@mixin md { | |
@media (min-width: $md) and (max-width: $lg - 1px) { | |
@content; | |
} | |
} | |
@mixin lg { | |
@media (min-width: $lg + 1px) { | |
@content; | |
} | |
} | |
@mixin lg- { | |
@media (max-width: $lg - 1px) { | |
@content; | |
} | |
} | |
@mixin md- { | |
@media (max-width: $md - 1px) { | |
@content; | |
} | |
} | |
@mixin sm- { | |
@media (max-width: $sm - 1px) { | |
@content; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment