/* [[:en:Module:Message box/cmbox.css]] */
.cmbox {
margin: 3px 0;
border-collapse: collapse;
border: 1px solid var(--border-color-base, #a2a9b1);
background-color: var(--azwiki-background-color-blue150, #dcebff); /* Default "notice" blue */
box-sizing: border-box;
}
.cmbox-speedy {
border: 4px solid var(--border-color-error, #b32424); /* Red */
background-color: #ffdbdb; /* Pink */
}
.cmbox-delete {
background-color: #ffdbdb; /* Pink */
}
.cmbox-content {
background-color: #ffe7ce; /* Orange */
}
.cmbox-style {
background-color: #fff9db; /* Yellow */
}
.cmbox-move {
background-color: #e4d8ff; /* Purple */
}
.cmbox-protection {
background-color: #efefe1; /* Gray-gold */
}
@media screen {
html.skin-theme-clientpref-night .cmbox-speedy,
html.skin-theme-clientpref-night .cmbox-delete {
background-color: var(--background-color-error-subtle, #421211);
}
html.skin-theme-clientpref-night .cmbox-content {
background-color: #321f1e;
}
html.skin-theme-clientpref-night .cmbox-style {
background-color: var(--background-color-warning-subtle, #301d00);
}
html.skin-theme-clientpref-night .cmbox-move {
background-color: #23203b;
}
html.skin-theme-clientpref-night .cmbox-protection {
background-color: var(--background-color-neutral-subtle, #202122);
}
}
@media screen and (prefers-color-scheme: dark) {
html.skin-theme-clientpref-os .cmbox-speedy,
html.skin-theme-clientpref-os .cmbox-delete {
background-color: var(--background-color-error-subtle, #421211);
}
html.skin-theme-clientpref-os .cmbox-content {
background-color: #321f1e;
}
html.skin-theme-clientpref-os .cmbox-style {
background-color: var(--background-color-warning-subtle, #301d00);
}
html.skin-theme-clientpref-os .cmbox-move {
background-color: #23203b;
}
html.skin-theme-clientpref-os .cmbox-protection {
background-color: var(--background-color-neutral-subtle, #202122);
}
}
.cmbox .mbox-text {
border: none;
/* @noflip */
padding: 0.25em 0.9em;
width: 100%;
}
.cmbox .mbox-image {
border: none;
/* @noflip */
padding: 2px 0 2px 0.9em;
text-align: center;
}
.cmbox .mbox-imageright {
border: none;
/* @noflip */
padding: 2px 0.9em 2px 0;
text-align: center;
}
/* An empty narrow cell */
.cmbox .mbox-empty-cell {
border: none;
padding: 0;
width: 1px;
}
.cmbox .mbox-invalid-type {
text-align: center;
}
/* Хак, TODO: посмотреть, как оно на самом деле работает */
.cmbox .mbox-textsmall-div {
font-size: 90%;
}
@media (min-width: 720px) {
.cmbox {
margin: 3px 10%;
}
}