MediaWiki:Vector.css: Difference between revisions

From D4RPoMM
Jump to navigation Jump to search
No edit summary
No edit summary
Line 1: Line 1:
/* ==========================
/* HIDE all sidebar sections for anonymous users */
  = GLOBAL VISIBILITY RULES =
body:not(.mw-user-loggedin) #mw-panel .portal {
  ========================== */
 
/* Hide all sidebar blocks for anonymous users */
.mw-anon-user #mw-panel > .portal {
     display: none !important;
     display: none !important;
}
}


/* Show only the 'Personal tools' (top-right login link) */
/* SHOW only the logo */
.mw-anon-user #p-personal {
body:not(.mw-user-loggedin) #p-logo {
     display: block !important;
     display: block !important;
}
}


/* Ensure the logo remains visible */
/* ENSURE logo image itself is visible */
.mw-anon-user #p-logo {
body:not(.mw-user-loggedin) #p-logo a,
body:not(.mw-user-loggedin) #p-logo a img {
     display: block !important;
     display: block !important;
    visibility: visible !important;
}
}


/* Just in case: also show the actual logo image inside */
/* SHOW personal tools (login link) */
.mw-anon-user #p-logo a,
body:not(.mw-user-loggedin) #p-personal {
.mw-anon-user #p-logo a img {
     display: block !important;
     display: block !important;
    visibility: visible !important;
}
}


/* Optional: clean up the empty sidebar space */
/* OPTIONAL: Hide sidebar background (purely visual) */
.mw-anon-user #mw-panel {
body:not(.mw-user-loggedin) #mw-panel {
    background: none;
     padding-top: 0;
     padding-top: 0;
    background: none;
}
}


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

Revision as of 22:46, 23 April 2025

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