Module:Message box/fmbox.css: Difference between revisions
From Attu Project
More actions
Content deleted Content added
m 1 revision imported: Infoboxes Reqs |
border color per tper |
||
| (5 intermediate revisions by 2 users not shown) | |||
| Line 1: | Line 1: | ||
/* {{pp|small=y}} */ |
/* {{pp|small=y}} */ |
||
.fmbox { |
.fmbox { |
||
clear: both; /* this sheet does not require overflow-x because of this clear */ |
|||
clear: both; |
|||
margin: 0.2em 0; |
margin: 0.2em 0; |
||
| ⚫ | |||
| ⚫ | |||
background-color: var(--background-color-interactive-subtle, #f8f9fa); |
|||
| ⚫ | |||
| ⚫ | |||
background-color: #f8f9fa; /* Default "system" gray */ |
|||
color: var(--color-base, #202122); |
|||
| ⚫ | |||
} |
} |
||
| Line 19: | Line 19: | ||
.fmbox .mbox-text { |
.fmbox .mbox-text { |
||
| ⚫ | |||
| ⚫ | |||
| ⚫ | |||
| ⚫ | |||
| ⚫ | |||
width: 100%; |
|||
} |
} |
||
.fmbox .mbox-image |
.fmbox .mbox-image, |
||
| ⚫ | |||
border: none; |
|||
| ⚫ | |||
| ⚫ | |||
| ⚫ | |||
text-align: center; |
text-align: center; |
||
| ⚫ | |||
} |
} |
||
/* keep synced with each other type of message box as this isn't qualified */ |
|||
| ⚫ | |||
| ⚫ | |||
border: none; |
|||
/* @noflip */ |
|||
padding: 2px 0.9em 2px 0; |
|||
text-align: center; |
text-align: center; |
||
} |
} |
||
@media (min-width: 480px) { |
|||
| ⚫ | |||
.fmbox { |
|||
| ⚫ | |||
display: flex; |
|||
| ⚫ | |||
} |
|||
.fmbox .mbox-image { |
|||
| ⚫ | |||
padding-left: 1em; |
|||
} |
|||
.fmbox .mbox-imageright { |
|||
| ⚫ | |||
padding-right: 1em; |
|||
} |
|||
} |
|||
@media screen { |
|||
html.skin-theme-clientpref-night .fmbox-warning { |
|||
background-color: #300; /* Reddish, same hue/saturation as light */ |
|||
} |
|||
} |
|||
@media screen and (prefers-color-scheme: dark) { |
|||
html.skin-theme-clientpref-os .fmbox-warning { |
|||
background-color: #300; /* Reddish, same hue/saturation as light */ |
|||
} |
|||
} |
} |
||
Latest revision as of 16:38, 13 September 2026
/* {{pp|small=y}} */
.fmbox {
clear: both; /* this sheet does not require overflow-x because of this clear */
margin: 0.2em 0;
border: 1px solid var(--border-color-base, #a2a9b1);
background-color: var(--background-color-interactive-subtle, #f8f9fa);
box-sizing: border-box;
color: var(--color-base, #202122);
}
.fmbox-warning {
border: 1px solid #bb7070; /* Dark pink */
background-color: #ffdbdb; /* Pink */
}
.fmbox-editnotice {
background-color: transparent;
}
.fmbox .mbox-text {
padding: 0.35em 1em;
flex: 1 1 100%;
}
.fmbox .mbox-image,
.fmbox .mbox-imageright {
padding: 4px 2px;
text-align: center;
flex: none;
}
/* keep synced with each other type of message box as this isn't qualified */
.mbox-invalid-type {
text-align: center;
}
@media (min-width: 480px) {
.fmbox {
display: flex;
align-items: center;
}
.fmbox .mbox-image {
/* @noflip */
padding-left: 1em;
}
.fmbox .mbox-imageright {
/* @noflip */
padding-right: 1em;
}
}
@media screen {
html.skin-theme-clientpref-night .fmbox-warning {
background-color: #300; /* Reddish, same hue/saturation as light */
}
}
@media screen and (prefers-color-scheme: dark) {
html.skin-theme-clientpref-os .fmbox-warning {
background-color: #300; /* Reddish, same hue/saturation as light */
}
}