Use clamp() for fluid font size

docs
gravel 3 years ago
parent c8aeeb3581
commit 4833ed4847
Signed by: gravel
SSH Key Fingerprint: SHA256:p4HP49CCk4YQMkJpWJ09L8peEPQWjERtdCRAFxPfbOY

@ -1,6 +1,5 @@
html {
/* Not these hacks again. */
font-size: calc(1vmin + 1vw);
font-size: clamp(10px, 2vw, 18px);
}
html.js .noscript {

Loading…
Cancel
Save