Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
38 lines (29 sloc) 932 Bytes
@function strip-unit($value)
@return $value / ($value * 0 + 1)
=fluid-scale($properties, $min-vw, $max-vw, $min-value, $max-value)
@each $property in $properties
#{$property}: $min-value
@media screen and (min-width: $min-vw)
@each $property in $properties
#{$property}: calc(#{$min-value} + #{strip-unit($max-value - $min-value)} * (100vw - #{$min-vw}) / #{strip-unit($max-vw - $min-vw)})
@media screen and (min-width: $max-vw)
@each $property in $properties
#{$property}: $max-value
clear: both
content: ""
display: table
text-transform: uppercase
letter-spacing: 1px
position: absolute
top: 50%
-webkit-transform: translateY(-50%)
-ms-transform: translateY(-50%)
transform: translateY(-50%)
-webkit-transform-style: preserve-3d
-moz-transform-style: preserve-3d
transform-style: preserve-3d