Skip to content

Instantly share code, notes, and snippets.

View engray's full-sized avatar

Matthias engray

View GitHub Profile
@engray
engray / vmax-poly.scss
Last active May 25, 2021 20:39
css vmax polyfill as sass function IE 10/11
// vmax polyfill as sass function
// should work also in IE 10/11
@function vmaxCalc($vmax) {
@return calc(#{$vmax} * (#{1vw} + #{1vh} - #{1vmin}));
}
// usage:
width: vmaxCalc(75);