MediaWiki:Common.css: Difference between revisions

From D4RPoMM
Jump to navigation Jump to search
No edit summary
No edit summary
Tag: Reverted
Line 1: Line 1:
/* ============================================================
/*********************************************
  Rules for Anonymous Users (mw-user-logged-out)
  Anonymous (logged-out) users – Minimal Sidebar
  Hide all elements inside the left sidebar (#mw-panel)
*********************************************/
  except for the logo (#p-logo) and the main page link (#n-mainpage)
/* Hide all direct contents of the left sidebar */
  ============================================================ */
body.mw-user-logged-out #mw-panel > * {
body.mw-user-logged-out #mw-panel * {
     display: none !important;
     display: none !important;
}
}


/* Make sure the site logo and the main page link are displayed */
/* Unhide the site logo (which is a direct child of #mw-panel) */
body.mw-user-logged-out #p-logo,
body.mw-user-logged-out #mw-panel #p-logo {
body.mw-user-logged-out #n-mainpage {
     display: block !important;
     display: block !important;
}
}


/* ============================================================
/* If your main page link is within the navigation block, unhide only that list item:
   In the personal tools (#p-personal) for logged-out users,
   This assumes that the main page link has the id "n-mainpage" and is inside #p-navigation.
  hide all items except the login link (#pt-login)
  (Adjust selectors if your HTML structure differs.) */
  ============================================================ */
body.mw-user-logged-out #p-navigation {
body.mw-user-logged-out #p-personal * {
    display: block !important;
}
body.mw-user-logged-out #p-navigation > ul > li {
     display: none !important;
     display: none !important;
}
}
body.mw-user-logged-out #pt-login {
body.mw-user-logged-out #p-navigation > ul > li#n-mainpage {
    display: block !important;
}
 
/*********************************************
  Anonymous (logged-out) users – Minimal Personal Tools
*********************************************/
/* Hide all items in the personal tools dropdown */
body.mw-user-logged-out #p-personal ul li {
    display: none !important;
}
/* Unhide only the login link (typically with id "pt-login") */
body.mw-user-logged-out #p-personal ul li#pt-login {
     display: inline-block !important;
     display: inline-block !important;
}
}


/* ============================================================
/*********************************************
  In the toolbox (#p-tb) for logged-out users,
  Anonymous (logged-out) users – Minimal Toolbox
  hide all items except the print/export link (#t-print)
*********************************************/
  ============================================================ */
/* Hide all toolbox list items */
body.mw-user-logged-out #p-tb * {
body.mw-user-logged-out #p-tb ul li {
     display: none !important;
     display: none !important;
}
}
body.mw-user-logged-out #t-print {
/* Unhide only the print/export link (typically with id "t-print") */
body.mw-user-logged-out #p-tb ul li#t-print {
     display: inline-block !important;
     display: inline-block !important;
}
}


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

Revision as of 15:57, 11 April 2025

/*********************************************
  Anonymous (logged-out) users – Minimal Sidebar 
*********************************************/
/* Hide all direct contents of the left sidebar */
body.mw-user-logged-out #mw-panel > * {
    display: none !important;
}

/* Unhide the site logo (which is a direct child of #mw-panel) */
body.mw-user-logged-out #mw-panel #p-logo {
    display: block !important;
}

/* If your main page link is within the navigation block, unhide only that list item:
   This assumes that the main page link has the id "n-mainpage" and is inside #p-navigation.
   (Adjust selectors if your HTML structure differs.) */
body.mw-user-logged-out #p-navigation {
    display: block !important;
}
body.mw-user-logged-out #p-navigation > ul > li {
    display: none !important;
}
body.mw-user-logged-out #p-navigation > ul > li#n-mainpage {
    display: block !important;
}

/*********************************************
  Anonymous (logged-out) users – Minimal Personal Tools 
*********************************************/
/* Hide all items in the personal tools dropdown */
body.mw-user-logged-out #p-personal ul li {
    display: none !important;
}
/* Unhide only the login link (typically with id "pt-login") */
body.mw-user-logged-out #p-personal ul li#pt-login {
    display: inline-block !important;
}

/*********************************************
  Anonymous (logged-out) users – Minimal Toolbox
*********************************************/
/* Hide all toolbox list items */
body.mw-user-logged-out #p-tb ul li {
    display: none !important;
}
/* Unhide only the print/export link (typically with id "t-print") */
body.mw-user-logged-out #p-tb ul li#t-print {
    display: inline-block !important;
}

/*********************************************
  Optional: Logged-in users see the standard menu
  (These rules will let the defaults apply for logged-in users)
*********************************************/
body.mw-user-logged-in #mw-panel > * {
    display: block !important;
}
body.mw-user-logged-in #p-personal ul li,
body.mw-user-logged-in #p-tb ul li {
    display: inline-block !important;
}