MediaWiki:Common.css: Difference between revisions

From WikiProducers
Jump to navigation Jump to search
mNo edit summary
m minor edit
Line 10: Line 10:
// <weight>: Use a value from 200 to 900
// <weight>: Use a value from 200 to 900
// <uniquifier>: Use a unique and descriptive class name
// <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;
}

Revision as of 00:42, 4 November 2025

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