MediaWiki:Vector.css

From D4RPoMM
Revision as of 23:14, 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.
/* =========================================
   ANONYMOUS USERS: Hide sidebar sections
   ========================================= */

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

/* Keep the logo visible */
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 login link in personal tools */
body:not(.mw-user-loggedin) #p-personal {
    display: block !important;
}

/* Add empty sidebar space under logo for layout consistency */
body:not(.mw-user-loggedin) #mw-panel::after {
    content: '';
    display: block;
    height: 400px; /* Adjust this if needed */
}

/* =========================================
   LOGGED-IN USERS: Show everything normally
   ========================================= */

/* Restore all sidebar sections */
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;
}