From 1f58f8ccc79ed37b427ff01a5d0d323fda40d465 Mon Sep 17 00:00:00 2001 From: Storozhenko Evgeny Date: Sun, 20 Sep 2026 07:42:02 +0000 Subject: [PATCH] =?UTF-8?q?fix:=20typewriter=20=D0=BD=D0=B5=20=D0=B7=D0=B0?= =?UTF-8?q?=D0=BC=D0=B8=D1=80=D0=B0=D0=B5=D1=82=20=D0=BD=D0=B0=20=D0=BF?= =?UTF-8?q?=D0=B5=D1=80=D0=B2=D0=BE=D0=BC=20=D1=81=D0=BB=D0=BE=D0=B2=D0=B5?= =?UTF-8?q?=20(reduced-motion=20=D0=BD=D0=B5=20=D0=BE=D1=81=D1=82=D0=B0?= =?UTF-8?q?=D0=BD=D0=B0=D0=B2=D0=BB=D0=B8=D0=B2=D0=B0=D0=B5=D1=82=20=D0=BF?= =?UTF-8?q?=D0=B5=D1=87=D0=B0=D1=82=D1=8C)=20+=20=D0=BF=D0=B5=D1=80=D0=B5?= =?UTF-8?q?=D0=BA=D0=BB=D1=8E=D1=87=D0=B0=D1=82=D0=B5=D0=BB=D1=8C=20=D1=82?= =?UTF-8?q?=D0=B5=D0=BC=D1=8B=20=D0=BF=D1=80=D0=B8=D0=B6=D0=B0=D1=82=20?= =?UTF-8?q?=D0=B2=D0=BF=D1=80=D0=B0=D0=B2=D0=BE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - extend_footer.html: убран ранний return при prefers-reduced-motion — печать идёт всегда, мигание гасится только через CSS (кейфрейм tw-blink уже отключается) - typewriter.css: убрано двойное auto-поле (.logo margin-inline-end:auto конфликтовало с #menu margin-inline-start:auto при justify-content:space-between) — теперь только menu толкает вправо, солнышко встаёт сразу за меню --- assets/css/extended/typewriter.css | 7 +++---- layouts/partials/extend_footer.html | 8 +------- 2 files changed, 4 insertions(+), 11 deletions(-) diff --git a/assets/css/extended/typewriter.css b/assets/css/extended/typewriter.css index e876da6..466e741 100644 --- a/assets/css/extended/typewriter.css +++ b/assets/css/extended/typewriter.css @@ -39,18 +39,17 @@ } .nav > .logo { - order: 0; - margin-inline-end: auto; /* push everything else to the right */ + order: 0; /* logo stays left */ } .nav > #menu { order: 1; - margin-inline-start: auto; /* menu hugs the right edge */ + margin-inline-start: auto; /* push menu (and what follows) to the right */ } .nav > .logo-switches { order: 2; - margin-inline-start: 8px; + margin-inline-start: 16px; /* small gap after the menu */ } /* 2) first post card: same card styling as .post-entry */ diff --git a/layouts/partials/extend_footer.html b/layouts/partials/extend_footer.html index 06a5f27..ccfc4c8 100644 --- a/layouts/partials/extend_footer.html +++ b/layouts/partials/extend_footer.html @@ -26,13 +26,7 @@ a.appendChild(box); a.appendChild(document.createTextNode(text.slice(close))); - // reduced motion: static first word, no animation - if (matchMedia('(prefers-reduced-motion: reduce)').matches) { - box.firstChild.before(document.createTextNode(words[0] || '')); - box.querySelector('.tw-cursor').style.display = 'none'; - return; - } - + // reduced motion: blink is disabled via CSS; keep typing but no blink const TYPE = 90, ERASE = 50, HOLD = 1400, GAP = 400; let w = 0, i = 0, dir = 1; box.querySelector('.tw-cursor').style.display = 'inline-block';