MediaWiki:Vector.css: Difference between revisions

From D4RPoMM
Jump to navigation Jump to search
Blanked the page
Tags: Blanking Reverted
No edit summary
Tag: Reverted
Line 1: Line 1:
/* =========================================
  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;
}

Revision as of 23:14, 23 April 2025

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