MediaWiki:Common.css: Difference between revisions

From D4RPoMM
Jump to navigation Jump to search
No edit summary
Tag: Reverted
No edit summary
Tag: Reverted
Line 1: Line 1:
/*********************************************
/* CSS placed here will be applied to all skins */
  Anonymous (logged-out) users – Minimal Sidebar
/* GOOD */
*********************************************/
/* ========================================================================
/* Hide all direct contents of the left sidebar */
  In the left sidebar (#mw-panel): hide all its contents...
body.mw-user-logged-out #mw-panel > * {
  ======================================================================== */
    display: none !important;
#mw-panel {
  display: block !important;
}
#mw-panel > * {
  display: none !important;
}
}


/* Unhide the site logo (which is a direct child of #mw-panel) */
/* Now, explicitly display the logo and the mainpage link */
body.mw-user-logged-out #mw-panel #p-logo {
#p-logo,
    display: block !important;
#n-mainpage {
  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.
   In the personal tools (#p-personal): hide everything except the login link
   (Adjust selectors if your HTML structure differs.) */
   ======================================================================== */
body.mw-user-logged-out #p-navigation {
#p-personal {
    display: block !important;
  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;
}
}


/*********************************************
#pt-login {
  Anonymous (logged-out) users – Minimal Personal Tools
  display: inline-block !important;
*********************************************/
/* 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
  In the toolbox (#p-tb): hide everything except the print command
*********************************************/
  ======================================================================== */
/* Hide all toolbox list items */
#p-tb {
body.mw-user-logged-out #p-tb ul li {
  display: block !important;
    display: none !important;
}
}
/* Unhide only the print/export link (typically with id "t-print") */
#p-tb > * {
body.mw-user-logged-out #p-tb ul li#t-print {
  display: none !important;
    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,
#t-print {
body.mw-user-logged-in #p-tb ul li {
  display: inline-block !important;
    display: inline-block !important;
}
}

Revision as of 16:00, 11 April 2025

/* CSS placed here will be applied to all skins */
/* GOOD */
/* ========================================================================
   In the left sidebar (#mw-panel): hide all its contents...
   ======================================================================== */
#mw-panel {
  display: block !important;
}
#mw-panel > * {
  display: none !important;
}

/* Now, explicitly display the logo and the mainpage link */
#p-logo,
#n-mainpage {
  display: block !important;
}

/* ========================================================================
   In the personal tools (#p-personal): hide everything except the login link
   ======================================================================== */
#p-personal {
  display: block !important;
}

#pt-login {
  display: inline-block !important;
}

/* ========================================================================
   In the toolbox (#p-tb): hide everything except the print command
   ======================================================================== */
#p-tb {
  display: block !important;
}
#p-tb > * {
  display: none !important;
}
#t-print {
  display: inline-block !important;
}