Matmarex has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/82828


Change subject: Backport information boxes' styles from vforms to shared CSS
......................................................................

Backport information boxes' styles from vforms to shared CSS

They're obviously prettier and non-intrusive enough to fit old
interfaces. The colors are changed to more pastel ones and the general
size of the boxes is reduced.

Also remove unnecessary bolds on the informations on
Special:Preferences and Special:ChangePassword.

Change-Id: Ieae62db1a124261ae7f5bf67aced8b84cfbadd3d
---
M RELEASE-NOTES-1.22
M includes/specials/SpecialChangePassword.php
M includes/specials/SpecialPreferences.php
M resources/mediawiki.special/mediawiki.special.preferences.css
M resources/mediawiki.special/mediawiki.special.vforms.css
M skins/common/shared.css
6 files changed, 31 insertions(+), 47 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/core 
refs/changes/28/82828/1

diff --git a/RELEASE-NOTES-1.22 b/RELEASE-NOTES-1.22
index e743b48..1ac4b28 100644
--- a/RELEASE-NOTES-1.22
+++ b/RELEASE-NOTES-1.22
@@ -434,6 +434,8 @@
   using properties in the SpecialPrefixindex class.
 * (bug 50310) BREAKING CHANGE: wikibits: Drop support for mwCustomEditButtons.
   It defaults to an empty array and emits mw.log.warn when accessed.
+* Information boxes (CSS classes errorbox, warningbox, successbox) have been
+  made more subtle.
 
 == Compatibility ==
 
diff --git a/includes/specials/SpecialChangePassword.php 
b/includes/specials/SpecialChangePassword.php
index 129e919..7fcab19 100644
--- a/includes/specials/SpecialChangePassword.php
+++ b/includes/specials/SpecialChangePassword.php
@@ -85,7 +85,7 @@
 
                                if ( $user->isLoggedIn() ) {
                                        $this->getOutput()->wrapWikiMsg(
-                                                       "<div 
class=\"successbox\"><strong>\n$1\n</strong></div>",
+                                                       "<div 
class=\"successbox\">\n$1\n</div>",
                                                        'changepassword-success'
                                        );
                                        $this->getOutput()->returnToMain();
diff --git a/includes/specials/SpecialPreferences.php 
b/includes/specials/SpecialPreferences.php
index fe91ada..17aad8a 100644
--- a/includes/specials/SpecialPreferences.php
+++ b/includes/specials/SpecialPreferences.php
@@ -57,7 +57,7 @@
 
                if ( $this->getRequest()->getCheck( 'success' ) ) {
                        $out->wrapWikiMsg(
-                               "<div class=\"successbox 
mw-sp-pref-successbox\">\n$1\n</div>",
+                               "<div class=\"successbox\">\n$1\n</div>",
                                'savedprefs'
                        );
                }
diff --git a/resources/mediawiki.special/mediawiki.special.preferences.css 
b/resources/mediawiki.special/mediawiki.special.preferences.css
index d455b21..161efde 100644
--- a/resources/mediawiki.special/mediawiki.special.preferences.css
+++ b/resources/mediawiki.special/mediawiki.special.preferences.css
@@ -9,6 +9,3 @@
 /*
 .mw-email-authenticated .mw-input { }
 */
-.mw-sp-pref-successbox {
-       font-weight: bold;
-}
diff --git a/resources/mediawiki.special/mediawiki.special.vforms.css 
b/resources/mediawiki.special/mediawiki.special.vforms.css
index 9ffe11c..768a9c6 100644
--- a/resources/mediawiki.special/mediawiki.special.vforms.css
+++ b/resources/mediawiki.special/mediawiki.special.vforms.css
@@ -33,26 +33,7 @@
        font-size: 0.9em;
        margin: 0 0 1em 0;
        padding: 0.5em;
-       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;
 }
 
 /*
diff --git a/skins/common/shared.css b/skins/common/shared.css
index 0118d20..90c2a00 100644
--- a/skins/common/shared.css
+++ b/skins/common/shared.css
@@ -536,42 +536,31 @@
 }
 
 /* success and error messages */
+.error,
+.warning,
 .success {
-       color: green;
-       font-size: larger;
-}
-.warning {
-       color: #FFA500; /* orange */
        font-size: larger;
 }
 .error {
-       color: red;
-       font-size: larger;
+       color: #cc0000;
 }
+.warning {
+       color: #705000;
+}
+.success {
+       color: #009000;
+}
+
 .errorbox,
 .warningbox,
 .successbox {
-       font-size: larger;
-       border: 2px solid;
+       border: 1px solid;
        padding: .5em 1em;
-       margin-bottom: 2em;
-       color: #000;
+       margin-bottom: 1em;
        display: -moz-inline-block;
        display: inline-block;
        zoom: 1;
        *display: inline;
-}
-.errorbox {
-       border-color: red;
-       background-color: #fff2f2;
-}
-.warningbox {
-       border-color: #FF8C00; /* darkorange */
-       background-color: #FFFFC0;
-}
-.successbox {
-       border-color: green;
-       background-color: #dfd;
 }
 .errorbox h2,
 .warningbox h2,
@@ -582,6 +571,21 @@
        margin: 0 .5em 0 0;
        border: none;
 }
+.errorbox {
+       color: #cc0000;
+       border-color: #fac5c5;
+       background-color: #fae3e3;
+}
+.warningbox {
+       color: #705000;
+       border-color: #fde29b;
+       background-color: #fdf1d1;
+}
+.successbox {
+       color: #009000;
+       border-color: #b7fdb5;
+       background-color: #e1fddf;
+}
 
 /* general info/warning box for SP */
 .mw-infobox {

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: Ieae62db1a124261ae7f5bf67aced8b84cfbadd3d
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/core
Gerrit-Branch: master
Gerrit-Owner: Matmarex <[email protected]>

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

Reply via email to