2 Commits
Author SHA1 Message Date
hugogogo c886558414 fix pinch-zoom issue 2026-11-19 18:57:42 +01:00
hugogogo f8ab082614 fix title length 2026-11-19 18:54:41 +01:00
2 changed files with 9 additions and 4 deletions
+3 -3
View File
@@ -3,9 +3,9 @@
<head> <head>
<meta charset="UTF-8" /> <meta charset="UTF-8" />
<meta <!-- no maximum-scale / user-scalable=no : they would disable pinch zoom
name="viewport" (and are an accessibility issue, WCAG 1.4.4) -->
content="width=device-width, initial-scale=1, maximum-scale=1" /> <meta name="viewport" content="width=device-width, initial-scale=1" />
<!-- create "fake" favicon : https://stackoverflow.com/questions/1321878/how-to-prevent-favicon-ico-requests --> <!-- create "fake" favicon : https://stackoverflow.com/questions/1321878/how-to-prevent-favicon-ico-requests -->
<link rel="icon" href="data:;base64,iVBORw0KGgo=" /> <link rel="icon" href="data:;base64,iVBORw0KGgo=" />
<title>hugulumu.fr</title> <title>hugulumu.fr</title>
+6 -1
View File
@@ -71,7 +71,12 @@ pre {
display: flex; display: flex;
white-space: pre; white-space: pre;
line-height: 0.8; 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 { .pre_small {
font-size: min(1.5vw, 0.7rem); font-size: min(1.5vw, 0.7rem);