MediaWiki:Common.css: Difference between revisions

From D4RPoMM
Jump to navigation Jump to search
No edit summary
No edit summary
Tag: Manual revert
 
(3 intermediate revisions by the same user not shown)
Line 1: Line 1:
/* ========================================================================
/* ============================================================
   Rules for logged-out (anonymous) users:
   Rules for Anonymous Users (mw-user-logged-out)
   Hide most of the page except:
   Hide all elements inside the left sidebar (#mw-panel)
   - Logo (#p-logo)
   except for the logo (#p-logo) and the main page link (#n-mainpage)
  - Main Page link (#n-mainpage)
   ============================================================ */
   - Login link (#pt-login) in personal tools
body.mw-user-logged-out #mw-panel * {
  - Print/export link (#t-print) in toolbox
    display: none !important;
  ======================================================================== */
body.mw-user-logged-out #content,
body.mw-user-logged-out #footer,
body.mw-user-logged-out #mw-head {
  display: none !important;
}
}


/* In the left sidebar (#mw-panel), hide all items for logged-out users... */
/* Make sure the site logo and the main page link are displayed */
body.mw-user-logged-out #mw-panel > * {
  display: none !important;
}
 
/* ...except the logo and the mainpage link */
body.mw-user-logged-out #p-logo,
body.mw-user-logged-out #p-logo,
body.mw-user-logged-out #n-mainpage {
body.mw-user-logged-out #n-mainpage {
  display: block !important;
    display: block !important;
}
}


/* In the personal tools (#p-personal), hide everything except the login link */
/* ============================================================
body.mw-user-logged-out #p-personal > * {
  In the personal tools (#p-personal) for logged-out users,  
  display: none !important;
  hide all items except the login link (#pt-login)
  ============================================================ */
body.mw-user-logged-out #p-personal * {
    display: none !important;
}
}
body.mw-user-logged-out #pt-login {
body.mw-user-logged-out #pt-login {
  display: inline-block !important;
    display: inline-block !important;
}
}


/* In the toolbox (#p-tb), hide all items except the print/export command */
/* ============================================================
body.mw-user-logged-out #p-tb > * {
  In the toolbox (#p-tb) for logged-out users,  
  display: none !important;
  hide all items except the print/export link (#t-print)
  ============================================================ */
body.mw-user-logged-out #p-tb * {
    display: none !important;
}
}
body.mw-user-logged-out #t-print {
body.mw-user-logged-out #t-print {
  display: inline-block !important;
    display: inline-block !important;
}
}


 
/* ============================================================
/* ========================================================================
   Rules for Logged-In Users (mw-user-logged-in)
   Rules for logged-in users:
   Restore the full standard sidebar and tool items.
   Revert to the default (full) sidebar / personal tools display.
  (These rules override the above for logged-in users.)
   ======================================================================== */
   ============================================================ */
body.mw-user-logged-in #content,
body.mw-user-logged-in #mw-panel * {
body.mw-user-logged-in #footer,
    display: block !important;
body.mw-user-logged-in #mw-head {
  display: block !important;
}
}
 
body.mw-user-logged-in #p-personal * {
/* Show the entire left sidebar for logged-in users */
    display: inline-block !important;
body.mw-user-logged-in #mw-panel > * {
  display: block !important;
}
}
 
body.mw-user-logged-in #p-tb * {
/* Restore full personal tools for logged-in users */
    display: inline-block !important;
body.mw-user-logged-in #p-personal > * {
  display: inline-block !important;
}
 
/* Restore full toolbox for logged-in users */
body.mw-user-logged-in #p-tb > * {
  display: inline-block !important;
}
}

Latest revision as of 16:12, 11 April 2025

/* ============================================================
   Rules for Anonymous Users (mw-user-logged-out)
   Hide all elements inside the left sidebar (#mw-panel) 
   except for the logo (#p-logo) and the main page link (#n-mainpage)
   ============================================================ */
body.mw-user-logged-out #mw-panel * {
    display: none !important;
}

/* Make sure the site logo and the main page link are displayed */
body.mw-user-logged-out #p-logo,
body.mw-user-logged-out #n-mainpage {
    display: block !important;
}

/* ============================================================
   In the personal tools (#p-personal) for logged-out users, 
   hide all items except the login link (#pt-login)
   ============================================================ */
body.mw-user-logged-out #p-personal * {
    display: none !important;
}
body.mw-user-logged-out #pt-login {
    display: inline-block !important;
}

/* ============================================================
   In the toolbox (#p-tb) for logged-out users, 
   hide all items except the print/export link (#t-print)
   ============================================================ */
body.mw-user-logged-out #p-tb * {
    display: none !important;
}
body.mw-user-logged-out #t-print {
    display: inline-block !important;
}

/* ============================================================
   Rules for Logged-In Users (mw-user-logged-in)
   Restore the full standard sidebar and tool items.
   (These rules override the above for logged-in users.)
   ============================================================ */
body.mw-user-logged-in #mw-panel * {
    display: block !important;
}
body.mw-user-logged-in #p-personal * {
    display: inline-block !important;
}
body.mw-user-logged-in #p-tb * {
    display: inline-block !important;
}