MediaWiki:Common.css: Difference between revisions

No edit summary
Tag: Reverted
No edit summary
Tag: Reverted
Line 297: Line 297:


/* =================================================
/* =================================================
   HIDE ADMIN / TOOL SIDEBAR ITEMS FOR NON-ADMINS
/* =====================================================
   ================================================= */
   SHOW SIDEBAR ONLY FOR ADMIN (sysop) & EDITOR
   ===================================================== */


/* ---------
/* Hide sidebar for ALL users by default */
  Guest users (anonymous)
#mw-panel,
  --------- */
.vector-sidebar-container,
body.mw-user-anon #n-specialpages,
.vector-main-menu-container {
body.mw-user-anon #t-upload,
body.mw-user-anon #t-whatlinkshere,
body.mw-user-anon #t-recentchangeslinked,
body.mw-user-anon #t-info {
     display: none !important;
     display: none !important;
}
}


/* ---------
/* SHOW sidebar ONLY for admin & editor */
  Logged-in BUT normal users
body.mw-group-sysop #mw-panel,
  (not editor, not sysop)
body.mw-group-sysop .vector-sidebar-container,
  --------- */
body.mw-group-sysop .vector-main-menu-container,
body.mw-user-loggedin:not(.mw-group-sysop):not(.mw-group-editor) #n-specialpages,
body.mw-group-editor #mw-panel,
body.mw-user-loggedin:not(.mw-group-sysop):not(.mw-group-editor) #t-upload,
body.mw-group-editor .vector-sidebar-container,
body.mw-user-loggedin:not(.mw-group-sysop):not(.mw-group-editor) #t-whatlinkshere,
body.mw-group-editor .vector-main-menu-container {
body.mw-user-loggedin:not(.mw-group-sysop):not(.mw-group-editor) #t-recentchangeslinked,
     display: block !important;
body.mw-user-loggedin:not(.mw-group-sysop):not(.mw-group-editor) #t-info {
     display: none !important;
}
}