MediaWiki:Vector.css: Difference between revisions

From D4RPoMM
Jump to navigation Jump to search
No edit summary
Blanked the page
Tags: Blanking Manual revert
 
(9 intermediate revisions by the same user not shown)
Line 1: Line 1:
/* ---------------------------------------------
  HIDE sidebar blocks for anonymous users only
  --------------------------------------------- */


/* Hides all sidebar blocks except the logo for anonymous users */
body:not(.mw-user-loggedin) #mw-panel .portal {
    display: none !important;
}
/* Show personal tools (login link) */
body:not(.mw-user-loggedin) #p-personal {
    display: block !important;
}
/* Ensure the logo is always 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;
}
/* Add dummy sidebar space for layout balance */
body:not(.mw-user-loggedin) #mw-panel::after {
    content: '';
    display: block;
    height: 400px;  /* Adjust this if needed */
}
/* ---------------------------------------------
  RESET sidebar visibility for logged-in users
  --------------------------------------------- */
/* Force show sidebar portals for logged-in users */
body.mw-user-loggedin #mw-panel .portal {
    display: block !important;
    visibility: visible !important;
}
/* Restore background if it was removed for anons */
body.mw-user-loggedin #mw-panel {
    background: #f8f9fa !important;
    padding-top: 1em;
}

Latest revision as of 10:29, 24 April 2025