From 5b12c85f7489cd51d02bf0b17632ae6dac5a74bf Mon Sep 17 00:00:00 2001 From: mattbox03 <26332097+mattbox03@users.noreply.github.com> Date: Thu, 19 Nov 2026 15:52:44 +0100 Subject: [PATCH] site: the phone header scrolls with the page Sticky, the phone header stayed on screen with the menu open (425 px of an 812 px viewport) and could cover the page heading; its translucent blurred background is also a known source of stuck repaints on mobile browsers. Below 761 px it is now an ordinary opaque bar at the top of the page. Wider layouts keep the sticky header. --- website/assets/site.css | 3 +++ 1 file changed, 3 insertions(+) diff --git a/website/assets/site.css b/website/assets/site.css index 22dcc44..86511f5 100644 --- a/website/assets/site.css +++ b/website/assets/site.css @@ -185,6 +185,9 @@ summary { cursor: pointer; font-weight: 600; } .hero { grid-template-columns: 1fr; padding-top: 32px; } } @media (max-width: 760px) { + /* Phones: the header scrolls with the page. Sticky, it stayed on screen with + * the menu open (over half the viewport) and could hide the page heading. */ + .top { position: relative; backdrop-filter: none; background: var(--bg); } .tools .menu { display: inline-flex; } .tools .theme { display: none; } /* phones: the board icon takes its place; the theme follows the phone */ .top-inner { flex-wrap: wrap; gap: 8px; }