From 2efb868f16b0c0463a1d7a4a4240bb0cfb547c4e Mon Sep 17 00:00:00 2001 From: Bendik Lynghaug Date: Tue, 6 Oct 2026 19:27:04 +0200 Subject: [PATCH] Hide the session nav signed in too, not only signed out :has(a[href^="/auth/login"]) only ever matched the signed-out nav, so an owner still had a name and a sign-out beside the wordmark. The header carries the wordmark and nothing else now. Co-Authored-By: Claude Opus 5 Claude-Session: https://claude.ai/code/session_015GeH3y8fwTaTudaD88P57o --- custom.css | 18 ++++++++---------- 1 file changed, 8 insertions(+), 10 deletions(-) diff --git a/custom.css b/custom.css index fb26489..f6f636b 100644 --- a/custom.css +++ b/custom.css @@ -1,15 +1,13 @@ /* uhhm - the skin over portal's own stylesheet (site.yaml `stylesheet`, loaded after main.css, so these rules win). */ -/* The way in sits beside the wordmark on every page. uhhm.no is read - and answered without an account, so the invitation is not shown. - Whoever edits the site still signs in at /auth/login directly, and - once signed in the nav keeps its name and its way out. */ -.session:has(a[href^="/auth/login"]) { - display: none; -} - -/* Without :has(), the link alone goes and the empty nav stays. */ -.session a[href^="/auth/login"] { +/* Portal puts the way in beside the wordmark on every page of a site + that has sign-in at all, and there is no setting to turn it off: + `sign_in` follows whether OIDC is enabled on the instance. uhhm.no is + read and answered without an account, so the whole nav goes - signed + out, where it reads "Sign in", and signed in, where it reads a name + and "Sign out". Whoever edits the site goes to /auth/login and + /auth/logout directly. */ +.session { display: none; }