From 068c3223b91ca52aa76afc43454502f18820b013 Mon Sep 17 00:00:00 2001 From: iacore Date: Wed, 11 Nov 2026 14:31:25 +0800 Subject: [PATCH] Label the social icons in the collapsed mobile menu On a narrow screen the nav collapses to a vertical list, where GitHub, Twitter, the Fediverse account and contact each appeared as a bare glyph. The reader has to know four logos to find the link. The menu now prints a label beside each icon below 46rem, matching the text of the other collapsed entries, and keeps the icons alone on wider screens. The icon spans are marked aria-hidden so the new text is the accessible name. --- _includes/menu.html | 8 ++++---- css/style.sass | 8 ++++++++ 2 files changed, 12 insertions(+), 4 deletions(-) diff --git a/_includes/menu.html b/_includes/menu.html index ba73f798..af736e2c 100644 --- a/_includes/menu.html +++ b/_includes/menu.html @@ -30,10 +30,10 @@
  • SASL Mechanisms
  • -
  • -
  • -
  • -
  • +
  • GitHub
  • +
  • Twitter/X
  • +
  • Fediverse/Mastodon
  • +
  • Contact
  • diff --git a/css/style.sass b/css/style.sass index 2a76c129..b277c544 100644 --- a/css/style.sass +++ b/css/style.sass @@ -92,6 +92,14 @@ body top: 0.165em position: relative +// only widens the icons to a label on the collapsed menu +.links .iconsep a .iconsep-label + display: none + @include mobile + display: inline-block + margin-left: 0.6rem + vertical-align: 0.12em + .navbar-dropper float: right padding: 0.8rem