Skip to content

Instantly share code, notes, and snippets.

@joviczarko
Last active April 25, 2020 16:32
Show Gist options
  • Save joviczarko/e4acef80d7c1b58b8ede7780be98b038 to your computer and use it in GitHub Desktop.
Save joviczarko/e4acef80d7c1b58b8ede7780be98b038 to your computer and use it in GitHub Desktop.
Responsive utility (tweaked)
// Media query mixins
@mixin r($point) {
@if $point== "mobile" {
@media (max-width: 767px) {
@content;
}
}
@if $point==768 or $point== "tablet" {
@media (min-width: 768px) {
@content;
}
}
@if $point==992 or $point== "desktop" {
@media (min-width: 992px) {
@content;
}
}
@if $point==1200 or $point== "large" {
@media (min-width: 1200px) {
@content;
}
}
@if $point==1600 or $point== "xlarge" {
@media (min-width: 1600px) {
@content;
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment