MediaWiki:Vector.css
Note: After publishing, you may have to bypass your browser's cache to see the changes.
- Firefox / Safari: Hold Shift while clicking Reload, or press either Ctrl-F5 or Ctrl-R (⌘-R on a Mac)
- Google Chrome: Press Ctrl-Shift-R (⌘-Shift-R on a Mac)
- Internet Explorer / Edge: Hold Ctrl while clicking Refresh, or press Ctrl-F5
- Opera: Press Ctrl-F5.
/* ==========================
= 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;
}