模块:Message box/ambox.css:修订间差异
来自RIA | Wiki
更多操作
更新 |
更新样式 |
||
| 第3行: | 第3行: | ||
* | * | ||
* @source https://en.wikipedia.org/wiki/MediaWiki:Common.css | * @source https://en.wikipedia.org/wiki/MediaWiki:Common.css | ||
* @revision | * @revision 2024-10-04 | ||
*/ | */ | ||
/* 基础格式 */ | |||
.ambox { | .ambox { | ||
border: 1px solid rgba(0, 0, 0, 0.08); | |||
border: 1px solid | border-left: 10px solid rgb(90, 118, 228); | ||
border-left: 10px solid | background-color: rgba(0, 0, 0, 0.02); | ||
background-color: | |||
} | } | ||
.ambox .mbox-text { | .ambox .mbox-text { | ||
| 第15行: | 第15行: | ||
} | } | ||
.ambox .mbox-image { | .ambox .mbox-image { | ||
padding: | padding-left: 0.5em; | ||
} | } | ||
.ambox .mbox-imageright { | .ambox .mbox-imageright { | ||
padding: | padding-right: 0.5em; | ||
} | |||
@media screen and (min-width: 720px) { | |||
.ambox { | |||
margin: 0 10%; | |||
} | |||
} | } | ||
| 第26行: | 第31行: | ||
} | } | ||
/* 设置颜色 */ | |||
.ambox-notice { | .ambox-notice { | ||
border-left-color: | border-left-color: rgb(90, 118, 228); | ||
} | } | ||
.ambox-speedy { | .ambox-speedy { | ||
border-left-color: | border-left-color: rgb(197, 56, 41); | ||
background-color: | background-color: rgba(250, 136, 126, 0.15); | ||
} | } | ||
.ambox-delete { | .ambox-delete { | ||
border-left-color: | border-left-color: rgb(197, 56, 41); | ||
} | } | ||
.ambox-content { | .ambox-content { | ||
border-left-color: | border-left-color: rgb(228, 98, 18); | ||
} | } | ||
.ambox-style { | .ambox-style { | ||
border-left-color: | border-left-color: rgb(220, 164, 0); | ||
} | } | ||
.ambox-move { | .ambox-move { | ||
border-left-color: | border-left-color: rgb(160, 114, 230); | ||
} | |||
.ambox-protection { | |||
border-left-color: rgb(151, 158, 178); | |||
} | } | ||
.ambox-protection { | /* | 黑暗模式 */ | ||
border-left-color: | 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) { | |||
@media screen and ( | html.skin-theme-clientpref-os .ambox { | ||
.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 { | |||
color: | 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 { | .ambox-minerva_skin-improve .mbox-text { | ||
position: relative; | position: relative; | ||
} | } | ||
.ambox-minerva_skin-improve .hide-when-compact { | .ambox-minerva_skin-improve .hide-when-compact { | ||
display: none; | display: none; | ||
} | } | ||
.ambox-minerva_skin-improve .ambox-learn-more { | .ambox-minerva_skin-improve .ambox-learn-more { | ||
position: absolute; | position: absolute; | ||
| 第94行: | 第143行: | ||
display: block; | display: block; | ||
padding-left: 2em; | padding-left: 2em; | ||
background-image: linear-gradient(to right, transparent, | background-image: linear-gradient(to right, transparent, rgb(248, 249, 250) 1.5em); | ||
color: #3366cc; | color: #3366cc; | ||
cursor: pointer; | cursor: pointer; | ||
} | } | ||
.ambox-minerva_skin-improve.ambox-speedy .ambox-learn-more { | .ambox-minerva_skin-improve.ambox-speedy .ambox-learn-more { | ||
background-image: linear-gradient(to right, transparent, | background-image: linear-gradient(to right, transparent, rgb(254, 231, 230) 1.5em); | ||
} | } | ||
.ambox-minerva_skin-improve .ambox-learn-more:hover { | .ambox-minerva_skin-improve .ambox-learn-more:hover { | ||
text-decoration: underline solid; | text-decoration: underline solid; | ||
| 第109行: | 第156行: | ||
color: #faa700; | color: #faa700; | ||
} | } | ||
.ambox-minerva_skin-improve .ambox-last_visible_p { | .ambox-minerva_skin-improve .ambox-last_visible_p { | ||
margin-bottom: 0; | margin-bottom: 0; | ||
} | |||
.ambox-minerva_skin-improve .minerva-ambox-icon { | |||
display: none; | |||
} | } | ||
| 第122行: | 第171行: | ||
background-image: none; | background-image: none; | ||
} | } | ||
.ambox-minerva_skin-improve .mbox-text-span { | .ambox-minerva_skin-improve .mbox-text-span { | ||
padding-bottom: 2em; | 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); | |||
} | } | ||
} | } | ||
2026年3月14日 (六) 23:12的最新版本
/* {{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);
}
}