Skip to content

Instantly share code, notes, and snippets.

@orl99
Last active June 19, 2020 19:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save orl99/9ec52e39f91106163ae0a262447e0069 to your computer and use it in GitHub Desktop.
Save orl99/9ec52e39f91106163ae0a262447e0069 to your computer and use it in GitHub Desktop.
A set of common SCSS media queries Mixins for any SCSS project
$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