From ae39162933d764cbde5041127428744f3c37a404 Mon Sep 17 00:00:00 2001 From: Milan Stovicek <4922479+mstovicek@users.noreply.github.com> Date: Sun, 1 Nov 2026 20:59:35 +0100 Subject: [PATCH 1/2] Add a scroll-down hint arrow when there is more page below the fold Co-Authored-By: Claude Sonnet 5.5 --- index.html | 26 ++++++++++++++++++++++++++ tests/js/page.test.mjs | 8 ++++++++ 2 files changed, 34 insertions(+) diff --git a/index.html b/index.html index e8fc25c..4d25389 100644 --- a/index.html +++ b/index.html @@ -270,6 +270,20 @@ .bar button[aria-current="page"]{color:var(--gold)} .bar svg{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round} +/* scroll hint: a small arrow above the menu while there is more page below the fold */ +.more{ + position:fixed;left:50%;bottom:calc(var(--navh) + env(safe-area-inset-bottom,0px) + 10px);z-index:20; + width:40px;height:40px;margin-left:-20px;border-radius:50%;border:1px solid var(--line); + background:rgba(44,43,42,.88);color:var(--gold);display:flex;align-items:center;justify-content:center; + padding:0;cursor:pointer;opacity:0;visibility:hidden;transition:opacity .25s,visibility .25s; +} +.more.on{opacity:1;visibility:visible} +.more svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round} +@media (prefers-reduced-motion:no-preference){ + .more.on svg{animation:nudge 1.8s ease-in-out infinite} +} +@keyframes nudge{0%,60%,100%{transform:translateY(-2px)}30%{transform:translateY(3px)}} + @media (prefers-reduced-motion:no-preference){ .chip,.seg button,.bar button{transition:background-color .15s,color .15s} } @@ -305,6 +319,7 @@ +