diff --git a/src/styles/text.css b/src/styles/text.css index 54fb2e6..ea2eb26 100644 --- a/src/styles/text.css +++ b/src/styles/text.css @@ -71,7 +71,12 @@ pre { display: flex; white-space: pre; line-height: 0.8; - font-size: min(2.1vw, 1rem); + /* the longest ascii line of the site is 77 chars (the fr "développement" + title) ; at 0.6em per char, 77 * 0.6 * 1.9vw = 87.8vw, which fits in the + 100vw - 20px left by the two 10px gaps of the section grid. + 2.1vw gave 97vw and overflowed on small screens. the 1rem cap keeps + desktop unchanged */ + font-size: min(1.9vw, 1rem); } .pre_small { font-size: min(1.5vw, 0.7rem);