- commit
- 18a735dc40bdf3d72b86dfda89392c599cc11829
- parent
- 2d0ab6457b0e506b8c329f102205b9dd341c428d
- Author
- Tobias Bengfort <tobias.bengfort@posteo.de>
- Date
- 2025-09-01 06:29
use large viewport units for dynamic font size https://developer.mozilla.org/en-US/docs/Web/CSS/length#large_viewport_units
Diffstat
| M | css/fontsize.css | 4 | ++-- |
1 files changed, 2 insertions, 2 deletions
diff --git a/css/fontsize.css b/css/fontsize.css
@@ -5,7 +5,7 @@ html {
5 5 *
6 6 * The choose the middle value so that the maximum font size will
7 7 * be used until the screen is too small:
8 -1 * `100vi / body-inline-size`
-1 8 * `100lvi / body-inline-size`
9 9 */
10 -1 font-size: clamp(0.9em, 2.5vi, 1.2em);
-1 10 font-size: clamp(0.9em, 2.5lvi, 1.2em);
11 11 }