MediaWiki:Minerva.css: Difference between revisions
imported>Dawning No edit summary |
imported>Dawning No edit summary |
||
| Line 1: | Line 1: | ||
/* ---------- Hide actions for anonymous users ---------- */ | /* ---------- Hide actions for anonymous users ---------- */ | ||
html:not(. | html:not(.is-authenticated) .minerva-page-actions-menu, | ||
html:not(. | html:not(.is-authenticated) .page-actions-overflow, | ||
html:not(. | html:not(.is-authenticated) .header-action, | ||
html:not(. | html:not(.is-authenticated) .minerva-user-menu, | ||
html:not(. | html:not(.is-authenticated) .minerva-drawer, | ||
body:not(. | body:not(.is-authenticated) .minerva-page-actions-menu, | ||
body:not(. | body:not(.is-authenticated) .page-actions-overflow, | ||
body:not(. | body:not(.is-authenticated) .header-action, | ||
body:not(. | body:not(.is-authenticated) .minerva-user-menu, | ||
body:not(. | body:not(.is-authenticated) .minerva-drawer { | ||
display: none !important; | display: none !important; | ||
} | } | ||
/* ---------- Show login button for anonymous users ---------- */ | /* ---------- Show login button for anonymous users ---------- */ | ||
html:not(. | html:not(.is-authenticated) #pt-login, | ||
body:not(. | body:not(.is-authenticated) #pt-login { | ||
display: inline-block !important; | display: inline-block !important; | ||
background: #2a4b8d; | background: #2a4b8d; | ||
| Line 32: | Line 32: | ||
/* ---------- Ensure logged-in users see everything ---------- */ | /* ---------- Ensure logged-in users see everything ---------- */ | ||
html. | html.is-authenticated .minerva-page-actions-menu, | ||
html. | html.is-authenticated .page-actions-overflow, | ||
html. | html.is-authenticated .header-action, | ||
html. | html.is-authenticated .minerva-user-menu, | ||
html. | html.is-authenticated .minerva-drawer, | ||
body. | body.is-authenticated .minerva-page-actions-menu, | ||
body. | body.is-authenticated .page-actions-overflow, | ||
body. | body.is-authenticated .header-action, | ||
body. | body.is-authenticated .minerva-user-menu, | ||
body. | body.is-authenticated .minerva-drawer { | ||
display: flex !important; | display: flex !important; | ||
} | } | ||
Revision as of 03:31, 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-user-menu,
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-user-menu,
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-user-menu,
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-user-menu,
body.is-authenticated .minerva-drawer {
display: flex !important;
}