MediaWiki:Common.css

From WikiProducers
Revision as of 00:42, 4 November 2025 by Eddymunoz (talk | contribs) (minor edit)
Jump to navigation Jump to search

Note: After publishing, you may have to bypass your browser's cache to see the changes.

  • Firefox / Safari: Hold Shift while clicking Reload, or press either Ctrl-F5 or Ctrl-R (⌘-R on a Mac)
  • Google Chrome: Press Ctrl-Shift-R (⌘-Shift-R on a Mac)
  • Edge: Hold Ctrl while clicking Refresh, or press Ctrl-F5.
/* CSS placed here will be applied to all skins */
/* Hide page title display */
#firstHeading {
    display: none;
}
/* infobox agent
.badge { display:inline-block; padding:.15em .5em; border-radius:999px; background:#f2f2f2; font-size:.85em; }
.infobox { border:1px solid #ddd; background:#fff; }

// <weight>: Use a value from 200 to 900
// <uniquifier>: Use a unique and descriptive class name

/* Hide Wiki tools section for non-logged-in and non-admin users */
.mw-portlet-Wiki_tools, 
.mw-portlet-Page_tools,
.mw-portlet-User_page_tools {
  display: none !important;
}

/* Show for admins only */
body.user-group-sysop .mw-portlet-Wiki_tools,
body.user-group-sysop .mw-portlet-Page_tools,
body.user-group-sysop .mw-portlet-User_page_tools {
  display: block !important;
}