Skip to content

Instantly share code, notes, and snippets.

@seven-phases-max
Last active April 24, 2018 06:12
Show Gist options
  • Save seven-phases-max/a0348ed8a6fbe09e72e4abae37e74d28 to your computer and use it in GitHub Desktop.
Save seven-phases-max/a0348ed8a6fbe09e72e4abae37e74d28 to your computer and use it in GitHub Desktop.
@font-size-min: 16px;
@font-size-max: 18px;
@font-size-diff: (@font-size-max - @font-size-min);
body {
.eval(@font-size-diff);
font-size: calc((100vw - @font-size-min) / @eval-result);
}
.eval(@expr) {
@eval-result: @expr;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment