Created
August 30, 2019 15:15
-
-
Save joviczarko/b84160b93e187a92eba0ec3a21ea9425 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
// Media query mixins | |
@mixin r( $point ) { | |
@if $point=='small' { | |
@media ( max-width: 576px ) { | |
@content; | |
} | |
} | |
@if $point==576 or $point=='mobile' { | |
@media ( min-width: 576px ) { | |
@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