Jump to content

MediaWiki:Common.css: Difference between revisions

From Derail Valley
 
No edit summary
 
(3 intermediate revisions by the same user not shown)
Line 2: Line 2:


/* Mark untranslated text in the same way as MediaWiki already marks outdated
/* Mark untranslated text in the same way as MediaWiki already marks outdated
but previously translated text (.mw-translate-fuzzy class) */
but previously translated text (.mw-translate-fuzzy class). This should only
div[lang="en"]:is(.mw-content-ltr) {
have an effect on non-English pages, therefore the not([lang="en"]) selector.
NOTE: MediaWiki says there's an error, ignore it, code works fine. */
div#mw-content-text > .mw-content-ltr:not([lang="en"]) > div[lang="en"]:is(.mw-content-ltr) {
     background-color: #fdd;
     background-color: #fdd;
     color: #333;
     color: #333;
}
}

Latest revision as of 21:55, 5 March 2025

/* CSS placed here will be applied to all skins */

/* Mark untranslated text in the same way as MediaWiki already marks outdated
but previously translated text (.mw-translate-fuzzy class). This should only
have an effect on non-English pages, therefore the not([lang="en"]) selector.
NOTE: MediaWiki says there's an error, ignore it, code works fine. */
div#mw-content-text > .mw-content-ltr:not([lang="en"]) > div[lang="en"]:is(.mw-content-ltr) {
    background-color: #fdd;
    color: #333;
}