MediaWiki:Common.css
注意:在发布之后,您可能需要清除浏览器缓存才能看到所作出的更改的影响。
- Firefox或Safari:按住Shift的同时单击刷新,或按Ctrl-F5或Ctrl-R(Mac为⌘-R)
- Google Chrome:按Ctrl-Shift-R(Mac为⌘-Shift-R)
- Edge:按住Ctrl的同时单击刷新,或按Ctrl-F5。
/* Novark v2 站点基础样式:只承载令牌与必要基础规则,不覆盖 Citizen 布局。 */
:root {
--nv-paper: #f7f3ea;
--nv-paper-raised: #fffdf7;
--nv-paper-deep: #efe7d9;
--nv-ink: #24211d;
--nv-ink-muted: #6f675b;
--nv-ink-emphasis: #15120f;
--nv-line: #d8cdbc;
--nv-accent: #8b3f2f;
--nv-accent-soft: #f0dfd6;
--nv-success: #4f6b4a;
--nv-warning: #8a641d;
--nv-danger: #8a2f2b;
--nv-body-font: "Noto Serif SC", "Songti SC", serif;
--nv-ui-font: "Noto Sans SC", "PingFang SC", sans-serif;
--nv-reading-width: 68rem;
}
@media (prefers-color-scheme: dark) {
:root {
--nv-paper: #171a1d;
--nv-paper-raised: #20252a;
--nv-paper-deep: #1b2024;
--nv-ink: #e8e1d5;
--nv-ink-muted: #b8b0a3;
--nv-ink-emphasis: #fffaf0;
--nv-line: #3c444b;
--nv-accent: #d69076;
--nv-accent-soft: #412a25;
--nv-success: #9ac08f;
--nv-warning: #d8b96a;
--nv-danger: #e08f86;
}
}
body {
background: var(--nv-paper);
color: var(--nv-ink);
font-family: var(--nv-body-font);
line-height: 1.8;
}
.mw-parser-output {
max-width: var(--nv-reading-width);
}
.mw-parser-output p {
margin: 0 0 0.85rem;
}
.mw-parser-output a {
color: var(--nv-accent);
}
.mw-parser-output h2,
.mw-parser-output h3,
.mw-parser-output h4 {
color: var(--nv-ink-emphasis);
font-family: var(--nv-ui-font);
line-height: 1.35;
}
.mw-parser-output table.wikitable {
border-collapse: collapse;
border: 1px solid var(--nv-line);
background: var(--nv-paper-raised);
}
.mw-parser-output table.wikitable th,
.mw-parser-output table.wikitable td {
border: 1px solid var(--nv-line);
padding: 0.4rem 0.55rem;
text-align: left;
vertical-align: top;
}
.mw-parser-output table.wikitable th {
background: var(--nv-paper-deep);
color: var(--nv-ink-emphasis);
font-family: var(--nv-ui-font);
}
.mw-parser-output .nv-table-scroll {
max-width: 100%;
overflow-x: auto;
}
@media (max-width: 720px) {
.mw-parser-output {
max-width: 100%;
}
.mw-parser-output table.wikitable {
font-size: 0.92rem;
}
}
/* v2 功能组件样式:经济计算器、法术筛选、宽表、术语/页脚基础修正。 */
.mien-price-inline-calculator,
.mien-currency-inline-calculator {
margin: 1rem 0 1.25rem;
padding: .8rem .9rem;
border: 1px solid #c9bfae;
border-radius: 6px;
background: #fbf7ee;
color: #24211d;
font-size: .95rem;
}
.mien-price-calculator-title,
.mien-currency-calculator-title { font-size: 1.05rem; font-weight: 700; margin-bottom: .55rem; }
.mien-price-calculator-row,
.mien-currency-calculator-row { display: flex; flex-wrap: wrap; align-items: center; gap: .45rem .75rem; }
.mien-price-inline-calculator label,
.mien-currency-inline-calculator label { display: inline-flex; align-items: center; gap: .25rem; white-space: nowrap; font-weight: 600; }
.mien-price-inline-calculator input,
.mien-price-inline-calculator select,
.mien-currency-inline-calculator input,
.mien-currency-inline-calculator select { height: 2rem; padding: .2rem .45rem; border: 1px solid #b9ae9c; border-radius: 4px; background: #fffdf7; color: inherit; font-size: .92rem; }
.mien-price-inline-calculator input,
.mien-currency-inline-calculator input { width: 5.8rem; }
.mien-price-inline-calculator select,
.mien-currency-inline-calculator select { max-width: 10rem; }
.mien-price-inline-result,
.mien-currency-inline-result { margin-top: .5rem; line-height: 1.7; }
.mien-price-formula-line { margin-top: .55rem; padding-top: .5rem; border-top: 1px solid #d8cdbc; font-size: .9rem; line-height: 1.65; opacity: .9; }
.mien-price-limit-ok { font-weight: 700; color: #24633c; }
.mien-price-limit-over { font-weight: 700; color: #9b3a2a; }
.mien-spell-filter {
display: grid;
grid-template-columns: minmax(220px, 2fr) repeat(4, minmax(120px, 1fr)) auto;
gap: .6rem;
align-items: center;
margin: 1rem 0 1.25rem;
}
.mien-spell-filter input,
.mien-spell-filter select,
.mien-spell-filter button { width: 100%; min-height: 2.15rem; padding: .35rem .5rem; border: 1px solid #b9ae9c; border-radius: 4px; background: #fffdf7; color: #24211d; font-size: .95rem; }
.mien-spell-filter button { cursor: pointer; font-weight: 600; }
.mien-spell-filter button:hover { background: #efe7d9; }
.mien-sortable-table th[data-sort-direction]::after { content: " ▲"; opacity: .6; font-size: .8em; }
.mien-sortable-table th[data-sort-direction="desc"]::after { content: " ▼"; }
.mien-sortable-table th { cursor: pointer; user-select: none; }
.mien-sortable-table tr[hidden] { display: none; }
.nv-term { border-left-color: #8b3f2f; }
.nv-term__backlinks { margin-top: .45rem; font-size: .82rem; }
.nv-term__backlinks a { color: #8b3f2f; }
/* Citizen 页脚占位图:在正式 logo 上传前显示文字标识,不显示默认占位 SVG。 */
img.mw-logo-icon { display: none !important; }
.mw-logo-wordmark { font-family: "Noto Serif SC", "Songti SC", serif; font-size: 1.35rem; letter-spacing: .08em; font-weight: 700; }
@media (max-width: 900px) {
.mien-spell-filter { grid-template-columns: 1fr 1fr; }
.mien-spell-filter input { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
.mien-spell-filter { grid-template-columns: 1fr; }
.mien-price-inline-calculator label,
.mien-currency-inline-calculator label { width: 100%; }
.mien-price-inline-calculator input,
.mien-price-inline-calculator select,
.mien-currency-inline-calculator input,
.mien-currency-inline-calculator select { max-width: 100%; width: 100%; }
}
@media (prefers-color-scheme: dark) {
.mien-price-inline-calculator,
.mien-currency-inline-calculator { background: #20252a; border-color: #4a5158; color: #e8e1d5; }
.mien-price-inline-calculator input,
.mien-price-inline-calculator select,
.mien-currency-inline-calculator input,
.mien-currency-inline-calculator select,
.mien-spell-filter input,
.mien-spell-filter select,
.mien-spell-filter button { background: #2a3036; color: #e8e1d5; border-color: #5a636c; }
.mien-price-formula-line { border-color: #4a5158; }
}
/* 时间轴与皇室世系:结构/关系可编辑,视觉效果只作层次提示。 */
.nv-timeline { width: 100%; border-collapse: collapse; }
.nv-timeline th { background: #efe7d9; color: #24211d; }
.nv-timeline td:first-child { font-weight: 700; white-space: nowrap; }
.nv-timeline td:nth-child(2), .nv-timeline td:nth-child(4) { white-space: nowrap; }
.nv-lineage { width: 100%; border-collapse: collapse; font-size: .94rem; }
.nv-lineage th { position: sticky; top: 0; background: #efe7d9; color: #24211d; z-index: 1; }
.nv-lineage td { vertical-align: top; line-height: 1.55; }
.nv-lineage td:first-child { text-align: center; font-weight: 700; }
.nv-lineage td:nth-child(2) { white-space: nowrap; }
.nv-lineage td:nth-child(3) { font-weight: 600; }
.nv-table-scroll { overflow-x: auto; max-width: 100%; }
@media (max-width: 720px) {
.nv-timeline, .nv-lineage { font-size: .88rem; }
.nv-lineage td:nth-child(2) { white-space: normal; }
}
/* 链接/术语悬浮摘要(作者主动悬停,不自动替换正文) */