Last active
June 19, 2020 19:42
-
-
Save orl99/9ec52e39f91106163ae0a262447e0069 to your computer and use it in GitHub Desktop.
A set of common SCSS media queries Mixins for any SCSS project
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
$breakpoints: ( | |
s: 0, // Todos los tamaños, | |
sm: 540px, | |
m: 768px, // ~ 768px | |
lg: 960px, // ~ 960px | |
xl: 1200// ~1200 | |
); | |
$breakpoint-sm: 540px; | |
$breakpoint-s: 0; | |
$breakpoint-md: 768px; | |
$breakpoint-lg: 960px; | |
$breakpoint-xl: 1200; | |
//@import './breakPoints'; | |
@mixin sm { | |
@media screen and (min-width: $breakpoint-sm) { | |
@content; | |
} | |
} | |
@mixin md { | |
@media screen and (min-width: $breakpoint-md) { | |
@content; | |
} | |
} | |
@mixin lg { | |
@media screen and (min-width: $breakpoint-lg) { | |
@content; | |
} | |
} | |
@mixin xl { | |
@media screen and (min-width: $breakpoint-xl) { | |
@content; | |
} | |
} | |
@mixin tablet-ipad-lg { | |
@media (min-width: 1025px) and (max-width: 1280px) and (min-height: 1000px) { | |
//CSS | |
@content; | |
} | |
} | |
@mixin tablet-ipad-s { | |
@media (min-width: 768px) and (max-width: 1024px) and (min-height: 1000px) { | |
//CSS | |
@content; | |
} | |
/* | |
##Device = Tablets, Ipads (portrait) | |
##Screen = B/w 768px to 1024px | |
*/ | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment