jenkins-bot has submitted this change and it was merged.

Change subject: mediawiki.special.vforms: Information boxes' styles
......................................................................


mediawiki.special.vforms: Information boxes' styles

Only styles appropriate for errorbox were defined, but they were
applied to all boxes - contrary to the comment above, Vector doesn't
have styles for them (they are shared for all skins, and they are
awful), and they were anyway overriden by these due to selector
specificity.

Added styles for successbox and warningbox with composition on the
color wheel very similar to errorbox one, simply rotated and scaled.
Removed misleading comment.

Change-Id: I68d2c9b98a9166f5781fcded0318cca52ed6f2e6
---
M resources/mediawiki.special/mediawiki.special.vforms.css
1 file changed, 20 insertions(+), 7 deletions(-)

Approvals:
  Ori.livneh: Looks good to me, approved
  jenkins-bot: Verified



diff --git a/resources/mediawiki.special/mediawiki.special.vforms.css 
b/resources/mediawiki.special/mediawiki.special.vforms.css
index 2d948ea..9ffe11c 100644
--- a/resources/mediawiki.special/mediawiki.special.vforms.css
+++ b/resources/mediawiki.special/mediawiki.special.vforms.css
@@ -22,9 +22,7 @@
 }
 
 /*
- * Besides errorbox there could be warningbox, successbox, msgbox, though
- * spage has never seen these in practice.
- * Vector has styles coloring warningbox cream and successbox green.
+ * Styles for information boxes.
  */
 .mw-ui-vform .errorbox,
 .mw-ui-vform .warningbox,
@@ -35,13 +33,28 @@
        font-size: 0.9em;
        margin: 0 0 1em 0;
        padding: 0.5em;
-       color: #cc0000;
-       border: 1px solid #fac5c5;
-       background-color: #fae3e3;
-       text-shadow: 0 1px #fae3e3;
+       border: 1px solid;
        word-wrap: break-word;
 }
 
+.mw-ui-vform .errorbox {
+       color: #cc0000;
+       border-color: #fac5c5;
+       background-color: #fae3e3;
+}
+
+.mw-ui-vform .warningbox {
+       color: #705000;
+       border-color: #fde29b;
+       background-color: #fdf1d1;
+}
+
+.mw-ui-vform .successbox {
+       color: #009000;
+       border-color: #b7fdb5;
+       background-color: #e1fddf;
+}
+
 /*
  * Override the right margin of the form to give space in case a benefits
  * column appears to the side.

-- 
To view, visit https://gerrit.wikimedia.org/r/82045
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: I68d2c9b98a9166f5781fcded0318cca52ed6f2e6
Gerrit-PatchSet: 4
Gerrit-Project: mediawiki/core
Gerrit-Branch: master
Gerrit-Owner: Bartosz Dziewoński <[email protected]>
Gerrit-Reviewer: Bartosz Dziewoński <[email protected]>
Gerrit-Reviewer: Jack Phoenix <[email protected]>
Gerrit-Reviewer: Mattflaschen <[email protected]>
Gerrit-Reviewer: Ori.livneh <[email protected]>
Gerrit-Reviewer: Swalling <[email protected]>
Gerrit-Reviewer: jenkins-bot

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to