MediaWiki CSS

This is a guide to the most common MediaWiki CSS selectors which may be useful in skin customization. Please note that the list of selectors below is not exhaustive. Browser developer tools can help users who wish to customize their wiki skin and can help locate any elements not explicitly mentioned in this guide.

AbuseFilter elements
The AbuseFilter extension is installed by default. It doesn't add much custom CSS, but the tables on the examine/details page for an edit in the abuse log may need some work, especially on dark skins.

Page-specific styling
Each MediaWiki page has a unique class name assigned to the  element that is based on the current page title. In most cases this will be  (or   if any subpages need to be targeted along with the page) followed immediately by a variation of the page title where spaces and other special characters are replaced with underscores. The exact class name may be obtained by using the browser's view-source feature on the page for which style changes are needed.

Here is an example of one of the most common use cases for this feature, hiding the first header on a page (which contains the page name itself):