MediaWiki:Vector.css: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
| Line 1: | Line 1: | ||
/* ============================ | /* ========================== | ||
= GLOBAL VISIBILITY RULES = | |||
========================== */ | |||
/* Hide | /* Hide all sidebar blocks for anonymous users */ | ||
.mw-anon-user # | .mw-anon-user #mw-panel > .portal { | ||
display: none !important; | display: none !important; | ||
} | } | ||
/* | /* Show only the 'Personal tools' (top-right login link) */ | ||
.mw-anon-user #p-personal { | |||
display: block !important; | display: block !important; | ||
} | } | ||
/* | /* Ensure the logo remains visible */ | ||
.mw-anon-user #p-logo { | |||
display: block !important; | |||
display: | |||
} | } | ||
display: | /* Just in case: also show the actual logo image inside */ | ||
.mw-anon-user #p-logo a, | |||
.mw-anon-user #p-logo a img { | |||
display: block !important; | |||
visibility: visible !important; | |||
} | } | ||
/* | /* Optional: clean up the empty sidebar space */ | ||
.mw-anon-user #mw-panel { | |||
padding-top: 0; | |||
background: none; | |||
} | } | ||
/* | /* Optional: center content a bit more for anonymous users */ | ||
.mw-anon-user #content { | |||
margin-left: 0 !important; | |||
} | } | ||
Revision as of 22:43, 23 April 2025
/* ==========================
= GLOBAL VISIBILITY RULES =
========================== */
/* Hide all sidebar blocks for anonymous users */
.mw-anon-user #mw-panel > .portal {
display: none !important;
}
/* Show only the 'Personal tools' (top-right login link) */
.mw-anon-user #p-personal {
display: block !important;
}
/* Ensure the logo remains visible */
.mw-anon-user #p-logo {
display: block !important;
}
/* Just in case: also show the actual logo image inside */
.mw-anon-user #p-logo a,
.mw-anon-user #p-logo a img {
display: block !important;
visibility: visible !important;
}
/* Optional: clean up the empty sidebar space */
.mw-anon-user #mw-panel {
padding-top: 0;
background: none;
}
/* Optional: center content a bit more for anonymous users */
.mw-anon-user #content {
margin-left: 0 !important;
}