I found that ja:MediaWiki:Gadget-dark-mode.css, which is @import
en:MediaWiki:Gadget-dark-mode.css, does not work well. The reason seems that must come before all other types of rules but it's loaded on the bottom of load.php.
.mw-parser-output a[href$=".pdf"].external, .mw-parser-output a[href*=".pdf?"].external, .mw-parser-output a[href*=".pdf#"].external, .mw-parser-output a[href$=".PDF"].external, .mw-parser-output a[href*=".PDF?"].external, .mw-parser-output a[href*=".PDF#"].external { background:url(//upload.wikimedia.org/wikipedia/commons/2/23/Icons-mini-file_acrobat.gif) no-repeat right; padding-right:18px } span.PDFlink a { background:url(//upload.wikimedia.org/wikipedia/commons/2/23/Icons-mini-file_acrobat.gif) center right no-repeat !important; padding-right:17px !important } .allpagesredirect a:link, .allpagesredirect a:visited, .redirect-in-category a:link, .redirect-in-category a:visited, .watchlistredir a:link, .watchlistredir a:visited { color:#595959 } .client-js > body.skin-vector #p-personal li { font-size:0.75em } .client-js > body.skin-monobook #p-personal li { font-size:1em } .client-js > body.skin-vector #p-personal ul { margin-right:5.0625em } .client-js > body.skin-monobook #p-personal ul { margin-right:7.6em } @import url(https://en.wikipedia.org/w/index.php?title=MediaWiki:Gadget-dark-mode.css&action=raw&ctype=text/css);
How can I fix this? Do you have any tips to use @important on the Gadgets?