From: Volker E Date: Mon, 15 Jul 2019 12:34:56 +0000 (-0700) Subject: Add success variables to message group and unify values X-Git-Tag: 1.34.0-rc.0~1002^2 X-Git-Url: https://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/exercices/journal.php?a=commitdiff_plain;h=530345a3184366a54a97a6cde8739cfc7050c4ba;p=lhc%2Fweb%2Fwiklou.git Add success variables to message group and unify values Adding `@*success` variables to “Message” variable group and unifying values with Style Guide. Also renaming `@colorErrorText` to @colorError` & `@colorWarningText` to @colorWarning` to stay in naming convention. Bug: T226795 Change-Id: I49ca4b8f510888dff7a2487470174666143bcd76 --- diff --git a/resources/src/mediawiki.less/mediawiki.ui/variables.less b/resources/src/mediawiki.less/mediawiki.ui/variables.less index e493e59cc3..c0e53a7229 100644 --- a/resources/src/mediawiki.less/mediawiki.ui/variables.less +++ b/resources/src/mediawiki.less/mediawiki.ui/variables.less @@ -65,8 +65,26 @@ @colorButtonTextHighlight: @colorGray4; @colorButtonTextActive: @colorGray1; @colorDisabledText: @colorGray7; -@colorErrorText: #d33; -@colorWarningText: #705000; + +// Messages +// Messages: Error +@backgroundColorError: #fee7e6; +// Use only for inlined messages, boxed messages require `@colorTextEmphasized` for +// minimum contrast ratio. +@colorError: #d33; +@borderColorError: @colorError; +// Messages: Warning +@backgroundColorWarning: #fef6e7; +@colorWarning: @colorTextEmphasized; +@borderColorWarning: #fc3; +// Messages: Success +@backgroundColorSuccess: #d5fdf4; +@colorSuccess: #14866d; +@borderColorSuccess: @colorSuccess; + +// FIXME: Remove after a few weeks, when extensions got updated +@colorErrorText: @colorError; +@colorWarningText: @colorWarning; // UI colors @backgroundColorInputBinaryChecked: @colorProgressive; @@ -105,9 +123,3 @@ // Form input sizes, equal to OOUI at 14px base font-size @sizeInputBinary: 1.5625em; - -// Messages -@backgroundColorError: #fee7e6; -@borderColorError: #d33; -@backgroundColorWarning: #fef6e7; -@borderColorWarning: #fc3;