mw.notifiction: Bring in some rules from Vector
authorEd Sanders <esanders@wikimedia.org>
Wed, 29 Nov 2017 15:53:11 +0000 (15:53 +0000)
committerEd Sanders <esanders@wikimedia.org>
Wed, 29 Nov 2017 15:53:11 +0000 (15:53 +0000)
The larger padding makes sense as a default. Also increase
the specificity of the error/warn rules so they are overridden
by changes to the default state.

Change-Id: I157e41631c4a09842b869215b0d6dbb99c1a4d36

resources/src/mediawiki/mediawiki.notification.css

index 481980f..a56be76 100644 (file)
 }
 
 .mw-notification {
-       padding: 0.25em 1em;
+       padding: 0.75em 1.5em;
        margin-bottom: 0.5em;
        border: solid 1px #ddd;
-       background-color: #fcfcfc;
-       color: #252525;
+       background-color: #fff;
        /* Click handler in mediawiki.notification.js */
        cursor: pointer;
 
        font-weight: bold;
 }
 
-.mw-notification-type-warn {
+.mw-notification.mw-notification-type-warn {
        border-color: #f5be00; /* yellow */
        background-color: #ffffe8;
 }
 
-.mw-notification-type-error {
+.mw-notification.mw-notification-type-error {
        border-color: #eb3941; /* red */
        background-color: #fff8f8;
 }