MediaWiki talk:H3CSS.css: Difference between revisions

From Heroes 3 wiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 1: Line 1:
== setting table color to white ==
I just noticed this was already set but wasn't working for all the TH in the table:
<syntaxhighlight lang=css>
.wikitable {
    color: #ffffff !important;
}
</syntaxhighlight>
Targeting specifically the TH actually worked because a more specific selector takes precedence over a less specific one.
<syntaxhighlight lang=css>
.wikitable th {
    color: #fff!important
}
</syntaxhighlight>
==Minify==
==Minify==
Place the minified css in [[MediaWiki:H3CSS.min.js]].
[https://www.toptal.com/developers/cssminifier toptal.com/developers/cssminifier]
[https://www.toptal.com/developers/cssminifier toptal.com/developers/cssminifier]
== more specific selectors ==
If something isn't working try using a more specific selector so it takes precedence.

Revision as of 22:16, 11 October 2025

Minify

Place the minified css in MediaWiki:H3CSS.min.js. toptal.com/developers/cssminifier

more specific selectors

If something isn't working try using a more specific selector so it takes precedence.