MediaWiki talk:H3CSS.css: Difference between revisions

From Heroes 3 wiki
Jump to navigation Jump to search
No edit summary
No edit summary
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
== setting table color to white ==
==Minify==
I just noticed this was already set but wasn't working for all the TH in the table:
Use [https://www.toptal.com/developers/cssminifier this css minifier] to minify and place the minified css in [[MediaWiki:H3CSS.min.js]].
<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==
== more specific selectors ==
[https://www.toptal.com/developers/cssminifier toptal.com/developers/cssminifier]
If something isn't working try using a more specific selector so it takes precedence.

Latest revision as of 22:20, 11 October 2025

Minify[edit | hide | hide all]

Use this css minifier to minify and place the minified css in MediaWiki:H3CSS.min.js.

more specific selectors[edit | hide]

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