Last active
August 29, 2015 14:19
-
-
Save magicspon/b101ed86c17f2e9fc523 to your computer and use it in GitHub Desktop.
Generated by SassMeister.com.
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>I'm text yeah</h1> |
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
// ---- | |
// libsass (v3.1.0) | |
// ---- | |
@function resp-font($min, $max, $start, $stop) { | |
$m: $min * 1px; | |
$s: $start * 1px; | |
@return calc( #{$m} + (#{$max} - #{$min}) * ( (100vw - #{$s}) / ( #{$stop} - #{$start}) )); | |
} | |
h1 { | |
font-size: resp-font(16,48,970,1600); | |
} |
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 { | |
font-size: calc( 16px + (48 - 16) * ( (100vw - 970px) / ( 1600 - 970) )); } |
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>I'm text yeah</h1> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment