Новая страница: «→‎* Styles for message box templates like {{Note}} and {{Warning}}: .mw-message-box { border: 1px solid #aaa; background-color: #f9f9f9; width: 80%; margin: 0.5em auto; padding: 0.2em 0.9em; display: table; } .mw-message-box-icon { display: table-cell; vertical-align: middle; width: 50px; →‎Space for the icon: padding-right: 10px; } .mw-message-box-text { display: table-cell; vertical-align: middle;...»
(нет различий)

Версия от 18:02, 24 августа 2025

/*
 * Styles for message box templates like {{Note}} and {{Warning}}
 */

.mw-message-box {
    border: 1px solid #aaa;
    background-color: #f9f9f9;
    width: 80%;
    margin: 0.5em auto;
    padding: 0.2em 0.9em;
    display: table;
}

.mw-message-box-icon {
    display: table-cell;
    vertical-align: middle;
    width: 50px; /* Space for the icon */
    padding-right: 10px;
}

.mw-message-box-text {
    display: table-cell;
    vertical-align: middle;
}

/* Note Template Style */
.mw-message-box-note {
    border-color: #1e90ff; /* dodgerblue */
}

/* Warning Template Style */
.mw-message-box-warning {
    border-color: #ffc40d; /* gold */
    background-color: #fefde3; /* light yellow */
}