From a5032fc06a39b08ab506de7abcf873cff47da968 Mon Sep 17 00:00:00 2001 From: Derek Lewis Date: Wed, 26 Aug 2026 21:29:19 +0000 Subject: [PATCH] =?UTF-8?q?=F0=9F=92=84=E2=9C=A8=EF=BC=9Alet=20the=20tab?= =?UTF-8?q?=20mark=20answer=20to=20the=20theme?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The mark went out black and white and stayed that way, so a dark tab bar got a bright white disc: legible, but louder than anything else on the site and in colors the site does not use. It reads `prefers-color-scheme` now and is drawn in the ink and the parchment, which is the browser's own theme rather than the page's -- a mark sits in the chrome, and the chrome is what it has to be legible against. `inlineStyles` had to come off the optimizer. It folds a stylesheet into the attributes it applies to and drops what is left, which for a mark that answers to a media query means keeping one theme and losing the other, silently. It costs 26 bytes across thirty files. The link that asks for it was three things at once: an icon, a preload, and a subresource integrity check. The hash was of the file as written rather than the file as served, so it described bytes nobody receives, and the browser said as much on every page load -- integrity is ignored for a destination that does not support it. It is an icon now. Signed-off-by: Derek Lewis Assisted-by: Claude-Code:claude-opus-5 Fixes: https://github.com/OpenINF/openinf.github.io/issues/1544 --- _assets/img/logogram.svg | 28 +++++++++++++++++++++++++++- _includes/head.liquid | 9 +-------- eleventy.config.mjs | 20 ++++++++++++++++++-- 3 files changed, 46 insertions(+), 11 deletions(-) diff --git a/_assets/img/logogram.svg b/_assets/img/logogram.svg index 0fe52cc77..5a8588e61 100644 --- a/_assets/img/logogram.svg +++ b/_assets/img/logogram.svg @@ -9,8 +9,34 @@ *****************************************************************************--> The OpenINF Logo - + + diff --git a/_includes/head.liquid b/_includes/head.liquid index 04558622c..37c718bff 100644 --- a/_includes/head.liquid +++ b/_includes/head.liquid @@ -5,14 +5,7 @@ from anyone who needs it. {%- endcomment -%} - + { + const shrinkSvg = (svg, config = svgo) => { const optimized = optimizeSvg(svg, config).data; if (hasViewBox(svg) && !hasViewBox(optimized)) {