Permalink
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
=clearfix
&::after
clear: both
content: ""
display: table
=uppercase
text-transform: uppercase
letter-spacing: 1px
=vertical-center
position: absolute
top: 50%
-webkit-transform: translateY(-50%)
-ms-transform: translateY(-50%)
transform: translateY(-50%)
=vertical-parent
-webkit-transform-style: preserve-3d
-moz-transform-style: preserve-3d
transform-style: preserve-3d