MediaWiki:Vector.css: Difference between revisions

From D4RPoMM
Jump to navigation Jump to search
No edit summary
Tag: Reverted
No edit summary
Tag: Reverted
Line 3: Line 3:
   ========================================= */
   ========================================= */


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


/* Keep the logo visible */
/* Keep the logo visible */
Line 31: Line 27:
   LOGGED-IN USERS: Show everything normally
   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 */
/* 🔧 Specifically ensure Toolbox is visible */

Revision as of 23:21, 23 April 2025

/* =========================================
   ANONYMOUS USERS: Hide sidebar sections
   ========================================= */


/* 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
   ========================================= */

/* 🔧 Specifically ensure Toolbox is visible */
body.mw-user-loggedin #p-tb {
    display: block !important;
    visibility: visible !important;
}