Hide the session nav signed in too, not only signed out
Lint and reload / lint (push) Successful in 2s
Lint and reload / reload (push) Successful in 0s

: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 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_015GeH3y8fwTaTudaD88P57o
This commit is contained in:
Bendik Lynghaug
2026-10-06 19:27:04 +02:00
co-authored by Claude Opus 5
parent d350732913
commit 2efb868f16
+8 -10
View File
@@ -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;
}