Last active
August 29, 2015 14:14
-
-
Save davidgg/ecb761f3f6a99e648f06 to your computer and use it in GitHub Desktop.
Media Query mixin for sass
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
@mixin small-device { | |
@media (min-width: #{$small-device}) { | |
@content; | |
} | |
} | |
@mixin mid-device { | |
@media (min-width: #{$mid-device}) { | |
@content; | |
} | |
} | |
@mixin big-device { | |
@media (min-width: #{$big-device}) { | |
@content; | |
} | |
} |
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
p{ | |
font-size: 30px; | |
@include small-device { | |
font-size: 35px; | |
} | |
@include mid-device { | |
font-size: 40px; | |
} | |
@include big-device { | |
font-size: 45px; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment