Last active
February 24, 2016 19:47
-
-
Save kohlmannj/f7069bf558bed7371fb5 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
// Sass Code | |
.selector { | |
// This mixin's content block will be wrapped in this media query: | |
// `@media (min-width: 540px)` | |
@include size-class(regular) { | |
width: span(5); | |
@include font-size(auto, vw) { | |
// Will output a font-size property and value within a media query: | |
// `@media (max-width: 540px)` | |
@include min-font-size-at(540px); | |
} | |
} | |
} | |
// CSS Output | |
@media (min-width: 540px) { | |
.selector { | |
width: /* whatever width */; | |
font-size: 1.25vw; | |
} | |
} | |
/* This media query below doesn't work */ | |
@media (min-width: 540px) and (max-width: 540px) { | |
.selector { | |
font-size: 6.75px; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment