打开/关闭菜单
打开/关闭外观设置菜单
打开/关闭个人菜单
未登录
未登录用户的IP地址会在进行任意编辑后公开展示。

RIA Wiki 已更新到 1.41!部分 CSS 在新版本下可能有不同的表现,请编辑者注意检查和修改。 目前wiki关闭了自行注册账号的功能,如需注册账号,请查阅Help:注册账号

模块:Message box/ambox.css:修订间差异

来自RIA | Wiki
Aunst留言 | 贡献
用于Module:Message_box的模板样式
 
Aunst留言 | 贡献
更新样式
 
(未显示同一用户的1个中间版本)
第3行: 第3行:
  *
  *
  * @source https://en.wikipedia.org/wiki/MediaWiki:Common.css
  * @source https://en.wikipedia.org/wiki/MediaWiki:Common.css
  * @revision 2022-05-27
  * @revision 2024-10-04
*/
*/
/* 基础格式 */
.ambox {
.ambox {
  margin: 0 10%;
   border: 1px solid rgba(0, 0, 0, 0.08);
   border: 1px solid #a2a9b1;
   border-left: 10px solid rgb(90, 118, 228);
   border-left: 10px solid #3366cc;
   background-color: rgba(0, 0, 0, 0.02);
   background-color: #fbfbfb;
}
}
.ambox .mbox-text {
.ambox .mbox-text {
   padding: 0.25em 0.5em;
   padding: 0.25em 0.5em;
}
}
.ambox .mbox-image {
.ambox .mbox-image {
   padding: 2px 0 2px 0.5em;
   padding-left: 0.5em;
}
}
.ambox .mbox-imageright {
.ambox .mbox-imageright {
   padding: 2px 0.5em 2px 0;
   padding-right: 0.5em;
}
@media screen and (min-width: 720px) {
  .ambox {
    margin: 0 10%;
  }
}
}


第29行: 第31行:
}
}


/* 设置颜色 */
.ambox-notice {
.ambox-notice {
   border-left-color: #3366cc;
   border-left-color: rgb(90, 118, 228);
}
}
.ambox-speedy {
.ambox-speedy {
   border-left-color: #b32424;
   border-left-color: rgb(197, 56, 41);
   background-color: #fee7e6;
   background-color: rgba(250, 136, 126, 0.15);
}
}
.ambox-delete {
.ambox-delete {
   border-left-color: #b32424;
   border-left-color: rgb(197, 56, 41);
}
}
.ambox-content {
.ambox-content {
   border-left-color: #f28500;
   border-left-color: rgb(228, 98, 18);
}
}
.ambox-style {
.ambox-style {
   border-left-color: #ffcc33;
   border-left-color: rgb(220, 164, 0);
}
}
.ambox-move {
.ambox-move {
   border-left-color: darkorchid;
   border-left-color: rgb(160, 114, 230);
}
.ambox-protection {
  border-left-color: rgb(151, 158, 178);
}
}


.ambox-protection {
/* | 黑暗模式 */
   border-left-color: #a2a9b1;
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);
}
}


/* 在使用 Minerva Neue 皮肤 (移动端默认) 时改变消息框文本颜色 */
@media screen and (prefers-color-scheme: dark) {
body.skin-minerva .ambox {
  html.skin-theme-clientpref-os .ambox {
   color: #54595d;
    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);
}
}


body.skin-minerva .ambox .ambox-learn-more,
@media screen and (prefers-color-scheme: dark) {
body.skin-minerva .ambox .ambox-learn-more + .mw-ui-icon {
  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;
   display: none;
}
}


/* 在低宽度时移除外边距 */
@media screen and (min-width: 720px) {
@media screen and (max-width: 767px) {
   .ambox-minerva_skin-improve .ambox-learn-more,
   .ambox {
  .ambox-minerva_skin-improve.ambox-speedy .ambox-learn-more {
     margin: 0;
     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);
   }
   }
}
}

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);
  }
}