MediaWiki:Vector.css

From D4RPoMM
Revision as of 23:29, 23 April 2025 by PSA (talk | contribs)
Jump to navigation Jump to search

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.
/* ================================
   FOR ANONYMOUS USERS ONLY
   ================================ */

/* Hide all sidebar portals (navigation, toolbox, etc.) */
body:not(.mw-user-loggedin) #mw-panel .portal {
    display: none !important;
}

/* Show the logo always */
body:not(.mw-user-loggedin) #p-logo,
body:not(.mw-user-loggedin) #p-logo a,
body:not(.mw-user-loggedin) #p-logo a img {
    display: block !important;
    visibility: visible !important;
}

/* Show personal tools (top login link) */
body:not(.mw-user-loggedin) #p-personal {
    display: block !important;
}

/* Add dummy space under the logo for layout */
body:not(.mw-user-loggedin) #mw-panel::after {
    content: '';
    display: block;
    height: 400px;
}

/* ================================
   NOTHING hidden for logged-in users!
   ================================ */

/* Important: Do NOT override .portal for mw-user-loggedin at all */
/* Reset sidebar for logged-in users */
body.mw-user-loggedin #mw-panel .portal {
    display: block !important;
    visibility: visible !important;
}
/* 🔧 Specifically ensure Toolbox is visible */
body.mw-user-loggedin #p-tb {
    display: block !important;
    visibility: visible !important;
}