- commit
- 6850d6becd057787a2deda986dcaf3103a42face
- parent
- 5ec3b241646ddbb757ceb831f9583670642ed55e
- Author
- Tobias Bengfort <tobias.bengfort@posteo.de>
- Date
- 2024-11-22 05:24
document dynamic font size parameters
Diffstat
| M | css/fontsize.css | 8 | ++++++++ |
1 files changed, 8 insertions, 0 deletions
diff --git a/css/fontsize.css b/css/fontsize.css
@@ -1,3 +1,11 @@ 1 1 html { -1 2 /* How to pick these parameters -1 3 * -1 4 * First, decide on a maximum and minimum font size. -1 5 * -1 6 * The choose the middle value so that the maximum font size will -1 7 * be used until the screen is too small: -1 8 * `100vi / body-inline-size` -1 9 */ 2 10 font-size: clamp(0.9em, 2.5vi, 1.2em); 3 11 }