From ef6bff895aec836667d00b428c1eaed268715737 Mon Sep 17 00:00:00 2001 From: Pontoporeia Date: Mon, 8 Jun 2026 12:16:21 +0200 Subject: [PATCH] admin nav-logo: grid layout for icon+text horizontal alignment and vertical centering --- TODO.md | 1 + app/public/assets/css/admin.css | 8 +++++--- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/TODO.md b/TODO.md index 8215ecf..df37886 100644 --- a/TODO.md +++ b/TODO.md @@ -2,3 +2,4 @@ - [x] Standardise all links (including header) to be heavy (font-weight: 600) and add violet accent color on hover - [x] Remove border-radius from aria-current nav links, drop a:focus-visible ring in header, consolidate border-bottom/padding in shared header.css +- [x] Admin nav-logo: use grid layout with SVG + text horizontally aligned and vertically centered diff --git a/app/public/assets/css/admin.css b/app/public/assets/css/admin.css index ae96efc..5f34d77 100644 --- a/app/public/assets/css/admin.css +++ b/app/public/assets/css/admin.css @@ -33,9 +33,11 @@ } /* Public-site link icon in admin nav */ -.admin-body header nav .nav-logo svg { - vertical-align: middle; - margin-right: 0.4em; +.admin-body header nav .nav-logo { + display: grid; + grid-auto-flow: column; + align-items: center; + column-gap: 0.4em; }