Brucekomike(讨论 | 贡献) 无编辑摘要 |
Brucekomike(讨论 | 贡献) 无编辑摘要 |
||
第147行: | 第147行: | ||
.navbox-title .navbar { | .navbox-title .navbar { | ||
color: #ddd; | color: #ddd; | ||
} | |||
} | |||
/* Dark Mode Overrides */ | |||
@media (prefers-color-scheme: dark) { | |||
.navbox { | |||
border-color: #555; | |||
background-color: #1c1c1c; | |||
} | |||
.navbox-title { | |||
background-color: #333366; | |||
} | |||
.navbox-abovebelow, | |||
.navbox-group, | |||
.navbox-subgroup .navbox-title { | |||
background-color: #444477; | |||
} | |||
.navbox-subgroup .navbox-group, | |||
.navbox-subgroup .navbox-abovebelow { | |||
background-color: #555588; | |||
} | |||
.navbox-even { | |||
background-color: #2c2c2c; | |||
} | |||
.navbox-list { | |||
border-color: #1c1c1c; | |||
} | |||
.navbox-title .navbar { | |||
color: #ddd; | |||
} | |||
/* Red color for non-existent page links */ | |||
a.new { | |||
color: #ff6666; /* Bright red for dark mode */ | |||
} | } | ||
} | } |
2025年1月4日 (六) 14:15的最新版本
/* {{pp|small=y}} */
.navbox {
box-sizing: border-box;
border: 1px solid #a2a9b1;
width: 100%;
clear: both;
font-size: 88%;
text-align: center;
padding: 1px;
margin: 1em auto 0;
}
.navbox .navbox {
margin-top: 0;
}
.navbox + .navbox,
.navbox + .navbox-styles + .navbox {
margin-top: -1px;
}
.navbox-inner,
.navbox-subgroup {
width: 100%;
}
.navbox-group,
.navbox-title,
.navbox-abovebelow {
padding: 0.25em 1em;
line-height: 1.5em;
text-align: center;
}
.navbox-group {
white-space: nowrap;
text-align: right;
}
.navbox,
.navbox-subgroup {
background-color: #fdfdfd;
}
.navbox-list {
line-height: 1.5em;
border-color: #fdfdfd;
}
.navbox-list-with-group {
text-align: left;
border-left-width: 2px;
border-left-style: solid;
}
tr + tr > .navbox-abovebelow,
tr + tr > .navbox-group,
tr + tr > .navbox-image,
tr + tr > .navbox-list {
border-top: 2px solid #fdfdfd;
}
.navbox-title {
background-color: #ccf;
}
.navbox-abovebelow,
.navbox-group,
.navbox-subgroup .navbox-title {
background-color: #ddf;
}
.navbox-subgroup .navbox-group,
.navbox-subgroup .navbox-abovebelow {
background-color: #e6e6ff;
}
.navbox-even {
background-color: #f7f7f7;
}
.navbox-odd {
background-color: transparent;
}
.navbox .hlist td dl,
.navbox .hlist td ol,
.navbox .hlist td ul,
.navbox td.hlist dl,
.navbox td.hlist ol,
.navbox td.hlist ul {
padding: 0.125em 0;
}
.navbox .navbar {
display: block;
font-size: 100%;
}
.navbox-title .navbar {
float: left;
text-align: left;
margin-right: 0.5em;
}
/** T367463 */
body.skin--responsive .navbox-image img {
max-width: none !important;
}
@media print {
body.ns-0 .navbox {
display: none !important;
}
}
/* Dark Mode Overrides */
@media (prefers-color-scheme: dark) {
.navbox {
border-color: #555;
background-color: #1c1c1c;
}
.navbox-title {
background-color: #333366;
}
.navbox-abovebelow,
.navbox-group,
.navbox-subgroup .navbox-title {
background-color: #444477;
}
.navbox-subgroup .navbox-group,
.navbox-subgroup .navbox-abovebelow {
background-color: #555588;
}
.navbox-even {
background-color: #2c2c2c;
}
.navbox-list {
border-color: #1c1c1c;
}
.navbox-title .navbar {
color: #ddd;
}
}
/* Dark Mode Overrides */
@media (prefers-color-scheme: dark) {
.navbox {
border-color: #555;
background-color: #1c1c1c;
}
.navbox-title {
background-color: #333366;
}
.navbox-abovebelow,
.navbox-group,
.navbox-subgroup .navbox-title {
background-color: #444477;
}
.navbox-subgroup .navbox-group,
.navbox-subgroup .navbox-abovebelow {
background-color: #555588;
}
.navbox-even {
background-color: #2c2c2c;
}
.navbox-list {
border-color: #1c1c1c;
}
.navbox-title .navbar {
color: #ddd;
}
/* Red color for non-existent page links */
a.new {
color: #ff6666; /* Bright red for dark mode */
}
}