From 3019f7bcbf01bf44fea07d316b7c4730b656e4f9 Mon Sep 17 00:00:00 2001 From: Dmitry Sharabin Date: Tue, 18 Nov 2025 00:27:13 +0100 Subject: [PATCH] First stab at fixing the primary nav on small viewports MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Introduce a responsive navigation system that “moves” overflowed items into a hamburger menu. These changes make the header adapt to smaller viewports and prevent wrapping/overflow of nav items. - Tweak the corresponding CSS rules and header image sizing (so it doesn’t shrink to 0 width and entirely disappear). --- _includes/partials/_nav-links.njk | 40 +++++++++++----- _includes/plain.njk | 1 + assets/css/style.css | 37 +++++++++++++-- assets/js/nav.js | 77 +++++++++++++++++++++++++++++++ 4 files changed, 140 insertions(+), 15 deletions(-) create mode 100644 assets/js/nav.js diff --git a/_includes/partials/_nav-links.njk b/_includes/partials/_nav-links.njk index 880048b3f..415e7541a 100644 --- a/_includes/partials/_nav-links.njk +++ b/_includes/partials/_nav-links.njk @@ -1,16 +1,34 @@ -Get Color.js -