Gamepedia Help Wiki
(Created page with "It may not be obvious how to style certain dynamic notifications displayed briefly via JavaScript. You can use the following code snippets to style some of these (colors in th...")
 
mNo edit summary
Line 6: Line 6:
 
.mw-notification {
 
.mw-notification {
 
background-color: #fff !important;
 
background-color: #fff !important;
border: 1px solid red;
+
border: 1px solid red !important;
 
color: black !important;
 
color: black !important;
 
}
 
}

Revision as of 15:11, 12 February 2018

It may not be obvious how to style certain dynamic notifications displayed briefly via JavaScript. You can use the following code snippets to style some of these (colors in these snippets are merely examples).

Add/remove from Watchlist

/* Watchlist notifications */
.mw-notification {
    background-color: #fff !important;
    border: 1px solid red !important;
    color: black !important;
}

Page save

/* Page save notifications */
.postedit-container .postedit {
    background: #fff !important;
    border: 1px solid red !important;
    color: black !important;
}