MediaWiki:Minerva.css: Difference between revisions
imported>Dawning No edit summary |
imported>Dawning mNo edit summary |
||
| Line 3: | Line 3: | ||
html:not(.is-authenticated) .page-actions-overflow, | html:not(.is-authenticated) .page-actions-overflow, | ||
html:not(.is-authenticated) .header-action, | html:not(.is-authenticated) .header-action, | ||
html:not(.is-authenticated) .minerva-drawer, | html:not(.is-authenticated) .minerva-drawer, | ||
body:not(.is-authenticated) .minerva-page-actions-menu, | body:not(.is-authenticated) .minerva-page-actions-menu, | ||
body:not(.is-authenticated) .page-actions-overflow, | body:not(.is-authenticated) .page-actions-overflow, | ||
body:not(.is-authenticated) .header-action, | body:not(.is-authenticated) .header-action, | ||
body:not(.is-authenticated) .minerva-drawer { | body:not(.is-authenticated) .minerva-drawer { | ||
display: none !important; | display: none !important; | ||
| Line 35: | Line 33: | ||
html.is-authenticated .page-actions-overflow, | html.is-authenticated .page-actions-overflow, | ||
html.is-authenticated .header-action, | html.is-authenticated .header-action, | ||
html.is-authenticated .minerva-drawer, | html.is-authenticated .minerva-drawer, | ||
body.is-authenticated .minerva-page-actions-menu, | body.is-authenticated .minerva-page-actions-menu, | ||
body.is-authenticated .page-actions-overflow, | body.is-authenticated .page-actions-overflow, | ||
body.is-authenticated .header-action, | body.is-authenticated .header-action, | ||
body.is-authenticated .minerva-drawer { | body.is-authenticated .minerva-drawer { | ||
display: flex !important; | display: flex !important; | ||
} | } | ||
Revision as of 03:34, 16 October 2025
/* ---------- Hide actions for anonymous users ---------- */
html:not(.is-authenticated) .minerva-page-actions-menu,
html:not(.is-authenticated) .page-actions-overflow,
html:not(.is-authenticated) .header-action,
html:not(.is-authenticated) .minerva-drawer,
body:not(.is-authenticated) .minerva-page-actions-menu,
body:not(.is-authenticated) .page-actions-overflow,
body:not(.is-authenticated) .header-action,
body:not(.is-authenticated) .minerva-drawer {
display: none !important;
}
/* ---------- Show login button for anonymous users ---------- */
html:not(.is-authenticated) #pt-login,
body:not(.is-authenticated) #pt-login {
display: inline-block !important;
background: #2a4b8d;
color: #fff;
padding: 6px 12px;
border-radius: 6px;
font-weight: 600;
margin-right: 0.5rem;
text-decoration: none;
}
/* ---------- Style login button ---------- */
#pt-login:hover {
background: #365fb8;
}
/* ---------- Ensure logged-in users see everything ---------- */
html.is-authenticated .minerva-page-actions-menu,
html.is-authenticated .page-actions-overflow,
html.is-authenticated .header-action,
html.is-authenticated .minerva-drawer,
body.is-authenticated .minerva-page-actions-menu,
body.is-authenticated .page-actions-overflow,
body.is-authenticated .header-action,
body.is-authenticated .minerva-drawer {
display: flex !important;
}