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 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_015GeH3y8fwTaTudaD88P57o
This commit is contained in:
co-authored by
Claude Opus 5
parent
d350732913
commit
2efb868f16
+8
-10
@@ -1,15 +1,13 @@
|
|||||||
/* uhhm - the skin over portal's own stylesheet
|
/* uhhm - the skin over portal's own stylesheet
|
||||||
(site.yaml `stylesheet`, loaded after main.css, so these rules win). */
|
(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
|
/* Portal puts the way in beside the wordmark on every page of a site
|
||||||
and answered without an account, so the invitation is not shown.
|
that has sign-in at all, and there is no setting to turn it off:
|
||||||
Whoever edits the site still signs in at /auth/login directly, and
|
`sign_in` follows whether OIDC is enabled on the instance. uhhm.no is
|
||||||
once signed in the nav keeps its name and its way out. */
|
read and answered without an account, so the whole nav goes - signed
|
||||||
.session:has(a[href^="/auth/login"]) {
|
out, where it reads "Sign in", and signed in, where it reads a name
|
||||||
display: none;
|
and "Sign out". Whoever edits the site goes to /auth/login and
|
||||||
}
|
/auth/logout directly. */
|
||||||
|
.session {
|
||||||
/* Without :has(), the link alone goes and the empty nav stays. */
|
|
||||||
.session a[href^="/auth/login"] {
|
|
||||||
display: none;
|
display: none;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user