MediaWiki:Vector.css

From D4RPoMM
Revision as of 22:53, 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.
/* ------------------------------
   HIDE sidebar portals for anon
------------------------------- */

/* Hide all sidebar content blocks (navigation, toolbox, etc.) for anonymous users */
body:not(.mw-user-loggedin) #mw-panel .portal {
    display: none;
}

/* Keep the logo visible */
body:not(.mw-user-loggedin) #p-logo {
    display: block;
}

/* Ensure the logo image shows up */
body:not(.mw-user-loggedin) #p-logo a,
body:not(.mw-user-loggedin) #p-logo a img {
    display: block;
    visibility: visible;
}

/* Keep personal tools (login link) visible */
body:not(.mw-user-loggedin) #p-personal {
    display: block;
}

/* Add a fake empty block for visual balance */
body:not(.mw-user-loggedin) #mw-panel::after {
    content: '';
    display: block;
    height: 400px; /* Tweak this value */
    background: transparent;
}

/* ------------------------------
   LOGGED-IN USERS: No override needed
   Let default styling show everything
------------------------------- */

/* Remove any display overrides that may have crept in */
body.mw-user-loggedin #mw-panel .portal {
    display: block;
    visibility: visible;
}