MediaWiki:Vector.css

From D4RPoMM
Revision as of 22:46, 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 all sidebar sections for anonymous users */
body:not(.mw-user-loggedin) #mw-panel .portal {
    display: none !important;
}

/* SHOW only the logo */
body:not(.mw-user-loggedin) #p-logo {
    display: block !important;
}

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

/* OPTIONAL: Hide sidebar background (purely visual) */
body:not(.mw-user-loggedin) #mw-panel {
    background: none;
    padding-top: 0;
}

/* OPTIONAL: Center content area more nicely for anon */
body:not(.mw-user-loggedin) #content {
    margin-left: 0 !important;
}