MediaWiki:Minerva.css: Difference between revisions
imported>Dawning mNo edit summary |
imported>Dawning No edit summary |
||
| Line 40: | Line 40: | ||
display: flex !important; | display: flex !important; | ||
} | } | ||
body { | |||
background-image: var(--wiki-body-background-image); | |||
background-size: cover; | |||
background-position: bottom left; | |||
background-repeat: no-repeat; | |||
background-attachment: fixed; | |||
background-color: var(--wiki-body-background-color); | |||
font-family: var(--wiki-body-font-family); | |||
accent-color: var(--wiki-accent-color); | |||
Revision as of 03:38, 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;
}
body {
background-image: var(--wiki-body-background-image);
background-size: cover;
background-position: bottom left;
background-repeat: no-repeat;
background-attachment: fixed;
background-color: var(--wiki-body-background-color);
font-family: var(--wiki-body-font-family);
accent-color: var(--wiki-accent-color);