From: Volker E Date: Tue, 22 Aug 2017 00:38:33 +0000 (-0700) Subject: resources: Consolidate on the WikimediaUI “erroneous” color value X-Git-Tag: 1.31.0-rc.0~2331^2 X-Git-Url: http://git.heureux-cyclage.org/?a=commitdiff_plain;h=18dde4a9dd86d004b64427bdaf8fb0988df5b702;p=lhc%2Fweb%2Fwiklou.git resources: Consolidate on the WikimediaUI “erroneous” color value “Erroneous” color was updated to `#d33` in WikimediaUI color palette to ensure WCAG 2.0 level AA conformance with both white and black. Replacing all occurences of `#f00` and `#c00` to reflect color palette change with the following caveats and exceptions: - MW config styles are not amended, as it is out of scope and all boundaries and applications of WikimediaUI are yet to be defined; - oldshared.css is excluded, as WikimediaUI isn't touching old skins; & - errorbox with its current background is getting a lowered textual contrast but we still provide enough contrast for text size and bolded font, and this needs to be seen as intermediate standardization step. Bug: T152025 Change-Id: Iba3362abaa1702599f0d68860f579aea2114801c --- diff --git a/resources/src/jquery/jquery.badge.css b/resources/src/jquery/jquery.badge.css index 8e0e512bab..2dbd4a5edd 100644 --- a/resources/src/jquery/jquery.badge.css +++ b/resources/src/jquery/jquery.badge.css @@ -32,5 +32,5 @@ } .mw-badge-important { - background-color: #c00; + background-color: #d33; } diff --git a/resources/src/mediawiki.legacy/shared.css b/resources/src/mediawiki.legacy/shared.css index 1efcdd095f..fbc9816d5d 100644 --- a/resources/src/mediawiki.legacy/shared.css +++ b/resources/src/mediawiki.legacy/shared.css @@ -153,7 +153,7 @@ span.history-deleted { .unpatrolled { font-weight: bold; - color: #f00; + color: #d33; } div.patrollink { @@ -389,7 +389,7 @@ table.wikitable > caption { } .error { - color: #c00; + color: #d33; } .warning { @@ -423,7 +423,7 @@ table.wikitable > caption { } .errorbox { - color: #c00; + color: #d33; border-color: #fac5c5; background-color: #fae3e3; } @@ -460,7 +460,7 @@ table.wikitable > caption { /* Note on preview page */ .previewnote { - color: #c00; + color: #d33; margin-bottom: 1em; } diff --git a/resources/src/mediawiki.less/mediawiki.ui/variables.less b/resources/src/mediawiki.less/mediawiki.ui/variables.less index 0ad791b7d8..0c897dc91e 100644 --- a/resources/src/mediawiki.less/mediawiki.ui/variables.less +++ b/resources/src/mediawiki.less/mediawiki.ui/variables.less @@ -41,7 +41,7 @@ @colorButtonTextHighlight: @colorGray4; @colorButtonTextActive: @colorGray1; @colorDisabledText: @colorGray12; -@colorErrorText: #c00; +@colorErrorText: #d33; @colorWarningText: #705000; // UI colors diff --git a/resources/src/mediawiki.special/mediawiki.special.apisandbox.css b/resources/src/mediawiki.special/mediawiki.special.apisandbox.css index 99d0222814..750a567f25 100644 --- a/resources/src/mediawiki.special/mediawiki.special.apisandbox.css +++ b/resources/src/mediawiki.special/mediawiki.special.apisandbox.css @@ -101,7 +101,7 @@ .apihelp-deprecated { font-weight: bold; - color: #f00; + color: #d33; } .apihelp-deprecated-value .oo-ui-labelElement-label { diff --git a/resources/src/mediawiki/htmlform/styles.css b/resources/src/mediawiki/htmlform/styles.css index a36b379875..0f331ee0d3 100644 --- a/resources/src/mediawiki/htmlform/styles.css +++ b/resources/src/mediawiki/htmlform/styles.css @@ -9,7 +9,7 @@ table.mw-htmlform-nolabel td.mw-label { } .mw-htmlform-invalid-input td.mw-input input { - border-color: #f00; + border-color: #d33; } .mw-htmlform-flatlist div.mw-htmlform-flatlist-item { diff --git a/resources/src/mediawiki/mediawiki.apihelp.css b/resources/src/mediawiki/mediawiki.apihelp.css index bd4741d17c..7ef32ea645 100644 --- a/resources/src/mediawiki/mediawiki.apihelp.css +++ b/resources/src/mediawiki/mediawiki.apihelp.css @@ -37,7 +37,7 @@ div.apihelp-linktrail { .apihelp-flag-deprecated, .apihelp-flag-internal strong { font-weight: bold; - color: #f00; + color: #d33; } .apihelp-deprecated-value {