Last active
December 22, 2015 09:58
-
-
Save Haraldson/6455126 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
h1 { | |
@include responsive-property('font-size', 32); | |
} | |
@mixin responsive-property($property, $pxValue) { | |
#{$property}: #{$pxValue}px; | |
@media only screen and (max-width: #{$containerW}px) { | |
#{$property}: $pxValue * 0.1rem; | |
#{$property}: $pxValue * (100 / $containerW) * 1vw; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment