模块:Message box/ambox.css
来自RIA | Wiki
更多操作
/* {{Ambox}} (article message box) styles
* 条目消息框样式
*
* @source https://en.wikipedia.org/wiki/MediaWiki:Common.css
* @revision 2024-10-04
*/
/* 基础格式 */
.ambox {
border: 1px solid rgba(0, 0, 0, 0.08);
border-left: 10px solid rgb(90, 118, 228);
background-color: rgba(0, 0, 0, 0.02);
}
.ambox .mbox-text {
padding: 0.25em 0.5em;
}
.ambox .mbox-image {
padding-left: 0.5em;
}
.ambox .mbox-imageright {
padding-right: 0.5em;
}
@media screen and (min-width: 720px) {
.ambox {
margin: 0 10%;
}
}
.ambox + .ambox,
.ambox + .component-template_styles + .ambox {
margin-top: -1px;
}
/* 设置颜色 */
.ambox-notice {
border-left-color: rgb(90, 118, 228);
}
.ambox-speedy {
border-left-color: rgb(197, 56, 41);
background-color: rgba(250, 136, 126, 0.15);
}
.ambox-delete {
border-left-color: rgb(197, 56, 41);
}
.ambox-content {
border-left-color: rgb(228, 98, 18);
}
.ambox-style {
border-left-color: rgb(220, 164, 0);
}
.ambox-move {
border-left-color: rgb(160, 114, 230);
}
.ambox-protection {
border-left-color: rgb(151, 158, 178);
}
/* | 黑暗模式 */
html.skin-theme-clientpref-night .ambox {
border-color: rgba(255, 255, 255, 0.08);
background-color: rgba(255, 255, 255, 0.02);
}
html.skin-theme-clientpref-night .ambox-notice {
border-left-color: rgb(34, 49, 125);
}
html.skin-theme-clientpref-night .ambox-speedy {
border-left-color: rgb(111, 15, 7);
background-color: rgba(85, 17, 16, 0.15);
}
html.skin-theme-clientpref-night .ambox-delete {
border-left-color: rgb(111, 15, 7);
}
html.skin-theme-clientpref-night .ambox-content {
border-left-color: rgb(121, 44, 0);
}
html.skin-theme-clientpref-night .ambox-style {
border-left-color: rgb(110, 80, 0);
}
html.skin-theme-clientpref-night .ambox-move {
border-left-color: rgb(84, 50, 130);
}
html.skin-theme-clientpref-night .ambox-protection {
border-left-color: rgb(40, 45, 61);
}
@media screen and (prefers-color-scheme: dark) {
html.skin-theme-clientpref-os .ambox {
border-color: rgba(255, 255, 255, 0.08);
background-color: rgba(255, 255, 255, 0.02);
}
html.skin-theme-clientpref-os .ambox-notice {
border-left-color: rgb(34, 49, 125);
}
html.skin-theme-clientpref-os .ambox-speedy {
border-left-color: rgb(111, 15, 7);
background-color: rgba(85, 17, 16, 0.15);
}
html.skin-theme-clientpref-os .ambox-delete {
border-left-color: rgb(111, 15, 7);
}
html.skin-theme-clientpref-os .ambox-content {
border-left-color: rgb(121, 44, 0);
}
html.skin-theme-clientpref-os .ambox-style {
border-left-color: rgb(110, 80, 0);
}
html.skin-theme-clientpref-os .ambox-move {
border-left-color: rgb(84, 50, 130);
}
html.skin-theme-clientpref-os .ambox-protection {
border-left-color: rgb(40, 45, 61);
}
}
/* || 纯黑模式(Citizen) */
html.skin-theme-clientpref-night.citizen-feature-pure-black-clientpref-1 .ambox {
background-color: black;
}
html.skin-theme-clientpref-night.citizen-feature-pure-black-clientpref-1 .ambox-speedy {
background-color: rgba(85, 17, 16, 0.15);
}
@media screen and (prefers-color-scheme: dark) {
html.skin-theme-clientpref-os.citizen-feature-pure-black-clientpref-1 .ambox {
background-color: black;
}
html.skin-theme-clientpref-os.citizen-feature-pure-black-clientpref-1 .ambox-speedy {
background-color: rgba(85, 17, 16, 0.15);
}
}
/* Minerva Neue皮肤优化 */
.ambox-minerva_skin-improve {
background-color: rgb(248, 249, 250);
}
.ambox-minerva_skin-improve .mbox-text {
position: relative;
}
.ambox-minerva_skin-improve .hide-when-compact {
display: none;
}
.ambox-minerva_skin-improve .ambox-learn-more {
position: absolute;
right: 0.5em;
bottom: 0.2em;
display: block;
padding-left: 2em;
background-image: linear-gradient(to right, transparent, rgb(248, 249, 250) 1.5em);
color: #3366cc;
cursor: pointer;
}
.ambox-minerva_skin-improve.ambox-speedy .ambox-learn-more {
background-image: linear-gradient(to right, transparent, rgb(254, 231, 230) 1.5em);
}
.ambox-minerva_skin-improve .ambox-learn-more:hover {
text-decoration: underline solid;
}
.ambox-minerva_skin-improve .ambox-learn-more:active {
color: #faa700;
}
.ambox-minerva_skin-improve .ambox-last_visible_p {
margin-bottom: 0;
}
.ambox-minerva_skin-improve .minerva-ambox-icon {
display: none;
}
@media screen and (min-width: 720px) {
.ambox-minerva_skin-improve .ambox-learn-more,
.ambox-minerva_skin-improve.ambox-speedy .ambox-learn-more {
right: inherit;
bottom: 0.5em;
padding-left: 0;
background-image: none;
}
.ambox-minerva_skin-improve .mbox-text-span {
padding-bottom: 2em;
}
}
html.skin-theme-clientpref-night .ambox-minerva_skin-improve {
background-color: rgb(32, 33, 34);
}
html.skin-theme-clientpref-night .ambox-minerva_skin-improve .ambox-learn-more {
background-image: linear-gradient(to right, transparent, rgb(32, 33, 34) 1.5em);
}
html.skin-theme-clientpref-night .ambox-minerva_skin-improve.ambox-speedy .ambox-learn-more {
background-image: linear-gradient(to right, transparent, rgb(53, 12, 12) 1.5em);
}
@media screen and (prefers-color-scheme: dark) {
html.skin-theme-clientpref-os .ambox-minerva_skin-improve {
background-color: rgb(32, 33, 34);
}
html.skin-theme-clientpref-os .ambox-minerva_skin-improve .ambox-learn-more {
background-image: linear-gradient(to right, transparent, rgb(32, 33, 34) 1.5em);
}
html.skin-theme-clientpref-os .ambox-minerva_skin-improve.ambox-speedy .ambox-learn-more {
background-image: linear-gradient(to right, transparent, rgb(53, 12, 12) 1.5em);
}
}