MediaWiki:Common.css: Difference between revisions

From D4RPoMM
Jump to navigation Jump to search
No edit summary
No edit summary
Tag: Manual revert
 
(10 intermediate revisions by the same user not shown)
Line 1: Line 1:
/* CSS placed here will be applied to all skins */
/* ============================================================
/* Hide entire toolbox in Vector skin */
  Rules for Anonymous Users (mw-user-logged-out)
.vector-sidebar #p-tb {
  Hide all elements inside the left sidebar (#mw-panel)
  display: none;
  except for the logo (#p-logo) and the main page link (#n-mainpage)
  ============================================================ */
body.mw-user-logged-out #mw-panel * {
    display: none !important;
}
}


/* .vector-sidebar #t-whatlinkshere, {
/* Make sure the site logo and the main page link are displayed */
/*  display: none;
body.mw-user-logged-out #p-logo,
/* }
body.mw-user-logged-out #n-mainpage {
/* .vector-sidebar #t-recentchangeslinked,  {
    display: block !important;
/*  display: none;
}
/* }
 
/* .vector-sidebar #t-specialpages,  {
/* ============================================================
/*  display: none;
  In the personal tools (#p-personal) for logged-out users,
/* }
  hide all items except the login link (#pt-login)
/*.vector-sidebar #t-print,
  ============================================================ */
/* .vector-sidebar #t-permalink,
body.mw-user-logged-out #p-personal * {
/* .vector-sidebar #t-info,
    display: none !important;
/*.vector-sidebar #t-cite,
}
/* .vector-sidebar #t-smwbrowse {
body.mw-user-logged-out #pt-login {
/*  display: none;
    display: inline-block !important;
/*}
}
/*body.mw-user-logged-out #p-navigation {
 
/*  display: none;
/* ============================================================
/*}
  In the toolbox (#p-tb) for logged-out users,
/* Hide the Tools sidebar for logged-out users */
  hide all items except the print/export link (#t-print)
body.loggedout #p-tb {
  ============================================================ */
     display: none;
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;
}
}

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