Jump to content

MediaWiki:Common.css: Difference between revisions

From HCF Wiki
Blanked the page
Tag: Blanking
No edit summary
Line 1: Line 1:
/*
* HCF theme — legacy content patch
*
* Paste this into MediaWiki:Common.css.
*
* WHAT IT FIXES
* Boxes, infoboxes and tables whose background colour is hardcoded in wikitext
* or in a template — style="background:#fffbe6" and similar. The dark theme
* makes body text light, but it cannot change a background that is written
* into the page, so those boxes end up light text on a light fill.
*
* This forces dark, readable text inside any element that carries its own
* inline background, and restores link colours that suit a light fill.
*
* THIS IS A STOPGAP
* The proper fix is to add class="notheme" to those templates — that is
* MediaWiki's official opt-out and the skin honours it correctly. Once every
* template has it, you can delete this file. Until then this keeps the wiki
* readable without editing a single page.
*/


.mw-parser-output [style*="background"] {
color: #1d1f24;
}
.mw-parser-output [style*="background"] a {
color: #0a6b78;
}
.mw-parser-output [style*="background"] a.new {
color: #b32020;
}
.mw-parser-output [style*="background"] a.external {
color: #2a5fb0;
}
/* Headings inside those boxes, which otherwise inherit the light heading colour. */
.mw-parser-output [style*="background"] h1,
.mw-parser-output [style*="background"] h2,
.mw-parser-output [style*="background"] h3,
.mw-parser-output [style*="background"] h4 {
color: #1d1f24;
}
/* Muted/secondary text inside them. */
.mw-parser-output [style*="background"] .mw-editsection,
.mw-parser-output [style*="background"] small {
color: #5b6270;
}

Revision as of 17:48, 15 September 2026

/*
 * HCF theme — legacy content patch
 *
 * Paste this into MediaWiki:Common.css.
 *
 * WHAT IT FIXES
 * Boxes, infoboxes and tables whose background colour is hardcoded in wikitext
 * or in a template — style="background:#fffbe6" and similar. The dark theme
 * makes body text light, but it cannot change a background that is written
 * into the page, so those boxes end up light text on a light fill.
 *
 * This forces dark, readable text inside any element that carries its own
 * inline background, and restores link colours that suit a light fill.
 *
 * THIS IS A STOPGAP
 * The proper fix is to add class="notheme" to those templates — that is
 * MediaWiki's official opt-out and the skin honours it correctly. Once every
 * template has it, you can delete this file. Until then this keeps the wiki
 * readable without editing a single page.
 */

.mw-parser-output [style*="background"] {
	color: #1d1f24;
}

.mw-parser-output [style*="background"] a {
	color: #0a6b78;
}

.mw-parser-output [style*="background"] a.new {
	color: #b32020;
}

.mw-parser-output [style*="background"] a.external {
	color: #2a5fb0;
}

/* Headings inside those boxes, which otherwise inherit the light heading colour. */
.mw-parser-output [style*="background"] h1,
.mw-parser-output [style*="background"] h2,
.mw-parser-output [style*="background"] h3,
.mw-parser-output [style*="background"] h4 {
	color: #1d1f24;
}

/* Muted/secondary text inside them. */
.mw-parser-output [style*="background"] .mw-editsection,
.mw-parser-output [style*="background"] small {
	color: #5b6270;
}