Template:Msgbox/styles.css: Difference between revisions
Jump to navigation
Jump to search
[unchecked revision] | [unchecked revision] |
Content added Content deleted
(Xtex changed the content model of the page Template:Msgbox/styles.css from "wikitext" to "Sanitized CSS") Tag: content model change |
mNo edit summary |
||
Line 7: | Line 7: | ||
margin: 0.5em auto; |
margin: 0.5em auto; |
||
padding: 0.3em 0.6em; |
padding: 0.3em 0.6em; |
||
border- |
border-top: 8px solid #36e; |
||
background-color: #f8f9fa; |
background-color: #f8f9fa; |
||
} |
} |
||
Line 32: | Line 32: | ||
.msgbox.msgbox-notice { |
.msgbox.msgbox-notice { |
||
background-color: #f8f9fa; |
background-color: #f8f9fa; |
||
border |
border-color: #36e; |
||
} |
} |
||
Line 38: | Line 38: | ||
.msgbox.msgbox-warning { |
.msgbox.msgbox-warning { |
||
background-color: #fcc; |
background-color: #fcc; |
||
border |
border-color: #e44; |
||
} |
} |
||
Line 44: | Line 44: | ||
.msgbox.msgbox-status { |
.msgbox.msgbox-status { |
||
background-color: #cfc; |
background-color: #cfc; |
||
border |
border-color: #5d5; |
||
} |
} |
||
Revision as of 02:00, 10 June 2024
.msgbox {
display: grid;
grid-template-columns: 1fr;
gap: 0.6em;
align-items: center;
max-width: 80%;
margin: 0.5em auto;
padding: 0.3em 0.6em;
border-top: 8px solid #36e;
background-color: #f8f9fa;
}
.msgbox.with-image {
grid-template-columns: max-content 1fr;
}
.msgbox.msgbox-mini {
gap: 0.3em;
margin-left: 0;
margin-right: 0;
padding: 0 0.3em;
max-width: max-content;
}
@media screen and (max-width: 720px) {
.msgbox {
max-width: 100%;
}
}
.msgbox.msgbox-default,
.msgbox.msgbox-notice {
background-color: #f8f9fa;
border-color: #36e;
}
.msgbox.msgbox-red,
.msgbox.msgbox-warning {
background-color: #fcc;
border-color: #e44;
}
.msgbox.msgbox-green,
.msgbox.msgbox-status {
background-color: #cfc;
border-color: #5d5;
}
.msgbox-body.align-left {
text-align: left;
}
.msgbox-body.align-center {
text-align: center;
}
.msgbox-body.align-right {
text-align: right;
}
.msgbox-text p {
margin: 0;
}