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.
/* ============================================================
Rules for Anonymous Users (mw-user-logged-out)
Hide all elements inside the left sidebar (#mw-panel)
except for the logo (#p-logo) and the main page link (#n-mainpage)
============================================================ */
/* Hide Toolbox only for anonymous users */
.mw-anon-user #p-tb {
display: none !important;
}
/* Make sure the site logo and the main page link are displayed */
body.mw-user-logged-out #p-logo,
body.mw-user-logged-out #n-mainpage {
display: block !important;
}
/* ============================================================
In the personal tools (#p-personal) for logged-out users,
hide all items except the login link (#pt-login)
============================================================ */
body.mw-user-logged-out #p-personal * {
display: none !important;
}
body.mw-user-logged-out #pt-login {
display: inline-block !important;
}
/* ============================================================
In the toolbox (#p-tb) for logged-out users,
hide all items except the print/export link (#t-print)
============================================================ */
body.mw-user-logged-out #p-tb * {
display: none !important;
}
body.mw-user-logged-out #t-print {
display: inline-block !important;
}
/* ============================================================
Rules for Logged-In Users (mw-user-logged-in)
Restore the full standard sidebar and tool items.
(These rules override the above for logged-in users.)
============================================================ */
body.mw-user-logged-in #mw-panel * {
display: block !important;
}
body.mw-user-logged-in #p-personal * {
display: inline-block !important;
}
body.mw-user-logged-in #p-tb * {
display: inline-block !important;
}