Add .warningbox to .mw-warning-with-logexcerpt container to standardize

Standardizing system warning message by using general `.warningbox` class.

Bug: T234509
Change-Id: If814916af9b9a095cb038d64d859339e0f290c72
This commit is contained in:
Volker E 2019-10-03 11:19:45 -07:00
parent 3dbc58222c
commit 6fd6651c17
3 changed files with 4 additions and 7 deletions

View file

@ -694,7 +694,7 @@ class LogEventsList extends ContextSource {
$lang = $context->getLanguage()->getHtmlCode();
$s = Xml::openElement( 'div', [
'class' => "mw-warning-with-logexcerpt mw-content-$dir",
'class' => "warningbox mw-warning-with-logexcerpt mw-content-$dir",
'dir' => $dir,
'lang' => $lang,
] );

View file

@ -291,7 +291,7 @@ class MovePageForm extends UnlistedSpecialPage {
# Then it must be protected based on static groups (regular)
$noticeMsg = 'protectedpagemovewarning';
}
$out->addHTML( "<div class='mw-warning-with-logexcerpt'>\n" );
$out->addHTML( "<div class='warningbox mw-warning-with-logexcerpt'>\n" );
$out->addWikiMsg( $noticeMsg );
LogEventsList::showLogExtract(
$out,

View file

@ -277,14 +277,11 @@ p.mw-delete-editreasons {
* Page protection warning
* incl. log entries for these warnings
*/
div.mw-warning-with-logexcerpt {
padding: 3px;
margin-bottom: 3px;
border: 2px solid #2a4b8d;
.mw-warning-with-logexcerpt {
clear: both;
}
div.mw-warning-with-logexcerpt ul li {
.mw-warning-with-logexcerpt ul li {
font-size: 90%;
}