|
|
| (未显示2个用户的17个中间版本) |
| 第1行: |
第1行: |
| /* ========================================================================== | | /* Shared content behaviour only; skin appearance is owned by each skin and template structure by TemplateStyles. */ |
| 弥恩 Wiki 视觉定稿 v1:旧印构成
| |
| 仅使用系统字体;令牌只在 :root / Citizen 主题类中定义一次。
| |
| 本段覆盖旧 v2 的组件外观;保留原有结构、功能、目录和折叠逻辑。
| |
| ========================================================================== */
| |
|
| |
|
| :root {
| |
| --nv-paper: #F7F4EC;
| |
| --nv-paper-raised: #FCFAF5;
| |
| --nv-paper-deep: #EEE8DC;
| |
| --nv-ink: #302B26;
| |
| --nv-ink-muted: #6D6253;
| |
| --nv-ink-emphasis: #302B26;
| |
| --nv-line: #2A231C;
| |
| --nv-hair: #CDC0A8;
| |
| --nv-accent: #B54332;
| |
| --nv-accent-soft: #F0DCD4;
| |
| --nv-green: #2F5547;
| |
| --nv-ochre: #CF9A33;
| |
| --nv-link: #2357A6;
| |
| --nv-link-visited: #5A4A93;
| |
| --nv-link-new: #C4231B;
| |
| --nv-select: rgba(192, 71, 46, .18);
| |
| --nv-success: #2F5547;
| |
| --nv-warning: #8A641D;
| |
| --nv-danger: #8A2F2B;
| |
| --nv-display-font: "Noto Serif SC", "Source Han Serif SC", "Songti SC", "STSong", "SimSun", serif;
| |
| --nv-body-font: "Noto Serif SC", "Source Han Serif SC", "Songti SC", "STSong", "SimSun", serif;
| |
| --nv-ui-font: "PingFang SC", "Noto Sans SC", "Microsoft YaHei", "Microsoft YaHei UI", sans-serif;
| |
| --nv-reading-width: 760px;
| |
| color-scheme: light;
| |
| }
| |
|
| |
| html.skin-theme-clientpref-night,
| |
| html.skin-theme-clientpref-black {
| |
| --nv-paper: #211D19;
| |
| --nv-paper-raised: #2A241F;
| |
| --nv-paper-deep: #332B24;
| |
| --nv-ink: #E8DFD0;
| |
| --nv-ink-muted: #A5988A;
| |
| --nv-ink-emphasis: #E8DFD0;
| |
| --nv-line: #E4DAC6;
| |
| --nv-hair: #4A4034;
| |
| --nv-accent: #DA8068;
| |
| --nv-accent-soft: #3A2822;
| |
| --nv-green: #7AA591;
| |
| --nv-ochre: #DDAE4E;
| |
| --nv-link: #8DB0EE;
| |
| --nv-link-visited: #B4A3E6;
| |
| --nv-link-new: #F2877B;
| |
| --nv-select: rgba(219, 106, 71, .28);
| |
| --nv-success: #7AA591;
| |
| --nv-warning: #DDAE4E;
| |
| --nv-danger: #F2877B;
| |
| color-scheme: dark;
| |
| }
| |
|
| |
| @media (prefers-color-scheme: dark) {
| |
| html.skin-theme-clientpref-os {
| |
| --nv-paper: #211D19;
| |
| --nv-paper-raised: #2A241F;
| |
| --nv-paper-deep: #332B24;
| |
| --nv-ink: #E8DFD0;
| |
| --nv-ink-muted: #A5988A;
| |
| --nv-ink-emphasis: #E8DFD0;
| |
| --nv-line: #E4DAC6;
| |
| --nv-hair: #4A4034;
| |
| --nv-accent: #DA8068;
| |
| --nv-accent-soft: #3A2822;
| |
| --nv-green: #7AA591;
| |
| --nv-ochre: #DDAE4E;
| |
| --nv-link: #8DB0EE;
| |
| --nv-link-visited: #B4A3E6;
| |
| --nv-link-new: #F2877B;
| |
| --nv-select: rgba(219, 106, 71, .28);
| |
| --nv-success: #7AA591;
| |
| --nv-warning: #DDAE4E;
| |
| --nv-danger: #F2877B;
| |
| color-scheme: dark;
| |
| }
| |
| }
| |
|
| |
| body {
| |
| background: var(--nv-paper);
| |
| color: var(--nv-ink);
| |
| font-family: var(--nv-body-font);
| |
| line-height: 1.8;
| |
| }
| |
|
| |
| /* Shared font tokens: TemplateStyles does not accept var() in font-family. */
| |
| body .mw-parser-output .nv-infobox,
| |
| body .mw-parser-output .nv-notice,
| |
| body .mw-parser-output .nv-notice__title,
| |
| body .mw-parser-output .nv-notice__body,
| |
| body .mw-parser-output .novark-notice,
| |
| body .mw-parser-output .novark-notice strong,
| |
| body .mw-parser-output .nv-quote__meta,
| |
| body .mw-parser-output .nv-card__title,
| |
| body .mw-parser-output .nv-card__title a,
| |
| body .mw-parser-output .nv-card__desc,
| |
| body .mw-parser-output .nv-nav-group__title,
| |
| body .mw-parser-output .nv-nav-group,
| |
| body .mw-parser-output .nv-meter,
| |
| body .mw-parser-output .nv-provenance { font-family: var(--nv-ui-font); }
| |
| body .mw-parser-output .nv-infobox__name,
| |
| body .mw-parser-output .nv-quote::before,
| |
| body .mw-parser-output .nv-quote__body,
| |
| body .mw-parser-output .nv-quote__body p,
| |
| body .mw-parser-output .nv-quote blockquote { font-family: var(--nv-display-font); }
| |
| body .mw-parser-output .nv-notice--brief,
| |
| body .mw-parser-output .nv-notice--brief .nv-notice__body,
| |
| body .mw-parser-output .nv-notice--brief .nv-notice__body p { font-family: var(--nv-body-font); }
| |
|
| |
| .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);
| |
| }
| |
|
| |
| @media (max-width: 720px) {
| |
| .mw-parser-output {
| |
| max-width: 100%;
| |
| }
| |
|
| |
| }
| |
|
| |
|
| |
| /* v2 功能组件样式:经济计算器、法术筛选、宽表、术语/页脚基础修正。 */
| |
| .mien-price-inline-calculator, | | .mien-price-inline-calculator, |
| .mien-currency-inline-calculator { | | .mien-currency-inline-calculator { |
| margin: 1rem 0 1.25rem; | | margin: 1rem 0 1.25rem; |
| padding: .8rem .9rem; | | padding: .8rem .9rem; |
| border: 1px solid #c9bfae; | | border: 1px solid var(--nv-hair); |
| border-radius: 6px; | | border-radius: 3px; |
| background: #fbf7ee; | | background: var(--nv-paper-raised); |
| color: #24211d; | | color: var(--nv-ink); |
| | font-family: var(--nv-ui-font); |
| font-size: .95rem; | | font-size: .95rem; |
| } | | } |
| | |
| .mien-price-calculator-title, | | .mien-price-calculator-title, |
| .mien-currency-calculator-title { font-size: 1.05rem; font-weight: 700; margin-bottom: .55rem; } | | .mien-currency-calculator-title { |
| .mien-price-calculator-row,
| | font-size: 1.05rem; font-weight: 700; margin-bottom: .55rem; |
| .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; }
| | .mien-price-calculator-row, |
| .nv-term__backlinks { margin-top: .45rem; font-size: .82rem; }
| | .mien-currency-calculator-row { |
| .nv-term__backlinks a { color: #8b3f2f; }
| | display: flex; flex-wrap: wrap; align-items: center; gap: .45rem .75rem; |
| | |
| /* 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; }
| |
| } | | } |
|
| |
|
| | | .mien-price-inline-calculator label, |
| /* batch3:作者入口与宽表局部约束 */
| | .mien-currency-inline-calculator label { |
| .mw-parser-output .author-entry-form,
| | display: inline-flex; align-items: center; gap: .25rem; white-space: nowrap; font-weight: 600; |
| | |
| .mw-parser-output .author-entry-form input { flex: 1 1 14rem; min-width: 0; max-width: 100%; box-sizing: border-box; }
| |
| .mw-parser-output .author-entry-form button { flex: 0 0 auto; }
| |
| @media (max-width: 480px) {
| |
| .mw-parser-output .author-entry-form button { flex: 1 1 auto; }
| |
| }.mw-parser-output .mien-spell-table { min-width: 44rem; }
| |
| .mw-parser-output .mien-spell-table th:nth-child(1),
| |
| .mw-parser-output .mien-spell-table td:nth-child(1) { min-width: 8em; }
| |
| .mw-parser-output .mien-spell-table th:nth-child(2),
| |
| .mw-parser-output .mien-spell-table td:nth-child(2) { min-width: 4em; }
| |
| .mw-parser-output .mien-spell-table th:nth-child(3),
| |
| .mw-parser-output .mien-spell-table td:nth-child(3) { min-width: 5em; }
| |
| .mw-parser-output .mien-spell-table th:nth-child(4),
| |
| .mw-parser-output .mien-spell-table td:nth-child(4) { min-width: 5.5em; }
| |
| .mw-parser-output .mien-spell-table th:nth-child(5),
| |
| .mw-parser-output .mien-spell-table td:nth-child(5) { min-width: 5.5em; }
| |
| .mw-parser-output .mien-spell-table th:nth-child(6),
| |
| .mw-parser-output .mien-spell-table td:nth-child(6) { min-width: 13em; }
| |
| /* batch3:Page Forms OOUI 创建框内部布局 */
| |
| .mw-parser-output .author-entry-form form { display: block; }
| |
| .mw-parser-output .author-entry-form .oo-ui-horizontalLayout { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; max-width: 100%; }
| |
| .mw-parser-output .author-entry-form .pfPageNameWithoutNamespace { flex: 1 1 14rem; min-width: 0; max-width: 100%; }
| |
| .mw-parser-output .author-entry-form .pfPageNameWithoutNamespace input { width: 100%; box-sizing: border-box; }
| |
| .mw-parser-output .author-entry-form .pfCreateOrEditButton { flex: 0 0 auto; }
| |
| | |
| /* batch4:政权/组织短列、经济货币表、事件短索引 */
| |
| .mw-parser-output .nv-gov-index th:nth-child(1),
| |
| .mw-parser-output .nv-gov-index td:nth-child(1) { min-width: 4.2em; white-space: nowrap; }
| |
| .mw-parser-output .nv-gov-index--polity th:nth-child(2),
| |
| .mw-parser-output .nv-gov-index--polity td:nth-child(2) { min-width: 5.2em; white-space: nowrap; }
| |
| .mw-parser-output #nv-economy-currencies { min-width: 36rem; }
| |
| .mw-parser-output #nv-economy-currencies th:nth-child(1),
| |
| .mw-parser-output #nv-economy-currencies td:nth-child(1) { min-width: 10em; }
| |
| .mw-parser-output #nv-economy-currencies th:nth-child(2),
| |
| .mw-parser-output #nv-economy-currencies td:nth-child(2),
| |
| .mw-parser-output #nv-economy-currencies th:nth-child(3),
| |
| .mw-parser-output #nv-economy-currencies td:nth-child(3) { min-width: 5.2em; white-space: nowrap; }
| |
| .mw-parser-output .nv-event-letter-index th:nth-child(1),
| |
| .mw-parser-output .nv-event-letter-index td:nth-child(1) { min-width: 4em; white-space: nowrap; }
| |
| .mw-parser-output .nv-event-period-index th:nth-child(1),
| |
| .mw-parser-output .nv-event-period-index td:nth-child(1) { min-width: 6.5em; white-space: nowrap; }
| |
| /* Community1: WikiForum narrow-screen board/reply layout */
| |
| | |
| | |
| /* Community1: scoped WikiForum typography/layout (Special page has no .mw-parser-output) */
| |
| | |
| /* Community1: WikiForum mobile stat labels + full-width reply editor */
| |
| | |
| /* Community1: keep reply form table as a table so the textarea fills the cell */
| |
| | |
| | |
| body,
| |
| .citizen-body-container,
| |
| .citizen-page-container,
| |
| #content,
| |
| #bodyContent,
| |
| #mw-content-text {
| |
| background: var(--nv-paper);
| |
| color: var(--nv-ink);
| |
| } | | } |
|
| |
|
| body {
| | .mien-price-inline-calculator input, |
| font-family: var(--nv-body-font); | | .mien-price-inline-calculator select, |
| font-size: 16px;
| | .mien-currency-inline-calculator input, |
| line-height: 1.92;
| | .mien-currency-inline-calculator select { |
| | height: 2rem; padding: .2rem .45rem; border: 1px solid var(--nv-hair); border-radius: 3px; background: var(--nv-paper); color: var(--nv-ink); font: .92rem var(--nv-ui-font); |
| } | | } |
|
| |
|
| .mw-parser-output { | | .mien-price-inline-calculator input, |
| max-width: var(--nv-reading-width);
| | .mien-currency-inline-calculator input { |
| color: var(--nv-ink);
| | width: 5.8rem; |
| font-family: var(--nv-body-font);
| |
| font-size: 16px;
| |
| line-height: 1.92;
| |
| } | | } |
|
| |
|
| .mw-parser-output p { | | .mien-price-inline-calculator select, |
| margin: 0 0 1em;
| | .mien-currency-inline-calculator select { |
| text-align: justify;
| | max-width: 10rem; |
| } | | } |
|
| |
|
| .mw-parser-output b, | | .mien-price-inline-result, |
| .mw-parser-output strong { | | .mien-currency-inline-result { |
| font-weight: 700;
| | margin-top: .5rem; line-height: 1.7; |
| } | | } |
|
| |
|
| /* Links: ordinary blue, red for new pages; never let the theme accent replace them. */
| | .mien-price-formula-line { |
| .mw-parser-output a:not(.nv-term-button):not(.btn):not(.cdx-button), | | margin-top: .55rem; padding-top: .5rem; border-top: 1px solid var(--nv-hair); font-size: .9rem; line-height: 1.65; opacity: .9; |
| .citizen-body a:not(.nv-term-button):not(.btn):not(.cdx-button) {
| |
| color: var(--nv-link);
| |
| text-decoration: none;
| |
| } | | } |
|
| |
|
| .mw-parser-output a:not(.nv-term-button):not(.btn):not(.cdx-button):visited, | | .mien-price-limit-ok { |
| .citizen-body a:not(.nv-term-button):not(.btn):not(.cdx-button):visited {
| | font-weight: 700; color: var(--nv-success); |
| color: var(--nv-link-visited);
| |
| } | | } |
|
| |
|
| .mw-parser-output a.new, | | .mien-price-limit-over { |
| .citizen-body a.new {
| | font-weight: 700; color: var(--nv-danger); |
| color: var(--nv-link-new) !important; | |
| } | | } |
|
| |
|
| .mw-parser-output a:hover, | | .mien-spell-filter { |
| .citizen-body a:hover { | | display: grid; |
| text-decoration: underline; | | grid-template-columns: minmax(220px, 2fr) repeat(4, minmax(120px, 1fr)) auto; |
| text-underline-offset: 3px; | | gap: .6rem; align-items: center; margin: 1rem 0 1.25rem; |
| | padding: .8rem .9rem; border: 1px solid var(--nv-hair); border-radius: 3px; |
| | background: var(--nv-paper-raised); color: var(--nv-ink); font-family: var(--nv-ui-font); |
| } | | } |
|
| |
|
| .mw-parser-output a:focus-visible, | | .mien-spell-filter input, |
| .citizen-body a:focus-visible, | | .mien-spell-filter select, |
| .citizen-section-toggle:focus-visible { | | .mien-spell-filter button { |
| outline: 2px solid var(--nv-link); | | width: 100%; min-height: 2.15rem; padding: .35rem .5rem; border: 1px solid var(--nv-hair); border-radius: 3px; background: var(--nv-paper); color: var(--nv-ink); font: .95rem var(--nv-ui-font); |
| outline-offset: 2px;
| |
| } | | } |
|
| |
|
| /* Page title and header */
| | .mien-spell-filter button { |
| .citizen-header { | | cursor: pointer; font-weight: 600; |
| background: var(--nv-paper);
| |
| color: var(--nv-ink);
| |
| } | | } |
|
| |
|
| .citizen-header .mw-logo-wordmark, | | .mien-spell-filter button:hover { |
| .citizen-footer .mw-logo-wordmark {
| | background: var(--nv-wash); |
| font-family: var(--nv-display-font); | |
| font-weight: 700;
| |
| letter-spacing: .06em;
| |
| } | | } |
|
| |
|
| .citizen-page-header { | | .nv-term { |
| position: relative;
| | border-left-color: #8b3f2f; |
| background: var(--nv-paper);
| |
| border-bottom: 3px solid var(--nv-line) !important;
| |
| padding-bottom: 14px;
| |
| } | | } |
|
| |
|
| .citizen-page-header::after { | | @media (max-width: 900px) {.mien-spell-filter { |
| content: "";
| | grid-template-columns: 1fr 1fr; |
| position: absolute;
| | }.mien-spell-filter input { |
| left: 0;
| | grid-column: 1 / -1; |
| right: 0;
| | }} |
| bottom: -8px;
| |
| height: 1px;
| |
| background: var(--nv-line);
| |
| } | |
|
| |
|
| .citizen-page-heading { | | @media (max-width: 600px) {.mien-spell-filter { |
| padding: 18px 0 10px;
| | 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%; |
| | }} |
|
| |
|
| #siteSub,
| | .mw-parser-output .author-entry-form, |
| .citizen-sticky-header-page-tagline { | | .mw-parser-output .author-entry-form input { |
| display: none !important;
| | flex: 1 1 14rem; min-width: 0; max-width: 100%; box-sizing: border-box; |
| } | | } |
|
| |
|
| .citizen-page-actions, | | .mw-parser-output .author-entry-form button { |
| .citizen-page-actions .cdx-button, | | flex: 0 0 auto; |
| .citizen-page-actions a {
| |
| color: var(--nv-ink-muted) !important;
| |
| font-family: var(--nv-ui-font);
| |
| font-size: 12.5px;
| |
| } | | } |
|
| |
|
| .citizen-page-actions .cdx-button { | | @media (max-width: 480px) {.mw-parser-output .author-entry-form button { |
| background: transparent;
| | flex: 1 1 auto; |
| border-color: var(--nv-hair);
| | }} |
| } | |
|
| |
|
| /* Sticky page title */
| | .mw-parser-output .mien-spell-table { |
| .citizen-sticky-header { | | min-width: 44rem; |
| background: var(--nv-paper) !important;
| |
| border-bottom: 2px solid var(--nv-line);
| |
| } | | } |
|
| |
|
| .citizen-sticky-header-page-title { | | .mw-parser-output .mien-spell-table th:nth-child(1), |
| color: var(--nv-ink);
| | .mw-parser-output .mien-spell-table td:nth-child(1) { |
| font-family: var(--nv-display-font);
| | min-width: 8em; |
| font-size: 17px;
| |
| font-weight: 700;
| |
| } | | } |
|
| |
|
| /* Headings */
| | .mw-parser-output .mien-spell-table th:nth-child(2), |
| /* ==========================================================================
| | .mw-parser-output .mien-spell-table td:nth-child(2) { |
| Headings — one component, one definition.
| | min-width: 4em; |
| Article headings: page H1 rule + h2–h6 in the article body. Selectors target
| |
| the rendered structure instead of Citizen's skin class, so native headings in
| |
| Tabber panels / transcluded rule subpages use the same accepted 米白朱红
| |
| layer. Component titles (infobox/nav/card/notice) are divs and keep their own
| |
| blocks; preview-card headings keep a compact override in the preview section.
| |
| ========================================================================== */
| |
| | |
| :root {
| |
| --nv-h2-size: 29px;
| |
| --nv-h3-size: 21.5px;
| |
| --nv-h4-size: 17.5px;
| |
| --nv-h5-size: 16.8px;
| |
| --nv-h6-size: 16.8px;
| |
| --nv-h2-lh: 1.3;
| |
| --nv-h3-lh: 1.4;
| |
| --nv-h4-lh: 1.5;
| |
| --nv-h5-lh: 1.5;
| |
| --nv-h6-lh: 1.5;
| |
| --nv-h2-mt: 2.2rem;
| |
| --nv-h3-mt: 1.6rem;
| |
| --nv-h4-mt: 1.25rem;
| |
| --nv-h5-mt: 1rem;
| |
| --nv-h6-mt: 1rem;
| |
| --nv-h2-mb: .8rem;
| |
| --nv-h3-mb: .65rem;
| |
| --nv-h4-mb: .55rem;
| |
| --nv-h5-mb: .45rem;
| |
| --nv-h6-mb: .45rem;
| |
| --nv-h2-pb: 10px;
| |
| --nv-h3-pb: 7px;
| |
| --nv-h4-pb: 6px;
| |
| --nv-h5-pb: 5px;
| |
| --nv-h6-pb: 4px;
| |
| --nv-title-red: #943c30;
| |
| --nv-title-red-light: #b54332;
| |
| --nv-h3: #955143;
| |
| --nv-h4: #805349;
| |
| --nv-h5: #70564c;
| |
| --nv-h6: #61534b;
| |
| --nv-rule-h1-h: 2px;
| |
| --nv-rule-h1-w: 90%;
| |
| --nv-rule-h1-solid: 58%;
| |
| --nv-rule-h2-h: 2px;
| |
| --nv-rule-h2-w: 72%;
| |
| --nv-rule-h3-h: 1px;
| |
| --nv-rule-h3-w: 56%;
| |
| --nv-rule-h4-h: 1px;
| |
| --nv-rule-h4-w: 40%;
| |
| --nv-rule-h5-h: 1px;
| |
| --nv-rule-h5-w: 28%;
| |
| --nv-rule-h6-h: 1px;
| |
| --nv-rule-h6-w: 20%;
| |
| --nv-rule-h1-img: linear-gradient(90deg, var(--nv-title-red) 0%, var(--nv-title-red) var(--nv-rule-h1-solid), transparent 100%);
| |
| --nv-rule-h2-img: linear-gradient(90deg, var(--nv-title-red) 0%, var(--nv-title-red) 58%, transparent 100%);
| |
| --nv-rule-h3-img: linear-gradient(90deg, var(--nv-h3) 0%, var(--nv-h3) 56%, transparent 100%);
| |
| --nv-rule-h4-img: linear-gradient(90deg, var(--nv-h4) 0%, var(--nv-h4) 40%, transparent 100%);
| |
| --nv-rule-h5-img: linear-gradient(90deg, var(--nv-h5) 0%, var(--nv-h5) 28%, transparent 100%);
| |
| --nv-rule-h6-img: linear-gradient(90deg, var(--nv-h6) 0%, var(--nv-h6) 20%, transparent 100%);
| |
| } | | } |
|
| |
|
| html.skin-theme-clientpref-night,
| | .mw-parser-output .mien-spell-table th:nth-child(3), |
| html.skin-theme-clientpref-black {
| | .mw-parser-output .mien-spell-table td:nth-child(3) { |
| --nv-title-red: #e39b86;
| | min-width: 5em; |
| --nv-title-red-light: #da8068;
| |
| --nv-h3: #d6a18f;
| |
| --nv-h4: #cda99a;
| |
| --nv-h5: #c3aca0;
| |
| --nv-h6: #bfaea3;
| |
| } | | } |
|
| |
|
| @media (prefers-color-scheme: dark) {
| | .mw-parser-output .mien-spell-table th:nth-child(4), |
| html.skin-theme-clientpref-os {
| | .mw-parser-output .mien-spell-table td:nth-child(4) { |
| --nv-title-red: #e39b86;
| | min-width: 5.5em; |
| --nv-title-red-light: #da8068;
| |
| --nv-h3: #d6a18f;
| |
| --nv-h4: #cda99a;
| |
| --nv-h5: #c3aca0;
| |
| --nv-h6: #bfaea3;
| |
| }
| |
| } | | } |
|
| |
|
| /* H1 page title: ink display face; the single warm line under the title
| | .mw-parser-output .mien-spell-table th:nth-child(5), |
| carries the H1 identity. */
| | .mw-parser-output .mien-spell-table td:nth-child(5) { |
| html body #firstHeading,
| | min-width: 5.5em; |
| html body .citizen-page-heading h1 {
| |
| margin: 0;
| |
| color: var(--nv-ink) !important;
| |
| font-family: var(--nv-display-font) !important;
| |
| font-size: 56px;
| |
| font-weight: 700;
| |
| line-height: 1.05;
| |
| letter-spacing: .02em;
| |
| } | | } |
|
| |
|
| html body .citizen-page-heading h1 {
| | .mw-parser-output .mien-spell-table th:nth-child(6), |
| position: relative;
| | .mw-parser-output .mien-spell-table td:nth-child(6) { |
| padding-bottom: 0 !important;
| | min-width: 13em; |
| border-bottom: 0 !important;
| |
| background: none !important;
| |
| } | | } |
|
| |
|
| html body.action-view #mw-content-text::before {
| | .mw-parser-output .author-entry-form form { |
| content: "" !important;
| | display: block; |
| display: block !important;
| |
| width: 100% !important;
| |
| height: var(--nv-rule-h1-h) !important;
| |
| margin: 0 0 18px !important;
| |
| border: 0 !important;
| |
| background-color: transparent !important;
| |
| background-image: var(--nv-rule-h1-img) !important;
| |
| background-size: var(--nv-rule-h1-w) var(--nv-rule-h1-h) !important;
| |
| background-position: 0 0 !important;
| |
| background-repeat: no-repeat !important;
| |
| } | | } |
|
| |
|
| /* H2 — 朱红 section heading */
| | .mw-parser-output .author-entry-form .oo-ui-horizontalLayout { |
| html body .mw-parser-output h2 {
| | display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; max-width: 100%; |
| margin: var(--nv-h2-mt) 0 var(--nv-h2-mb) !important;
| |
| padding: 0 0 var(--nv-h2-pb) !important;
| |
| border: 0 !important;
| |
| border-bottom: 0 !important;
| |
| background-color: transparent !important;
| |
| background-image: var(--nv-rule-h2-img) !important;
| |
| background-size: var(--nv-rule-h2-w) var(--nv-rule-h2-h) !important;
| |
| background-position: 0 100% !important;
| |
| background-repeat: no-repeat !important;
| |
| color: var(--nv-title-red) !important;
| |
| font-family: var(--nv-display-font) !important;
| |
| font-size: var(--nv-h2-size) !important;
| |
| font-weight: 700 !important;
| |
| line-height: var(--nv-h2-lh) !important;
| |
| letter-spacing: .01em !important;
| |
| text-align: left !important;
| |
| } | | } |
|
| |
|
| html body .mw-parser-output h2::before,
| | .mw-parser-output .author-entry-form .pfPageNameWithoutNamespace { |
| html body .mw-parser-output h2::after {
| | flex: 1 1 14rem; min-width: 0; max-width: 100%; |
| content: none !important;
| |
| display: none !important;
| |
| } | | } |
|
| |
|
| /* H3 — 暖棕红 subheading */
| | .mw-parser-output .author-entry-form .pfPageNameWithoutNamespace input { |
| html body .mw-parser-output h3 {
| | width: 100%; box-sizing: border-box; |
| margin: var(--nv-h3-mt) 0 var(--nv-h3-mb) !important;
| |
| padding: 0 0 var(--nv-h3-pb) !important;
| |
| border: 0 !important;
| |
| border-bottom: 0 !important;
| |
| background-color: transparent !important;
| |
| background-image: var(--nv-rule-h3-img) !important;
| |
| background-size: var(--nv-rule-h3-w) var(--nv-rule-h3-h) !important;
| |
| background-position: 0 100% !important;
| |
| background-repeat: no-repeat !important;
| |
| color: var(--nv-h3) !important;
| |
| font-family: var(--nv-display-font) !important;
| |
| font-size: var(--nv-h3-size) !important;
| |
| font-weight: 650 !important;
| |
| line-height: var(--nv-h3-lh) !important;
| |
| letter-spacing: 0 !important;
| |
| text-align: left !important;
| |
| } | | } |
|
| |
|
| html body .mw-parser-output h3::before,
| | .mw-parser-output .author-entry-form .pfCreateOrEditButton { |
| html body .mw-parser-output h3::after {
| | flex: 0 0 auto; |
| content: none !important;
| |
| display: none !important;
| |
| } | | } |
|
| |
|
| /* H4 — 暖棕红条目题头 */
| | .mw-parser-output .nv-gov-index th:nth-child(1), |
| html body .mw-parser-output h4 {
| | .mw-parser-output .nv-gov-index td:nth-child(1) { |
| margin: var(--nv-h4-mt) 0 var(--nv-h4-mb) !important;
| | min-width: 4.2em; white-space: nowrap; |
| padding: 0 0 var(--nv-h4-pb) !important;
| |
| border: 0 !important;
| |
| border-bottom: 0 !important;
| |
| background-color: transparent !important;
| |
| background-image: var(--nv-rule-h4-img) !important;
| |
| background-size: var(--nv-rule-h4-w) var(--nv-rule-h4-h) !important;
| |
| background-position: 0 100% !important;
| |
| background-repeat: no-repeat !important;
| |
| color: var(--nv-h4) !important;
| |
| font-family: var(--nv-display-font) !important;
| |
| font-size: var(--nv-h4-size) !important;
| |
| font-weight: 600 !important;
| |
| line-height: var(--nv-h4-lh) !important;
| |
| letter-spacing: .045em !important;
| |
| text-align: left !important;
| |
| } | | } |
|
| |
|
| /* H5 / H6 — thin short rules, size and spacing keep decreasing */
| | .mw-parser-output .nv-gov-index--polity th:nth-child(2), |
| html body .mw-parser-output h5 {
| | .mw-parser-output .nv-gov-index--polity td:nth-child(2) { |
| margin: var(--nv-h5-mt) 0 var(--nv-h5-mb) !important;
| | min-width: 5.2em; white-space: nowrap; |
| padding: 0 0 var(--nv-h5-pb) !important;
| |
| border: 0 !important;
| |
| border-bottom: 0 !important;
| |
| background-color: transparent !important;
| |
| background-image: var(--nv-rule-h5-img) !important;
| |
| background-size: var(--nv-rule-h5-w) var(--nv-rule-h5-h) !important;
| |
| background-position: 0 100% !important;
| |
| background-repeat: no-repeat !important;
| |
| color: var(--nv-h5) !important;
| |
| font-family: var(--nv-display-font) !important;
| |
| font-size: var(--nv-h5-size) !important;
| |
| font-weight: 600 !important;
| |
| line-height: var(--nv-h5-lh) !important;
| |
| letter-spacing: .01em !important;
| |
| text-align: left !important;
| |
| } | | } |
|
| |
|
| html body .mw-parser-output h6 {
| | .mw-parser-output #nv-economy-currencies { |
| margin: var(--nv-h6-mt) 0 var(--nv-h6-mb) !important;
| | min-width: 36rem; |
| padding: 0 0 var(--nv-h6-pb) !important;
| |
| border: 0 !important;
| |
| border-bottom: 0 !important;
| |
| background-color: transparent !important;
| |
| background-image: var(--nv-rule-h6-img) !important;
| |
| background-size: var(--nv-rule-h6-w) var(--nv-rule-h6-h) !important;
| |
| background-position: 0 100% !important;
| |
| background-repeat: no-repeat !important;
| |
| color: var(--nv-h6) !important;
| |
| font-family: var(--nv-display-font) !important;
| |
| font-size: var(--nv-h6-size) !important;
| |
| font-weight: 600 !important;
| |
| line-height: var(--nv-h6-lh) !important;
| |
| letter-spacing: .02em !important;
| |
| text-align: left !important;
| |
| } | | } |
|
| |
|
| /* adjacent headings and first paragraph keep the same rhythm */
| | .mw-parser-output #nv-economy-currencies th:nth-child(1), |
| html body .mw-parser-output h2 + h3 { margin-top: .58rem !important; }
| | .mw-parser-output #nv-economy-currencies td:nth-child(1) { |
| html body .mw-parser-output h3 + h4 { margin-top: .48rem !important; }
| | min-width: 10em; |
| html body .mw-parser-output h4 + h5 { margin-top: .4rem !important; }
| |
| html body .mw-parser-output h5 + h6 { margin-top: .34rem !important; }
| |
| | |
| html body .mw-parser-output :is(h2, h3, h4, h5, h6) + p {
| |
| margin-top: .2rem !important;
| |
| } | | } |
|
| |
|
| /* Mobile: same recipe, smaller sizes and tighter spacing; the short rules stay
| | .mw-parser-output #nv-economy-currencies th:nth-child(2), |
| visible in the 358px column and keep decreasing (72 > 56 > 40 > 28 > 20). */
| | .mw-parser-output #nv-economy-currencies td:nth-child(2), |
| @media (max-width: 720px) {
| | .mw-parser-output #nv-economy-currencies th:nth-child(3), |
| :root {
| | .mw-parser-output #nv-economy-currencies td:nth-child(3) { |
| --nv-h2-size: 24.5px;
| | min-width: 5.2em; white-space: nowrap; |
| --nv-h3-size: 19px;
| |
| --nv-h4-size: 16.5px;
| |
| --nv-h5-size: 16.8px;
| |
| --nv-h6-size: 16.8px;
| |
| --nv-h2-mt: 1.9rem;
| |
| --nv-h3-mt: 1.35rem;
| |
| --nv-h4-mt: 1rem;
| |
| --nv-h5-mt: .85rem;
| |
| --nv-h6-mt: .72rem;
| |
| --nv-h2-mb: .65rem;
| |
| --nv-h3-mb: .5rem;
| |
| --nv-h4-mb: .36rem;
| |
| --nv-h5-mb: .3rem;
| |
| --nv-h6-mb: .25rem;
| |
| --nv-h2-pb: 9px;
| |
| --nv-h3-pb: 6px;
| |
| --nv-h4-pb: 5px;
| |
| --nv-h5-pb: 4px;
| |
| --nv-h6-pb: 3px;
| |
| --nv-rule-h1-h: 1.5px;
| |
| --nv-rule-h2-h: 1.5px;
| |
| --nv-rule-h2-w: 72%;
| |
| --nv-rule-h3-w: 56%;
| |
| --nv-rule-h4-w: 40%;
| |
| --nv-rule-h5-w: 28%;
| |
| --nv-rule-h6-w: 20%;
| |
| }
| |
| | |
| html body #firstHeading,
| |
| html body .citizen-page-heading h1 {
| |
| font-size: 40px !important;
| |
| line-height: 1.08;
| |
| }
| |
| | |
| html body.action-view #mw-content-text::before {
| |
| height: var(--nv-rule-h1-h) !important;
| |
| background-size: var(--nv-rule-h1-w) var(--nv-rule-h1-h) !important;
| |
| margin-bottom: 14px !important;
| |
| }
| |
| } | | } |
|
| |
|
| /* Citizen section chevron: keep native collapse, use ink instead of blue. */
| | .mw-parser-output .nv-event-letter-index th:nth-child(1), |
| .citizen-section-toggle, | | .mw-parser-output .nv-event-letter-index td:nth-child(1) { |
| .citizen-section-heading::before { | | min-width: 4em; white-space: nowrap; |
| color: var(--nv-ink) !important;
| |
| } | | } |
|
| |
|
| /* Infobox */
| | .mw-parser-output .nv-event-period-index th:nth-child(1), |
| | | .mw-parser-output .nv-event-period-index td:nth-child(1) { |
| /* Status / notice */
| | min-width: 6.5em; white-space: nowrap; |
| | |
| body .mw-parser-output .novark-notice__detail {
| |
| margin-top: 4px;
| |
| }
| |
| | |
| body .mw-parser-output .novark-notice__detail-inline {
| |
| margin-left: 4px;
| |
| }
| |
| | |
| body .mw-parser-output .nv-notice__title {
| |
| margin-bottom: .25rem;
| |
| color: var(--nv-ink) !important;
| |
| font-weight: 700;
| |
| }
| |
| | |
| /* ==========================================================================
| |
| Tables — one component, one definition.
| |
| Base types: content .wikitable, genealogy .nv-lineage, timeline .nv-timeline.
| |
| Wide matrices scroll only inside their own .nv-table-scroll container;
| |
| description tables are marked for natural wrapping by Common.js
| |
| (.nv-table--wrap / .nv-table-scroll--wrap). Template-local table layout stays
| |
| in the template's TemplateStyles; this is the only site-wide table layer.
| |
| ========================================================================== */
| |
| | |
| /* ---- 1. table types: paper frame, hairline rows, natural width ---------- */
| |
| body .mw-parser-output table.wikitable,
| |
| body .mw-parser-output table.nv-lineage,
| |
| body .mw-parser-output table.nv-timeline {
| |
| width: auto;
| |
| max-width: 100%;
| |
| margin: .25rem 0 0;
| |
| border: 0;
| |
| border-radius: 0;
| |
| border-collapse: collapse;
| |
| background: transparent;
| |
| color: var(--nv-ink);
| |
| font-family: var(--nv-ui-font);
| |
| font-size: 13px;
| |
| line-height: 1.65;
| |
| font-variant-numeric: tabular-nums;
| |
| } | | } |
|
| |
|
| body .mw-parser-output table.wikitable th,
| |
| body .mw-parser-output table.wikitable td,
| |
| body .mw-parser-output table.nv-lineage th,
| |
| body .mw-parser-output table.nv-lineage td,
| |
| body .mw-parser-output table.nv-timeline th,
| |
| body .mw-parser-output table.nv-timeline td {
| |
| border: 0;
| |
| background: transparent;
| |
| color: var(--nv-ink);
| |
| text-align: left;
| |
| vertical-align: top;
| |
| }
| |
|
| |
| body .mw-parser-output table.wikitable th,
| |
| body .mw-parser-output table.wikitable td,
| |
| body .mw-parser-output table.nv-lineage th,
| |
| body .mw-parser-output table.nv-lineage td,
| |
| body .mw-parser-output table.nv-timeline th,
| |
| body .mw-parser-output table.nv-timeline td {
| |
| padding: 7px 11px;
| |
| }
| |
|
| |
| body .mw-parser-output table.wikitable th,
| |
| body .mw-parser-output table.nv-lineage th,
| |
| body .mw-parser-output table.nv-timeline th {
| |
| border-bottom: 1.5px solid var(--nv-line);
| |
| background: var(--nv-table-head);
| |
| font-size: 12.5px;
| |
| font-weight: 700;
| |
| letter-spacing: .015em;
| |
| line-height: 1.55;
| |
| }
| |
|
| |
| body .mw-parser-output table.wikitable td,
| |
| body .mw-parser-output table.nv-lineage td,
| |
| body .mw-parser-output table.nv-timeline td {
| |
| border-bottom: 1px solid var(--nv-hair);
| |
| font-size: 13px;
| |
| line-height: 1.7;
| |
| }
| |
|
| |
| body .mw-parser-output table.wikitable tr:nth-child(even) td,
| |
| body .mw-parser-output table.nv-lineage tr:nth-child(even) td {
| |
| background: var(--nv-table-alt);
| |
| }
| |
|
| |
| body .mw-parser-output table.wikitable tr:last-child td,
| |
| body .mw-parser-output table.nv-lineage tr:last-child td {
| |
| border-bottom: 0;
| |
| }
| |
|
| |
| /* merged group column keeps the display face */
| |
| body .mw-parser-output table.wikitable td[rowspan] {
| |
| border-right: 1px solid var(--nv-hair);
| |
| font-size: 13px;
| |
| font-weight: 700;
| |
| }
| |
|
| |
| /* genealogy: only the additions that stay effective on top of .wikitable */
| |
| body .mw-parser-output table.nv-lineage { | | body .mw-parser-output table.nv-lineage { |
| min-width: 60rem;
| | min-width: 60rem; |
| } | | } |
|
| |
|
| body .mw-parser-output table.nv-lineage th { | | body .mw-parser-output table.nv-lineage th { |
| position: sticky;
| | position: sticky; |
| top: 0; | | top: 0; |
| z-index: 1; | | z-index: 1; |
| 第803行: |
第220行: |
|
| |
|
| body .mw-parser-output table.nv-lineage td:first-child { | | body .mw-parser-output table.nv-lineage td:first-child { |
| font-weight: 700;
| | font-weight: 700; |
| } | | } |
|
| |
|
| body .mw-parser-output table.nv-lineage td:nth-child(3) { | | body .mw-parser-output table.nv-lineage td:nth-child(3) { |
| font-weight: 600;
| | font-weight: 600; |
| } | | } |
|
| |
|
| /* timeline: only the column declarations that stay effective on top of
| |
| .wikitable (the production table carries both classes) */
| |
| body .mw-parser-output table.nv-timeline td:first-child { | | body .mw-parser-output table.nv-timeline td:first-child { |
| font-weight: 700;
| | font-weight: 700; |
| white-space: nowrap; | | white-space: nowrap; |
| } | | } |
| 第819行: |
第234行: |
| body .mw-parser-output table.nv-timeline td:nth-child(2), | | body .mw-parser-output table.nv-timeline td:nth-child(2), |
| body .mw-parser-output table.nv-timeline td:nth-child(4) { | | body .mw-parser-output table.nv-timeline td:nth-child(4) { |
| white-space: nowrap;
| | white-space: nowrap; |
| } | | } |
|
| |
|
| /* ---- 2. one local scroller for wide matrices --------------------------- */
| |
| body .mw-parser-output .nv-table-scroll { | | body .mw-parser-output .nv-table-scroll { |
| width: 100%;
| | width: 100%; |
| max-width: 100%; | | max-width: 100%; |
| margin: 1.1rem 0 1.6rem; | | margin: 1.1rem 0 1.6rem; |
| 第836行: |
第250行: |
| } | | } |
|
| |
|
| /* Citizen injects its own overflow layer inside the explicit scroller; inside
| | body .mw-parser-output .nv-table-scroll table.wikitable { |
| it that layer must not become a second horizontal scroll owner. */
| | max-width: none; |
| body .mw-parser-output .nv-table-scroll .citizen-overflow-wrapper, | | min-width: max-content; |
| body .mw-parser-output .nv-table-scroll .citizen-overflow-content {
| |
| border: 0;
| |
| border-radius: 0; | |
| background: transparent;
| |
| box-shadow: none;
| |
| } | | } |
|
| |
|
| body .mw-parser-output .nv-table-scroll .citizen-overflow-wrapper { | | /* Numeric progression matrices keep their explanatory last column readable on narrow screens. */ |
| display: block;
| | body .mw-parser-output .nv-table-scroll table.nv-table--progression { |
| width: auto; | | width: 100%; |
| min-width: 0; | | min-width: 36em; |
| max-width: none; | | table-layout: fixed; |
| margin: 0;
| |
| } | | } |
| | | body .mw-parser-output .nv-table--progression th:last-child, |
| body .mw-parser-output .nv-table-scroll .citizen-overflow-content { | | body .mw-parser-output .nv-table--progression td:last-child { |
| display: block;
| | width: 36%; |
| width: max-content;
| | white-space: normal; |
| min-width: 100%; | | overflow-wrap: anywhere; |
| max-width: none; | |
| overflow: visible; | |
| -webkit-mask-image: none;
| |
| mask-image: none;
| |
| } | | } |
|
| |
|
| body .mw-parser-output .nv-table-scroll .citizen-overflow-nav { | | body .mw-parser-output .nv-table-scroll table.wikitable tr:nth-child(even) td:not([rowspan]) { |
| display: none;
| | background: color-mix(in srgb, var(--nv-table-alt) 58%, transparent); |
| } | | } |
|
| |
|
| body .mw-parser-output .nv-table-scroll table.wikitable {
| |
| max-width: none;
| |
| min-width: max-content;
| |
| }
| |
|
| |
| /* scroller rows keep the lighter tint; rows of free tables use the solid one */
| |
| body .mw-parser-output .nv-table-scroll table.wikitable tr:nth-child(even) td {
| |
| background: color-mix(in srgb, var(--nv-table-alt) 58%, transparent);
| |
| }
| |
|
| |
| /* ---- 3. description tables wrap inside the content column (JS-marked) --- */
| |
| body .mw-parser-output .nv-table-scroll.nv-table-scroll--wrap { | | body .mw-parser-output .nv-table-scroll.nv-table-scroll--wrap { |
| overflow-x: hidden;
| | overflow-x: hidden; |
| }
| |
| | |
| body .mw-parser-output .nv-table-scroll.nv-table-scroll--wrap .citizen-overflow-wrapper,
| |
| body .mw-parser-output .nv-table-scroll.nv-table-scroll--wrap .citizen-overflow-content {
| |
| display: block;
| |
| width: 100%;
| |
| min-width: 0;
| |
| max-width: 100%;
| |
| } | | } |
|
| |
|
| body .mw-parser-output .nv-table-scroll table.nv-table--wrap { | | body .mw-parser-output .nv-table-scroll table.nv-table--wrap { |
| width: 100%;
| | width: 100%; |
| min-width: 0; | | min-width: 0; |
| max-width: 100%; | | max-width: 100%; |
| 第900行: |
第285行: |
| body .mw-parser-output .nv-table--wrap th, | | body .mw-parser-output .nv-table--wrap th, |
| body .mw-parser-output .nv-table--wrap td { | | body .mw-parser-output .nv-table--wrap td { |
| white-space: normal;
| | white-space: normal; |
| overflow-wrap: anywhere; | | overflow-wrap: anywhere; |
| word-break: normal; | | word-break: normal; |
| 第907行: |
第292行: |
| body .mw-parser-output .nv-table--wrap th:last-child, | | body .mw-parser-output .nv-table--wrap th:last-child, |
| body .mw-parser-output .nv-table--wrap td:last-child { | | body .mw-parser-output .nv-table--wrap td:last-child { |
| white-space: normal;
| | white-space: normal; |
| width: auto; | | width: auto; |
| } | | } |
|
| |
|
| @media (min-width: 641px) { | | @media (min-width: 641px) {body .mw-parser-output .nv-table--wrap th:nth-child(-n/**/+3), |
| /* short leading columns stay on one line; the description column wraps */
| | body .mw-parser-output .nv-table--wrap td:nth-child(-n/**/+3) { |
| body .mw-parser-output .nv-table--wrap th:nth-child(-n/**/+3),
| | white-space: nowrap; |
| body .mw-parser-output .nv-table--wrap td:nth-child(-n/**/+3) {
| |
| white-space: nowrap;
| |
| overflow-wrap: normal; | | overflow-wrap: normal; |
| }
| | }} |
| }
| |
| | |
| @media (max-width: 720px) {
| |
| body .mw-parser-output table.wikitable,
| |
| body .mw-parser-output table.nv-lineage,
| |
| body .mw-parser-output table.nv-timeline {
| |
| font-size: 12px;
| |
| }
| |
| }
| |
| | |
| @media (max-width: 640px) {
| |
| /* the four-column description layout keeps its accepted shares; other
| |
| column counts keep natural layout instead of collapsing a column */
| |
| body .mw-parser-output .nv-table--wrap:has(> tbody > tr > th:nth-child(4):last-child) {
| |
| table-layout: fixed;
| |
| }
| |
| | |
| body .mw-parser-output .nv-table--wrap:has(> tbody > tr > th:nth-child(4):last-child) th:nth-child(1),
| |
| body .mw-parser-output .nv-table--wrap:has(> tbody > tr > th:nth-child(4):last-child) td:nth-child(1) { width: 22%; }
| |
| body .mw-parser-output .nv-table--wrap:has(> tbody > tr > th:nth-child(4):last-child) th:nth-child(2),
| |
| body .mw-parser-output .nv-table--wrap:has(> tbody > tr > th:nth-child(4):last-child) td:nth-child(2) { width: 18%; }
| |
| body .mw-parser-output .nv-table--wrap:has(> tbody > tr > th:nth-child(4):last-child) th:nth-child(3),
| |
| body .mw-parser-output .nv-table--wrap:has(> tbody > tr > th:nth-child(4):last-child) td:nth-child(3) { width: 20%; }
| |
| body .mw-parser-output .nv-table--wrap:has(> tbody > tr > th:nth-child(4):last-child) th:last-child,
| |
| body .mw-parser-output .nv-table--wrap:has(> tbody > tr > th:nth-child(4):last-child) td:last-child { width: 40%; }
| |
| }
| |
| | |
| | |
| body .mw-parser-output figure img,
| |
| body .mw-parser-output .thumbinner img {
| |
| max-width: 100%;
| |
| height: auto;
| |
| }
| |
| | |
| /* Category tags */
| |
| body .mw-parser-output .catlinks,
| |
| body #catlinks {
| |
| display: flex;
| |
| flex-wrap: wrap;
| |
| gap: 6px;
| |
| align-items: baseline;
| |
| margin-top: 14px;
| |
| padding-top: 12px;
| |
| border-top: 1px solid var(--nv-line);
| |
| background: transparent;
| |
| color: var(--nv-ink-muted);
| |
| font-family: var(--nv-ui-font);
| |
| font-size: 12px;
| |
| }
| |
| | |
| body .mw-parser-output .catlinks a,
| |
| body #catlinks a {
| |
| padding: 2px 10px;
| |
| border: 1px solid var(--nv-line);
| |
| border-radius: 0;
| |
| color: var(--nv-ink) !important;
| |
| text-decoration: none;
| |
| }
| |
| | |
| body .mw-parser-output .catlinks a:hover,
| |
| body #catlinks a:hover {
| |
| color: var(--nv-accent) !important;
| |
| border-color: var(--nv-accent);
| |
| text-decoration: none;
| |
| }
| |
| | |
| /* Discussion entry */
| |
| | |
| /* Numeric meters: ink fill, hair track, no rounded pills. */
| |
| | |
| /* Calculator and old colored functional blocks: move to tokens, no dark slab. */
| |
| body .mw-parser-output .mien-price-inline-calculator,
| |
| body .mw-parser-output .mien-currency-inline-calculator,
| |
| body .mw-parser-output .mien-spell-filter {
| |
| padding: .8rem .9rem;
| |
| border: 1px solid var(--nv-hair) !important;
| |
| border-radius: 0 !important;
| |
| background: var(--nv-paper-raised) !important;
| |
| color: var(--nv-ink) !important;
| |
| font-family: var(--nv-ui-font);
| |
| }
| |
| | |
| body .mw-parser-output .mien-price-inline-calculator input,
| |
| body .mw-parser-output .mien-price-inline-calculator select,
| |
| body .mw-parser-output .mien-currency-inline-calculator input,
| |
| body .mw-parser-output .mien-currency-inline-calculator select,
| |
| body .mw-parser-output .mien-spell-filter input,
| |
| body .mw-parser-output .mien-spell-filter select,
| |
| body .mw-parser-output .mien-spell-filter button {
| |
| border: 1px solid var(--nv-line) !important;
| |
| border-radius: 0 !important;
| |
| background: var(--nv-paper) !important;
| |
| color: var(--nv-ink) !important;
| |
| font-family: var(--nv-ui-font);
| |
| }
| |
| | |
| body .mw-parser-output .mien-price-formula-line {
| |
| border-top-color: var(--nv-hair) !important;
| |
| }
| |
| | |
| body .mw-parser-output .mien-price-limit-ok {
| |
| color: var(--nv-success) !important;
| |
| }
| |
| | |
| body .mw-parser-output .mien-price-limit-over {
| |
| color: var(--nv-danger) !important;
| |
| }
| |
| | |
| /* Code and examples */
| |
| body .mw-parser-output pre,
| |
| body .mw-parser-output code {
| |
| border: 1px solid var(--nv-hair);
| |
| border-radius: 0;
| |
| background: var(--nv-paper-raised);
| |
| color: var(--nv-ink);
| |
| font-family: "SFMono-Regular", Consolas, "Liberation Mono", "Microsoft YaHei", monospace;
| |
| }
| |
| | |
| body .mw-parser-output pre {
| |
| padding: .75rem .9rem;
| |
| overflow-x: auto;
| |
| line-height: 1.6;
| |
| }
| |
| | |
| /* Tabs / rules */
| |
| body .mw-parser-output .tabber__tabs {
| |
| border-bottom: 2px solid var(--nv-line);
| |
| }
| |
| | |
| body .mw-parser-output .tabber__tab {
| |
| border: 0;
| |
| border-bottom: 2px solid transparent;
| |
| border-radius: 0;
| |
| background: transparent !important;
| |
| color: var(--nv-ink-muted) !important;
| |
| font-family: var(--nv-ui-font);
| |
| }
| |
| | |
| body .mw-parser-output .tabber__tab[aria-selected="true"] {
| |
| border-bottom-color: var(--nv-accent);
| |
| color: var(--nv-ink) !important;
| |
| background: transparent !important;
| |
| }
| |
| | |
| body .mw-parser-output .tabber__panel {
| |
| border: 0;
| |
| background: transparent;
| |
| }
| |
| | |
| /* Forms, OOUI and Page Forms */
| |
| body .oo-ui-inputWidget-input,
| |
| body .cdx-text-input__input,
| |
| body .pfFormInput,
| |
| body .pfFormInputWrapper input,
| |
| body .pfFormInputWrapper select,
| |
| body select,
| |
| body input[type="text"],
| |
| body input[type="search"],
| |
| body input[type="url"],
| |
| body input[type="number"],
| |
| body textarea {
| |
| border: 1px solid var(--nv-line) !important;
| |
| border-radius: 0 !important;
| |
| background: var(--nv-paper-raised) !important;
| |
| color: var(--nv-ink) !important;
| |
| box-shadow: none !important;
| |
| }
| |
| | |
| body .oo-ui-buttonElement-button,
| |
| body .cdx-button,
| |
| body button {
| |
| border-radius: 0 !important;
| |
| box-shadow: none !important;
| |
| font-family: var(--nv-ui-font);
| |
| }
| |
| | |
| body .oo-ui-buttonElement-button,
| |
| body .cdx-button {
| |
| border: 1px solid var(--nv-line);
| |
| background: transparent;
| |
| color: var(--nv-ink);
| |
| }
| |
| | |
| body .oo-ui-buttonElement-framed.oo-ui-widget-enabled > .oo-ui-buttonElement-button,
| |
| body .cdx-button.cdx-button--action-progressive {
| |
| border-color: var(--nv-accent);
| |
| color: var(--nv-accent);
| |
| }
| |
| | |
| /* Citizen page aside / TOC */
| |
| #citizen-toc,
| |
| .citizen-page-aside {
| |
| background: var(--nv-paper);
| |
| color: var(--nv-ink);
| |
| }
| |
| | |
| .citizen-toc-contents {
| |
| border-left: 1px solid var(--nv-hair) !important;
| |
| }
| |
| | |
| .citizen-toc-indicator {
| |
| display: none !important;
| |
| }
| |
| | |
| .citizen-toc-link {
| |
| padding: 3px 0 3px 13px !important;
| |
| border-left: 2px solid transparent;
| |
| border-radius: 0 !important;
| |
| background: transparent !important;
| |
| color: var(--nv-ink-muted) !important;
| |
| font-family: var(--nv-ui-font);
| |
| font-size: 12.5px;
| |
| line-height: 1.55;
| |
| min-height: 0 !important;
| |
| }
| |
| | |
| .citizen-toc-link:hover {
| |
| color: var(--nv-ink) !important;
| |
| text-decoration: none;
| |
| }
| |
| | |
| .citizen-toc-list-item--active > .citizen-toc-link {
| |
| border-left-color: var(--nv-accent);
| |
| color: var(--nv-ink) !important;
| |
| font-weight: 700;
| |
| }
| |
| | |
| .citizen-toc-numb {
| |
| color: var(--nv-ink-muted) !important;
| |
| }
| |
| | |
| /* Footer */
| |
| .citizen-footer {
| |
| border-top: 3px solid var(--nv-line) !important;
| |
| background: var(--nv-paper) !important;
| |
| color: var(--nv-ink-muted) !important;
| |
| font-family: var(--nv-ui-font);
| |
| font-size: 12px;
| |
| }
| |
| | |
| .citizen-footer a {
| |
| color: var(--nv-ink-muted) !important;
| |
| }
| |
| | |
| .citizen-footer a:hover {
| |
| color: var(--nv-accent) !important;
| |
| }
| |
| | |
| .citizen-footer__sitetitle .mw-logo-wordmark {
| |
| color: var(--nv-ink) !important;
| |
| font-size: 20px;
| |
| }
| |
| | |
| .citizen-footer__desc,
| |
| .citizen-footer__bottom {
| |
| color: var(--nv-ink-muted) !important;
| |
| }
| |
| | |
| /* Selection and small reading mark */
| |
| ::selection {
| |
| background: var(--nv-select);
| |
| }
| |
| | |
| /* Mobile */
| |
| @media (max-width: 720px) {
| |
| .mw-parser-output {
| |
| max-width: 100%;
| |
| font-size: 15.5px;
| |
| }
| |
| | |
| .mw-parser-output p {
| |
| text-align: left;
| |
| }
| |
| | |
| .citizen-page-heading {
| |
| padding: 12px 0 8px;
| |
| }
| |
| | |
| .citizen-page-header {
| |
| padding-bottom: 10px;
| |
| }
| |
| | |
| .citizen-page-header::after {
| |
| bottom: -7px;
| |
| }
| |
| | |
| .citizen-page-actions {
| |
| display: none !important;
| |
| }
| |
| }
| |
| | |
| /* Print: archive copy, no shell chrome or floating furniture. */
| |
| @media print {
| |
| html,
| |
| body {
| |
| background: #fff !important;
| |
| color: #000 !important;
| |
| }
| |
| | |
| .citizen-header,
| |
| .citizen-page-aside,
| |
| .citizen-page-actions,
| |
| .citizen-sticky-header-container,
| |
| .mw-editsection,
| |
| .catlinks,
| |
| .citizen-footer__bottom,
| |
| #footer-icons,
| |
| .citizen-sitenotice-container,
| |
| .mw-indicators {
| |
| display: none !important;
| |
| }
| |
| | |
| .citizen-page-header {
| |
| border-bottom: 2px solid #000 !important;
| |
| padding-bottom: 8px;
| |
| }
| |
| | |
| .citizen-page-header::after {
| |
| display: none;
| |
| }
| |
|
| |
|
| #firstHeading,
| | @media (max-width: 640px) {body .mw-parser-output .nv-table--wrap:has(> tbody > tr > th:nth-child(4):last-child) { |
| .mw-parser-output, | | table-layout: fixed; |
| .mw-parser-output p, | | }body .mw-parser-output .nv-table--wrap:has(> tbody > tr > th:nth-child(4):last-child) th:nth-child(1), |
| .mw-parser-output h1, | | body .mw-parser-output .nv-table--wrap:has(> tbody > tr > th:nth-child(4):last-child) td:nth-child(1) { |
| .mw-parser-output h2, | | width: 22%; |
| .mw-parser-output h3, | | }body .mw-parser-output .nv-table--wrap:has(> tbody > tr > th:nth-child(4):last-child) th:nth-child(2), |
| body .mw-parser-output table.wikitable, | | body .mw-parser-output .nv-table--wrap:has(> tbody > tr > th:nth-child(4):last-child) td:nth-child(2) { |
| body .mw-parser-output table.wikitable th, | | width: 18%; |
| body .mw-parser-output table.wikitable td { | | }body .mw-parser-output .nv-table--wrap:has(> tbody > tr > th:nth-child(4):last-child) th:nth-child(3), |
| color: #000 !important;
| | body .mw-parser-output .nv-table--wrap:has(> tbody > tr > th:nth-child(4):last-child) td:nth-child(3) { |
| }
| | width: 20%; |
| | }body .mw-parser-output .nv-table--wrap:has(> tbody > tr > th:nth-child(4):last-child) th:last-child, |
| | body .mw-parser-output .nv-table--wrap:has(> tbody > tr > th:nth-child(4):last-child) td:last-child { |
| | width: 40%; |
| | }} |
|
| |
|
| .mw-parser-output {
| |
| max-width: none;
| |
| font-size: 11pt;
| |
| line-height: 1.55;
| |
| }
| |
|
| |
|
| |
| }
| |
|
| |
|
| |
| /* Citizen's native section chevron, turned into the solid ink wedge. */
| |
|
| |
|
| |
| .client-js .citizen-sections-enabled section > .citizen-section-heading > .citizen-section-toggle::before {
| |
| display: block !important;
| |
| content: "" !important;
| |
| width: 0 !important;
| |
| height: 0 !important;
| |
| border-left: 7px solid transparent;
| |
| border-right: 7px solid transparent;
| |
| border-top: 11px solid var(--nv-line);
| |
| background: transparent !important;
| |
| -webkit-mask-image: none !important;
| |
| mask-image: none !important;
| |
| transition: transform .18s ease;
| |
| }
| |
|
| |
| .client-js .citizen-sections-enabled section.citizen-section--collapsed > .citizen-section-heading > .citizen-section-toggle::before {
| |
| transform: rotate(-90deg) !important;
| |
| }
| |
|
| |
| /* Keep long tables inside their scroll container, including mobile. */
| |
|
| |
|
| |
| /* Non-reading moments: empty page / no search result. */
| |
| .nv-void { | | .nv-void { |
| display: grid;
| | display: grid; |
| grid-template-columns: 190px minmax(0, 1fr); | | grid-template-columns: 190px minmax(0, 1fr); |
| gap: 2rem; | | gap: 2rem; |
| 第1,297行: |
第329行: |
|
| |
|
| .nv-void__mark { | | .nv-void__mark { |
| position: relative;
| | position: relative; |
| width: 180px; | | width: 180px; |
| height: 150px; | | height: 150px; |
| 第1,305行: |
第337行: |
|
| |
|
| .nv-void__mark::before { | | .nv-void__mark::before { |
| content: "";
| | content: ""; |
| position: absolute; | | position: absolute; |
| left: 30px; | | left: 30px; |
| 第1,316行: |
第348行: |
|
| |
|
| .nv-void__mark::after { | | .nv-void__mark::after { |
| content: "";
| | content: ""; |
| position: absolute; | | position: absolute; |
| left: 42px; | | left: 42px; |
| 第1,326行: |
第358行: |
|
| |
|
| .nv-void__mark span { | | .nv-void__mark span { |
| position: absolute;
| | position: absolute; |
| right: 24px; | | right: 24px; |
| top: 72px; | | top: 72px; |
| 第1,335行: |
第367行: |
|
| |
|
| .nv-void__title { | | .nv-void__title { |
| margin: 0 0 .65rem;
| | margin: 0 0 .65rem; |
| color: var(--nv-ink); | | color: var(--nv-ink); |
| font-family: var(--nv-display-font); | | font-family: var(--nv-display-font); |
| 第1,344行: |
第376行: |
|
| |
|
| .nv-void__lead { | | .nv-void__lead { |
| margin: 0 0 1rem;
| | margin: 0 0 1rem; |
| color: var(--nv-ink-muted); | | color: var(--nv-ink-muted); |
| font-size: 14px; | | font-size: 14px; |
| 第1,351行: |
第383行: |
|
| |
|
| .nv-void__actions { | | .nv-void__actions { |
| display: flex;
| | display: flex; |
| flex-wrap: wrap; | | flex-wrap: wrap; |
| gap: .6rem; | | gap: .6rem; |
| 第1,357行: |
第389行: |
|
| |
|
| .nv-void__actions a { | | .nv-void__actions a { |
| display: inline-block;
| | display: inline-block; |
| padding: .45rem .8rem; | | padding: .45rem .8rem; |
| border: 2px solid var(--nv-accent); | | border: 2px solid var(--nv-accent); |
| 第1,368行: |
第400行: |
|
| |
|
| .nv-void__actions a:hover { | | .nv-void__actions a:hover { |
| background: var(--nv-accent);
| | background: var(--nv-accent); |
| color: var(--nv-paper) !important; | | color: var(--nv-paper) !important; |
| text-decoration: none; | | text-decoration: none; |
| } | | } |
|
| |
|
| @media (max-width: 640px) { | | @media (max-width: 640px) {.nv-void { |
| .nv-void {
| | grid-template-columns: 1fr; |
| grid-template-columns: 1fr;
| |
| gap: 1.25rem; | | gap: 1.25rem; |
| }
| | }.nv-void__mark { |
| | | width: 160px; |
| .nv-void__mark {
| |
| width: 160px;
| |
| height: 130px; | | height: 130px; |
| }
| | }.nv-void__title { |
| | | font-size: 24px; |
| .nv-void__title {
| | }} |
| font-size: 24px;
| |
| }
| |
| }
| |
| | |
| | |
| /* Sticky title bar: spec 46px, native Citizen layout retained. */
| |
| .citizen-sticky-header-container,
| |
| .citizen-sticky-header {
| |
| height: 46px !important;
| |
| min-height: 46px !important;
| |
| }
| |
| | |
| .citizen-sticky-header-inner {
| |
| height: 46px !important;
| |
| }
| |
| | |
| @media print {
| |
| body .mw-parser-output::after {
| |
| display: none !important;
| |
| content: none !important;
| |
| }
| |
| } | |
| | |
| | |
| /* Print polish: no shell branding, compact title, archive-like body. */
| |
| @media print {
| |
| .citizen-header__logo,
| |
| .citizen-search,
| |
| .citizen-drawer,
| |
| .citizen-jump-link,
| |
| .citizen-header,
| |
| .citizen-sticky-header-container {
| |
| display: none !important;
| |
| }
| |
| | |
| #firstHeading,
| |
| .citizen-page-heading h1 {
| |
| font-size: 28pt !important;
| |
| line-height: 1.05;
| |
| }
| |
| | |
| body,
| |
| .mw-parser-output {
| |
| background: #fff !important;
| |
| }
| |
| }
| |
| | |
| /* Long-form section toggle is native; keep keyboard target large enough. */
| |
| .client-js .citizen-sections-enabled section > .citizen-section-heading > .citizen-section-toggle {
| |
| min-width: 2.75rem;
| |
| min-height: 2.75rem;
| |
| }
| |
| | |
|
| |
|
| /* Empty-page actions: keep links in rows, no plugin-colored wrapper. */
| |
| .nv-void__actions, | | .nv-void__actions, |
| .nv-void__actions p, | | .nv-void__actions p, |
| .nv-void__actions div { | | .nv-void__actions div { |
| background: transparent !important;
| | background: transparent !important; |
| border: 0 !important; | | border: 0 !important; |
| box-shadow: none !important; | | box-shadow: none !important; |
| 第1,449行: |
第424行: |
|
| |
|
| .nv-void__actions p { | | .nv-void__actions p { |
| display: inline !important;
| | display: inline !important; |
| margin: 0 !important; | | margin: 0 !important; |
| } | | } |
|
| |
|
| .nv-void__actions br { | | .nv-void__actions br { |
| display: none !important;
| | display: none !important; |
| } | | } |
|
| |
|
| | | /* Map sizes belong to the article column, never to an old skin's viewport offsets. |
| /* Preserve native page actions on small screens. */ | | * Contain native image floats inside the map; keep native alignment outside it. */ |
| @media (max-width: 720px) {
| |
| .citizen-page-actions {
| |
| display: flex !important;
| |
| flex-wrap: wrap;
| |
| }
| |
| }
| |
| | |
| | |
| /* Print containers: paper becomes white, site chrome/footer is omitted. */
| |
| @media print {
| |
| .citizen-body-container,
| |
| .citizen-page-container,
| |
| #content,
| |
| #bodyContent,
| |
| #mw-content-text,
| |
| .citizen-page-header,
| |
| .citizen-body {
| |
| background: #fff !important;
| |
| }
| |
| | |
| .citizen-footer,
| |
| .citizen-page-footer {
| |
| display: none !important;
| |
| }
| |
| }
| |
| | |
| | |
| /* Reading end mark: before discussion entry when present. */
| |
| | |
| /* ===== v2 增量(与 v1 合并后的单一有效层) ===== */
| |
| /* ==========================================================================
| |
| v2 静态层 · 生产修正版(DS)
| |
| ---------------------------------------------------------------------------
| |
| 本段取代 v1 中重复的宽表/地图追加规则;v1 其余纸墨组件保留。
| |
| 规则顺序固定为:布局 → 图版/表格 → 首页 → 组件收口。
| |
| 宽内容宽度按真实 Citizen 三栏计算,不假设 aside 会自动让位:
| |
| 1440/1280 桌面内容列宽实测为 1045/885;1100–1199 内容列宽 = 100vw - 63px。
| |
| 目录栏 240px,宽块左右留 20px 呼吸,不进入 aside。
| |
| ========================================================================== */
| |
| | |
| /* —— v2-1 宽内容:只有真实内容列有空间时才扩展 —— */
| |
| .citizen-page-aside {
| |
| max-width: 240px;
| |
| }
| |
| | |
| /* —— v2-2 标准图版 + 宽度档 —— */
| |
| body .mw-parser-output .nv-map { | | body .mw-parser-output .nv-map { |
| display: block; | | display: flow-root; |
| width: 100%; | | width: 100%; |
| max-width: 620px; | | max-width: 620px; |
| 第1,515行: |
第444行: |
| body .mw-parser-output .nv-map .thumb, | | body .mw-parser-output .nv-map .thumb, |
| body .mw-parser-output .nv-map .thumbinner { | | body .mw-parser-output .nv-map .thumbinner { |
| display: block !important; | | box-sizing: border-box; |
| width: 100% !important; | | display: block; |
| max-width: 100% !important; | | width: 100%; |
| margin-left: 0 !important; | | max-width: 100%; |
| margin-right: 0 !important; | | margin-left: 0; |
| | margin-right: 0; |
| } | | } |
|
| |
|
| body .mw-parser-output .nv-map figure a.mw-file-description { | | body .mw-parser-output .nv-map figure a.mw-file-description { |
| display: block !important; | | display: block; |
| width: 100% !important; | | width: 100%; |
| } | | } |
|
| |
|
| body .mw-parser-output .nv-map img { | | body .mw-parser-output .nv-map img { |
| display: block !important; | | box-sizing: border-box; |
| width: 100% !important; | | display: block; |
| max-width: 100% !important; | | width: 100%; |
| height: auto !important; | | max-width: 100%; |
| | height: auto; |
| | margin: 0; |
| border: 2px solid var(--nv-line); | | border: 2px solid var(--nv-line); |
| border-radius: 0; | | border-radius: 0; |
| 第1,538行: |
第470行: |
| body .mw-parser-output .nv-map figcaption, | | body .mw-parser-output .nv-map figcaption, |
| body .mw-parser-output .nv-map .thumbcaption { | | body .mw-parser-output .nv-map .thumbcaption { |
| display: block !important; | | box-sizing: border-box; |
| width: 100% !important; | | display: block; |
| max-width: 100% !important; | | width: 100%; |
| | max-width: 100%; |
| margin-top: 7px; | | margin-top: 7px; |
| color: var(--nv-ink-muted) !important; | | color: var(--nv-ink-muted); |
| font-family: var(--nv-ui-font) !important; | | font-family: var(--nv-ui-font); |
| font-size: 12px; | | font-size: 12px; |
| line-height: 1.6; | | line-height: 1.6; |
| text-align: left !important; | | text-align: left; |
| } | | } |
|
| |
|
| body .mw-parser-output .nv-map--wide { | | body .mw-parser-output .nv-map--wide { |
| max-width: 1120px; | | max-width: 1120px; |
| }
| |
|
| |
| @media (min-width: 1200px) {
| |
| body .mw-parser-output .nv-map--wide {
| |
| width: min(1120px, calc(100vw - 395px));
| |
| max-width: none;
| |
| }
| |
| }
| |
|
| |
| @media (min-width: 1100px) and (max-width: 1199px) {
| |
| body .mw-parser-output .nv-map--wide {
| |
| width: min(1120px, calc(100vw - 63px));
| |
| max-width: none;
| |
| }
| |
| } | | } |
|
| |
|
| 第1,584行: |
第503行: |
| } | | } |
|
| |
|
| /* —— v2-4 首页:读者门面 —— */
| |
| body.page-首页 .mw-parser-output {
| |
| max-width: 1120px;
| |
| }
| |
|
| |
| body.page-首页 .citizen-page-heading {
| |
| display: none;
| |
| }
| |
|
| |
| body.page-首页 .citizen-page-header {
| |
| border-bottom: 0 !important;
| |
| padding-bottom: 0;
| |
| }
| |
|
| |
| body.page-首页 .citizen-page-header::after {
| |
| content: none !important;
| |
| }
| |
|
| |
| body.page-首页 .mw-parser-output::after {
| |
| content: none !important;
| |
| }
| |
|
| |
| .nv-home-masthead {
| |
| display: grid;
| |
| grid-template-columns: minmax(0, 1fr) 300px;
| |
| gap: 2rem;
| |
| align-items: end;
| |
| position: relative;
| |
| margin: 1rem 0 2rem;
| |
| padding-bottom: 18px;
| |
| border-bottom: 3px solid var(--nv-line);
| |
| }
| |
|
| |
| .nv-home-masthead::after {
| |
| content: "";
| |
| position: absolute;
| |
| left: 0;
| |
| right: 0;
| |
| bottom: -9px;
| |
| height: 1px;
| |
| background: var(--nv-line);
| |
| }
| |
|
| |
| .nv-home-masthead__title {
| |
| margin: 0;
| |
| color: var(--nv-ink);
| |
| font-family: var(--nv-display-font);
| |
| font-size: 64px;
| |
| font-weight: 700;
| |
| line-height: 1.02;
| |
| letter-spacing: .02em;
| |
| }
| |
|
| |
| .nv-home-masthead__tagline {
| |
| margin-top: .5rem;
| |
| color: var(--nv-ink-muted);
| |
| font-family: var(--nv-ui-font);
| |
| font-size: 14px;
| |
| }
| |
|
| |
| .nv-home-mark {
| |
| position: relative;
| |
| width: 100%;
| |
| height: 150px;
| |
| border: 2px solid var(--nv-line);
| |
| overflow: hidden;
| |
| }
| |
|
| |
| .nv-home-mark::before {
| |
| content: "";
| |
| position: absolute;
| |
| left: 34px;
| |
| top: 24px;
| |
| width: 76px;
| |
| height: 76px;
| |
| border-radius: 50%;
| |
| background: var(--nv-accent);
| |
| }
| |
|
| |
| .nv-home-mark::after {
| |
| content: "";
| |
| position: absolute;
| |
| left: 46px;
| |
| bottom: 30px;
| |
| width: 150px;
| |
| height: 12px;
| |
| background: var(--nv-ink);
| |
| }
| |
|
| |
| .nv-home-mark span {
| |
| position: absolute;
| |
| right: 28px;
| |
| top: 76px;
| |
| width: 28px;
| |
| height: 28px;
| |
| background: var(--nv-green);
| |
| }
| |
|
| |
| .nv-home-kicker {
| |
| margin: 2.2rem 0 .8rem;
| |
| color: var(--nv-ink-muted);
| |
| font-family: var(--nv-ui-font);
| |
| font-size: 12px;
| |
| }
| |
|
| |
| .nv-home-world {
| |
| display: block;
| |
| margin: 0 0 1rem;
| |
| padding: 1.1rem 1.3rem 1.2rem;
| |
| border: 2px solid var(--nv-line);
| |
| background: var(--nv-paper-raised);
| |
| }
| |
|
| |
| .nv-home-world:hover {
| |
| border-color: var(--nv-accent);
| |
| }
| |
|
| |
| .nv-home-world__name,
| |
| .nv-home-world__name a {
| |
| color: var(--nv-ink) !important;
| |
| font-family: var(--nv-display-font);
| |
| font-size: 23px;
| |
| font-weight: 700;
| |
| text-decoration: none;
| |
| }
| |
|
| |
| .nv-home-world__desc {
| |
| margin-top: .3rem;
| |
| color: var(--nv-ink-muted);
| |
| font-family: var(--nv-ui-font);
| |
| font-size: 13px;
| |
| }
| |
|
| |
| .nv-home-grid {
| |
| display: grid;
| |
| grid-template-columns: repeat(3, minmax(0, 1fr));
| |
| gap: 10px;
| |
| margin: 0 0 1rem;
| |
| }
| |
|
| |
| .nv-home-create {
| |
| display: grid;
| |
| grid-template-columns: repeat(2, minmax(0, 1fr));
| |
| gap: 10px 18px;
| |
| }
| |
|
| |
| .nv-home-create__note {
| |
| grid-column: 1 / -1;
| |
| color: var(--nv-ink-muted);
| |
| font-family: var(--nv-ui-font);
| |
| font-size: 12.5px;
| |
| }
| |
|
| |
| .nv-home-create .author-entry-form {
| |
| display: block;
| |
| min-width: 0;
| |
| }
| |
|
| |
| .nv-home-create .author-entry-form form {
| |
| display: flex;
| |
| flex-wrap: wrap;
| |
| gap: .4rem;
| |
| align-items: center;
| |
| }
| |
|
| |
| .nv-home-create .author-entry-form input {
| |
| flex: 1 1 10rem;
| |
| min-width: 0;
| |
| max-width: 100%;
| |
| box-sizing: border-box;
| |
| }
| |
|
| |
| .nv-home-create .author-entry-form button {
| |
| flex: 0 0 auto;
| |
| }
| |
|
| |
| .nv-home-tools {
| |
| margin-top: .8rem;
| |
| color: var(--nv-ink-muted);
| |
| font-family: var(--nv-ui-font);
| |
| font-size: 12.5px;
| |
| }
| |
|
| |
| .nv-home-stats {
| |
| margin-top: 2rem;
| |
| padding-top: 10px;
| |
| border-top: 1px solid var(--nv-hair);
| |
| color: var(--nv-ink-muted);
| |
| font-family: var(--nv-ui-font);
| |
| font-size: 12px;
| |
| }
| |
|
| |
| @media (max-width: 900px) {
| |
| .nv-home-masthead {
| |
| grid-template-columns: 1fr;
| |
| }
| |
|
| |
| .nv-home-mark {
| |
| max-width: 300px;
| |
| }
| |
|
| |
| .nv-home-grid {
| |
| grid-template-columns: repeat(2, minmax(0, 1fr));
| |
| }
| |
|
| |
| .nv-home-create {
| |
| grid-template-columns: 1fr;
| |
| }
| |
| }
| |
|
| |
| @media (max-width: 560px) {
| |
| .nv-home-masthead__title {
| |
| font-size: 44px;
| |
| }
| |
|
| |
| .nv-home-grid {
| |
| grid-template-columns: 1fr;
| |
| }
| |
| }
| |
|
| |
| /* —— v2-5 导航台与通用卡片 —— */
| |
|
| |
|
| |
| /* —— v2-7 章节界面:搜索类型 tab / 数值条 / 分类 / 术语卡 —— */
| |
| .search-types li.current a {
| |
| color: var(--nv-ink) !important;
| |
| background: transparent !important;
| |
| box-shadow: inset 0 -2px 0 var(--nv-accent);
| |
| font-weight: 700;
| |
| }
| |
|
| |
| .search-types a {
| |
| color: var(--nv-ink-muted);
| |
| }
| |
|
| |
| body #catlinks #mw-normal-catlinks > a:first-child {
| |
| padding: 2px 0;
| |
| border: 0;
| |
| color: var(--nv-ink-muted) !important;
| |
| }
| |
|
| |
| /* —— v2-8 状态行成组 —— */
| |
|
| |
| /* —— v2-9 PageForms / OOUI / 分类页 —— */
| |
| body .mw-parser-output .pfFormInput, | | body .mw-parser-output .pfFormInput, |
| body .mw-parser-output .pfFormInputWrapper { | | body .mw-parser-output .pfFormInputWrapper { |
| border: 0 !important;
| | border: 0 !important; |
| background: transparent !important; | | background: transparent !important; |
| } | | } |
|
| |
|
| body .mw-parser-output .pfFormInput table, | | body .mw-parser-output .pfFormInput table, |
| body .mw-parser-output .pfFormInputWrapper table, | | body .mw-parser-output .pfFormInputWrapper table { |
| body .mw-parser-output .mw-category-generated form table {
| | border: 0 !important; |
| border: 0 !important;
| |
| background: transparent !important; | | background: transparent !important; |
| } | | } |
|
| |
|
| body .mw-parser-output .pfFormInput table td, | | body .mw-parser-output .pfFormInput table td, |
| body .mw-parser-output .pfFormInputWrapper table td, | | body .mw-parser-output .pfFormInputWrapper table td { |
| body .mw-parser-output .mw-category-generated form table td {
| | border: 0 !important; |
| border: 0 !important;
| |
| padding: 2px 6px 2px 0 !important; | | padding: 2px 6px 2px 0 !important; |
| background: transparent !important; | | background: transparent !important; |
| 第1,851行: |
第524行: |
| body .mw-parser-output .pfFormInput input, | | body .mw-parser-output .pfFormInput input, |
| body .mw-parser-output .pfFormInputWrapper input { | | body .mw-parser-output .pfFormInputWrapper input { |
| border: 1px solid var(--nv-line) !important;
| | border: 1px solid var(--nv-line) !important; |
| border-radius: 0 !important; | | border-radius: 0 !important; |
| background: var(--nv-paper-raised) !important; | | background: var(--nv-paper-raised) !important; |
| 第1,857行: |
第530行: |
| } | | } |
|
| |
|
| body .mw-parser-output .mw-category-group > h3 {
| |
| margin: 1rem 0 .3rem;
| |
| padding-bottom: 3px;
| |
| border-bottom: 1px solid var(--nv-hair);
| |
| color: var(--nv-ink-muted);
| |
| font-family: var(--nv-ui-font);
| |
| font-size: 13px;
| |
| font-weight: 700;
| |
| }
| |
|
| |
|
| |
| /* Category-generated area lives outside .mw-parser-output in this MediaWiki. */
| |
| body .mw-category-generated .mw-category-group > h3 {
| |
| margin: 1rem 0 .3rem;
| |
| padding-bottom: 3px;
| |
| border-bottom: 1px solid var(--nv-hair);
| |
| color: var(--nv-ink-muted);
| |
| font-family: var(--nv-ui-font);
| |
| font-size: 13px;
| |
| font-weight: 700;
| |
| }
| |
|
| |
| body .mw-category-generated .mw-category-group ul {
| |
| margin: .2rem 0 .8rem;
| |
| }
| |
|
| |
| /* PageForms create-box: keep the input/button on one row when the JS widget
| |
| produces a horizontal layout, including category pages. */
| |
| body .mw-parser-output .pfFormInputWrapper, | | body .mw-parser-output .pfFormInputWrapper, |
| body .mw-parser-output .pfFormInput .oo-ui-horizontalLayout, | | body .mw-parser-output .pfFormInput .oo-ui-horizontalLayout, |
| body .mw-parser-output .pfFormInputWrapper .oo-ui-horizontalLayout { | | body .mw-parser-output .pfFormInputWrapper .oo-ui-horizontalLayout { |
| display: flex;
| | display: flex; |
| flex-wrap: wrap; | | flex-wrap: wrap; |
| align-items: center; | | align-items: center; |
| 第1,896行: |
第541行: |
| body .mw-parser-output .pfFormInputWrapper .oo-ui-textInputWidget, | | body .mw-parser-output .pfFormInputWrapper .oo-ui-textInputWidget, |
| body .mw-parser-output .pfFormInputWrapper .oo-ui-widget { | | body .mw-parser-output .pfFormInputWrapper .oo-ui-widget { |
| flex: 1 1 14rem;
| | flex: 1 1 14rem; |
| min-width: 0; | | min-width: 0; |
| max-width: 100%; | | max-width: 100%; |
| 第1,902行: |
第547行: |
|
| |
|
| body .mw-parser-output .pfFormInputWrapper .oo-ui-buttonElement { | | body .mw-parser-output .pfFormInputWrapper .oo-ui-buttonElement { |
| flex: 0 0 auto;
| | flex: 0 0 auto; |
| } | | } |
|
| |
|
|
| |
| /* Page Forms 原生编辑界面:桌面标签列,窄屏自然上下排列。 */
| |
| body #pfForm { | | body #pfForm { |
| font-family: var(--nv-ui-font);
| | font-family: var(--nv-ui-font); |
| font-size: 14px; | | font-size: 14px; |
| line-height: 1.65; | | line-height: 1.65; |
| } | | } |
| | |
| body #pfForm fieldset { | | body #pfForm fieldset { |
| min-inline-size: 0;
| | min-inline-size: 0; |
| margin: 1.2rem 0; | | margin: 1.2rem 0; |
| padding: .85rem 1rem 1rem; | | padding: .85rem 1rem 1rem; |
| border: 1px solid var(--nv-hair); | | border: 1px solid var(--nv-hair); |
| } | | } |
| body #pfForm legend { padding: 0 .35rem; color: var(--nv-ink-muted); } | | |
| body #pfForm .formtable { width: 100%; max-width: 100%; table-layout: fixed; } | | body #pfForm legend { |
| | padding: 0 .35rem; color: var(--nv-ink-muted); |
| | } |
| | |
| | body #pfForm .formtable { |
| | width: 100%; max-width: 100%; table-layout: fixed; |
| | } |
| | |
| body #pfForm .formtable th { | | body #pfForm .formtable th { |
| width: 10rem;
| | width: 10rem; |
| padding: .65rem 1rem .65rem 0; | | padding: .65rem 1rem .65rem 0; |
| vertical-align: top; | | vertical-align: top; |
| 第1,927行: |
第578行: |
| font-weight: 600; | | font-weight: 600; |
| } | | } |
| body #pfForm .formtable td { padding: .45rem 0; min-width: 0; } | | |
| | body #pfForm .formtable td { |
| | padding: .45rem 0; min-width: 0; |
| | } |
| | |
| body #pfForm textarea, | | body #pfForm textarea, |
| body #pfForm input:not([type]), | | body #pfForm input:not([type]), |
| 第1,933行: |
第588行: |
| body #pfForm input[type="search"], | | body #pfForm input[type="search"], |
| body #pfForm select { | | body #pfForm select { |
| box-sizing: border-box;
| | box-sizing: border-box; |
| width: 100%; | | width: 100%; |
| max-width: 100%; | | max-width: 100%; |
| 第1,939行: |
第594行: |
| font: inherit; | | font: inherit; |
| } | | } |
| body #pfForm textarea { resize: vertical; }
| |
| body #pfForm .oo-ui-textInputWidget,
| |
| body #pfForm .oo-ui-comboBoxInputWidget,
| |
| body #pfForm .select2-container { width: 100%; max-width: 100%; min-width: 0; }
| |
| /* Page Forms injects a 300px inline minimum on its combobox wrapper. */
| |
| body #pfForm .oo-ui-comboBoxInputWidget { min-width: 0 !important; }
| |
| @media (max-width: 640px) {
| |
| body #pfForm fieldset { padding: .6rem .75rem .8rem; }
| |
| body #pfForm .formtable,
| |
| body #pfForm .formtable tbody,
| |
| body #pfForm .formtable tr,
| |
| body #pfForm .formtable th,
| |
| body #pfForm .formtable td { display: block; width: auto; }
| |
| body #pfForm .formtable th { padding: .65rem 0 .2rem; }
| |
| body #pfForm .formtable td { padding: 0 0 .35rem; }
| |
| }
| |
|
| |
| /* 术语链接的文章内标记;索引/编辑界面样式由专用资源加载。 */
| |
| .nv-term-ref { border-bottom: 1px dotted var(--nv-accent); }
| |
| .nv-term-missing { color: var(--nv-danger); }
| |
|
| |
| /* ==========================================================================
| |
| v2 交互层样式 · 与静态层同一 Common.css
| |
| ========================================================================== */
| |
| @view-transition { navigation: auto; }
| |
|
| |
|
| ::view-transition-old(root),
| | body #pfForm textarea { |
| ::view-transition-new(root) {
| | resize: vertical; |
| animation-duration: 140ms;
| |
| animation-timing-function: ease-out;
| |
| } | | } |
|
| |
|
| .citizen-header { view-transition-name: mien-shell-1; }
| | body #pfForm .oo-ui-textInputWidget, |
| .citizen-page-aside { view-transition-name: mien-shell-2; }
| | body #pfForm .oo-ui-comboBoxInputWidget, |
| .citizen-footer { view-transition-name: mien-shell-3; }
| | body #pfForm .select2-container { |
| | | width: 100%; max-width: 100%; min-width: 0; |
| ::view-transition-group(mien-shell-1),
| |
| ::view-transition-group(mien-shell-2),
| |
| ::view-transition-group(mien-shell-3),
| |
| ::view-transition-old(mien-shell-1),
| |
| ::view-transition-old(mien-shell-2),
| |
| ::view-transition-old(mien-shell-3),
| |
| ::view-transition-new(mien-shell-1),
| |
| ::view-transition-new(mien-shell-2),
| |
| ::view-transition-new(mien-shell-3) {
| |
| animation: none;
| |
| }
| |
| | |
| html:has(body.action-edit) ::view-transition-old(root),
| |
| html:has(body.action-edit) ::view-transition-new(root),
| |
| html:has(body.action-submit) ::view-transition-old(root),
| |
| html:has(body.action-submit) ::view-transition-new(root),
| |
| html:has(body.ns-special) ::view-transition-old(root),
| |
| html:has(body.ns-special) ::view-transition-new(root) {
| |
| animation: none;
| |
| }
| |
| | |
| html.mien-vt-theme * { view-transition-name: none !important; }
| |
| html.mien-vt-theme::view-transition-old(root),
| |
| html.mien-vt-theme::view-transition-new(root) {
| |
| animation-duration: 180ms;
| |
| }
| |
| | |
| @media (prefers-reduced-motion: reduce) {
| |
| @view-transition { navigation: none; }
| |
| ::view-transition-group(*),
| |
| ::view-transition-old(*),
| |
| ::view-transition-new(*) { animation: none !important; }
| |
| }
| |
| | |
| html.mien-nav-pending { cursor: progress; }
| |
| html.mien-nav-pending::after {
| |
| content: "";
| |
| position: fixed;
| |
| z-index: 10000;
| |
| top: 0;
| |
| left: 0;
| |
| right: 0;
| |
| height: 2px;
| |
| background: var(--nv-accent, #C0472E);
| |
| pointer-events: none;
| |
| animation: mien-fade-in 120ms ease-out both;
| |
| }
| |
| @keyframes mien-fade-in { from { opacity: 0; } }
| |
| | |
| .mw-parser-output a:active, | |
| .catlinks a:active {
| |
| text-decoration: underline;
| |
| text-decoration-thickness: 2px;
| |
| text-underline-offset: 3px;
| |
| }
| |
| | |
| .mw-parser-output :is(h1, h2, h3, h4, h5, h6, .mw-headline, [id]) {
| |
| scroll-margin-top: var(--mien-sticky-offset, 64px);
| |
| }
| |
| /* 07: the old site layer put a permanent accent underline on the heading
| |
| that happened to be the current :target. Anchor jumps are native
| |
| navigation; keep the target heading's existing D gradient line and
| |
| remove only this leftover red decoration. Focus-visible styles are
| |
| intentionally unaffected. */
| |
| .mw-parser-output :is(h2, h3, h4, h5, h6, .mw-headline):target {
| |
| text-decoration: none !important;
| |
| }
| |
| .mw-parser-output .references li:target {
| |
| box-shadow: -4px 0 0 var(--nv-accent, #C0472E);
| |
| }
| |
| | |
| .mien-theme-toggle {
| |
| display: inline-flex;
| |
| align-items: center;
| |
| gap: 0.45em;
| |
| padding: 0.3em 0.2em;
| |
| border: 0;
| |
| background: none;
| |
| color: inherit;
| |
| font: inherit;
| |
| cursor: pointer;
| |
| }
| |
| .mien-theme-toggle:focus-visible { outline: 2px solid var(--nv-link, #2357A6); outline-offset: 2px; }
| |
| .mien-theme-toggle__icon {
| |
| flex: 0 0 auto;
| |
| width: 16px;
| |
| height: 16px;
| |
| border: 2px solid currentColor;
| |
| border-radius: 50%;
| |
| background: linear-gradient(90deg, currentColor 50%, transparent 50%);
| |
| transition: transform 160ms ease-out;
| |
| }
| |
| .mien-theme-toggle[aria-pressed="true"] .mien-theme-toggle__icon { transform: rotate(180deg); }
| |
| .mien-theme-toggle--compact .mien-theme-toggle__label {
| |
| position: absolute;
| |
| width: 1px;
| |
| height: 1px;
| |
| overflow: hidden;
| |
| clip: rect(0 0 0 0);
| |
| white-space: nowrap;
| |
| }
| |
| @media (prefers-reduced-motion: reduce) {
| |
| .mien-theme-toggle__icon { transition: none; }
| |
| }
| |
| | |
| .mien-search-input[data-mien-busy] {
| |
| box-shadow: inset 0 -2px 0 var(--nv-accent, #C0472E);
| |
| }
| |
| .mw-search-results .searchmatch {
| |
| background: none;
| |
| color: inherit;
| |
| font-weight: 700;
| |
| }
| |
| | |
| /* Search command palette: the real Citizen component, styled as paper/ink.
| |
| The server-side fallback #searchform is removed by Citizen when the
| |
| command-palette bundle mounts, so these are the actual selectors. */
| |
| #citizen-command-palette-overlay {
| |
| color: var(--nv-ink);
| |
| font-family: var(--nv-ui-font);
| |
| }
| |
| | |
| #citizen-command-palette-overlay .citizen-command-palette-backdrop {
| |
| background: rgba(20, 16, 12, .34);
| |
| }
| |
| | |
| #citizen-command-palette-overlay .citizen-command-palette {
| |
| background: var(--nv-paper-raised);
| |
| border: 2px solid var(--nv-line);
| |
| border-radius: 0;
| |
| box-shadow: none;
| |
| color: var(--nv-ink);
| |
| }
| |
| | |
| #citizen-command-palette-overlay .citizen-command-palette-header {
| |
| border-bottom: 1px solid var(--nv-line);
| |
| background: transparent;
| |
| }
| |
| | |
| #citizen-command-palette-overlay .citizen-command-palette-header__input-area {
| |
| color: var(--nv-ink);
| |
| } | | } |
|
| |
|
| #citizen-command-palette-overlay .citizen-command-palette .cdx-text-input__input, | | body #pfForm .oo-ui-comboBoxInputWidget { |
| #citizen-command-palette-overlay .citizen-command-palette input[type="search"] {
| | min-width: 0 !important; |
| border: 1px solid var(--nv-line);
| |
| border-radius: 0;
| |
| background: var(--nv-paper);
| |
| color: var(--nv-ink);
| |
| box-shadow: none;
| |
| font-family: var(--nv-ui-font);
| |
| } | | } |
|
| |
|
| #citizen-command-palette-overlay .citizen-command-palette .cdx-text-input__input:focus { | | @media (max-width: 640px) {body #pfForm fieldset { |
| outline: 2px solid var(--nv-link);
| | padding: .6rem .75rem .8rem; |
| outline-offset: 1px;
| | }body #pfForm .formtable, |
| } | | body #pfForm .formtable tbody, |
| | body #pfForm .formtable tr, |
| | body #pfForm .formtable th, |
| | body #pfForm .formtable td { |
| | display: block; width: auto; |
| | }body #pfForm .formtable th { |
| | padding: .65rem 0 .2rem; |
| | }body #pfForm .formtable td { |
| | padding: 0 0 .35rem; |
| | }} |
|
| |
|
| #citizen-command-palette-overlay .citizen-command-palette__body,
| | .nv-term-ref { |
| #citizen-command-palette-overlay .citizen-command-palette__results {
| | border-bottom: 1px dotted var(--nv-accent); |
| background: transparent;
| |
| } | | } |
|
| |
|
| #citizen-command-palette-overlay .citizen-command-palette-list-item {
| | .nv-term-missing { |
| border-radius: 0;
| | color: var(--nv-danger); |
| color: var(--nv-ink);
| |
| } | | } |
|
| |
|
| #citizen-command-palette-overlay .citizen-command-palette-list-item--highlighted {
| |
| background: var(--nv-paper-deep);
| |
| box-shadow: inset 3px 0 0 var(--nv-accent);
| |
| }
| |
|
| |
| #citizen-command-palette-overlay .citizen-command-palette-list-item__text {
| |
| color: var(--nv-ink);
| |
| }
| |
|
| |
| #citizen-command-palette-overlay .citizen-command-palette-list-item__text__label,
| |
| #citizen-command-palette-overlay .citizen-command-palette-list-item__text__label .cdx-search-result-title,
| |
| #citizen-command-palette-overlay .citizen-command-palette-list-item__text__label .cdx-search-result-title bdi {
| |
| color: var(--nv-ink);
| |
| font-family: var(--nv-ui-font);
| |
| }
| |
|
| |
| #citizen-command-palette-overlay .citizen-command-palette-list-item__text__description,
| |
| #citizen-command-palette-overlay .citizen-command-palette-list-item__metadata,
| |
| #citizen-command-palette-overlay .citizen-command-palette-list-item__action {
| |
| color: var(--nv-ink-muted);
| |
| font-size: 12px;
| |
| }
| |
|
| |
| #citizen-command-palette-overlay .cdx-search-result-title__match {
| |
| color: var(--nv-accent);
| |
| font-weight: 700;
| |
| }
| |
|
| |
| #citizen-command-palette-overlay .citizen-command-palette-list-item__action:hover {
| |
| background: transparent;
| |
| color: var(--nv-accent);
| |
| }
| |
|
| |
| #citizen-command-palette-overlay .citizen-command-palette__footer {
| |
| border-top: 1px solid var(--nv-hair);
| |
| background: transparent;
| |
| color: var(--nv-ink-muted);
| |
| }
| |
|
| |
| #citizen-command-palette-overlay .citizen-command-palette__footer-hints,
| |
| #citizen-command-palette-overlay .citizen-keyboard-hint-label,
| |
| #citizen-command-palette-overlay .citizen-keyboard-hint-keys {
| |
| color: var(--nv-ink-muted);
| |
| }
| |
|
| |
| #citizen-command-palette-overlay .citizen-keyboard-hint-key {
| |
| border: 1px solid var(--nv-hair);
| |
| border-radius: 0;
| |
| background: var(--nv-paper);
| |
| color: var(--nv-ink);
| |
| font-family: var(--nv-ui-font);
| |
| }
| |
|
| |
| #citizen-command-palette-overlay .citizen-command-palette-empty-state,
| |
| #citizen-command-palette-overlay .citizen-command-palette-empty-state__content {
| |
| color: var(--nv-ink-muted);
| |
| background: transparent;
| |
| }
| |
|
| |
| #citizen-command-palette-overlay .citizen-command-palette-empty-state__title {
| |
| color: var(--nv-ink);
| |
| font-family: var(--nv-display-font);
| |
| }
| |
|
| |
| #citizen-command-palette-overlay .citizen-command-palette-empty-state__description {
| |
| color: var(--nv-ink-muted);
| |
| font-family: var(--nv-ui-font);
| |
| }
| |
|
| |
|
| |
| /* The highlighted menu row paints its background on the inner content link,
| |
| not only on the li; override both so Codex's progressive-subtle fill never
| |
| appears. */
| |
| #citizen-command-palette-overlay .citizen-command-palette-list-item__content,
| |
| #citizen-command-palette-overlay .citizen-command-palette-list-item__content:hover,
| |
| #citizen-command-palette-overlay .citizen-command-palette-list-item__text {
| |
| background: transparent !important;
| |
| color: var(--nv-ink) !important;
| |
| text-decoration: none;
| |
| }
| |
|
| |
| #citizen-command-palette-overlay .citizen-command-palette-list-item--highlighted,
| |
| #citizen-command-palette-overlay .citizen-command-palette-list-item--highlighted .citizen-command-palette-list-item__content,
| |
| #citizen-command-palette-overlay .citizen-command-palette-list-item--highlighted .citizen-command-palette-list-item__text {
| |
| background: var(--nv-paper-deep) !important;
| |
| color: var(--nv-ink) !important;
| |
| box-shadow: inset 3px 0 0 var(--nv-accent);
| |
| }
| |
|
| |
| #citizen-command-palette-overlay .citizen-command-palette-list-item:hover .citizen-command-palette-list-item__content {
| |
| background: var(--nv-paper-deep) !important;
| |
| color: var(--nv-ink) !important;
| |
| }
| |
|
| |
| #citizen-command-palette-overlay .cdx-text-input__clear-icon,
| |
| #citizen-command-palette-overlay .cdx-text-input__icon-vue {
| |
| color: var(--nv-ink-muted);
| |
| }
| |
|
| |
| /* ==========================================================================
| |
| mien-preview-lite.css · 轻量术语短卡
| |
| ========================================================================== */
| |
|
| |
| @keyframes mien-preview-progress {
| |
| to { stroke-dashoffset: 0; }
| |
| }
| |
|
| |
| /* Article detail: real parse content, compact single panel. */
| |
|
| |
| /* Preview card headings: parsed article HTML at card scale; the full-page line
| |
| language must not leak into the preview panel. */
| |
|
| |
| /* ==========================================================================
| |
| 2026-10-25 layout hierarchy / panels
| |
| Appended over current v2 Common.css; scoped to content, not skin chrome.
| |
| ========================================================================== */
| |
|
| |
| /* ---- focused tokens ------------------------------------------------ */
| |
| :root {
| |
| --nv-hair: #d8cdbb;
| |
| --nv-panel-quote-bg: #f1ede4;
| |
| --nv-panel-quote-line: #9a7a5d;
| |
| --nv-panel-rule-bg: #e9eef1;
| |
| --nv-panel-rule-line: #6e8795;
| |
| --nv-panel-example-bg: #eaf0e8;
| |
| --nv-panel-example-line: #748b76;
| |
| --nv-panel-note-bg: #f4eddc;
| |
| --nv-panel-note-line: #aa8a4b;
| |
| --nv-panel-warning-bg: #f4e7e1;
| |
| --nv-panel-warning-line: #b16e5e;
| |
| }
| |
|
| |
| html.skin-theme-clientpref-night,
| |
| html.skin-theme-clientpref-black {
| |
| --nv-hair: #4a443d;
| |
| --nv-panel-quote-bg: #252320;
| |
| --nv-panel-quote-line: #c49a78;
| |
| --nv-panel-rule-bg: #1e272c;
| |
| --nv-panel-rule-line: #8da9b5;
| |
| --nv-panel-example-bg: #202a22;
| |
| --nv-panel-example-line: #93aa92;
| |
| --nv-panel-note-bg: #2b261c;
| |
| --nv-panel-note-line: #d0b36d;
| |
| --nv-panel-warning-bg: #2b211e;
| |
| --nv-panel-warning-line: #d79887;
| |
| }
| |
|
| |
| @media (prefers-color-scheme: dark) {
| |
| html.skin-theme-clientpref-os {
| |
| --nv-hair: #4a443d;
| |
| --nv-panel-quote-bg: #252320;
| |
| --nv-panel-quote-line: #c49a78;
| |
| --nv-panel-rule-bg: #1e272c;
| |
| --nv-panel-rule-line: #8da9b5;
| |
| --nv-panel-example-bg: #202a22;
| |
| --nv-panel-example-line: #93aa92;
| |
| --nv-panel-note-bg: #2b261c;
| |
| --nv-panel-note-line: #d0b36d;
| |
| --nv-panel-warning-bg: #2b211e;
| |
| --nv-panel-warning-line: #d79887;
| |
| --nv-table-head: #332B24;
| |
| --nv-table-alt: #2A241F;
| |
| }
| |
| }
| |
|
| |
| /* ---- TOC chevron: replace Citizen's white-edged icon -- */
| |
| #citizen-toc .citizen-toc-toggle,
| |
| #citizen-toc .citizen-toc-toggle.cdx-button {
| |
| display: inline-flex !important;
| |
| align-items: center !important;
| |
| justify-content: center !important;
| |
| width: 22px !important;
| |
| min-width: 22px !important;
| |
| height: 22px !important;
| |
| min-height: 22px !important;
| |
| padding: 0 !important;
| |
| border: 0 !important;
| |
| border-radius: 0 !important;
| |
| background: transparent !important;
| |
| box-shadow: none !important;
| |
| color: var(--nv-ink-muted) !important;
| |
| }
| |
|
| |
| #citizen-toc .citizen-toc-toggle .citizen-ui-icon {
| |
| display: none !important;
| |
| }
| |
|
| |
| #citizen-toc .citizen-toc-toggle::before {
| |
| content: "" !important;
| |
| display: block !important;
| |
| width: 7px !important;
| |
| height: 7px !important;
| |
| margin: 0 !important;
| |
| border: 0 !important;
| |
| border-right: 1.5px solid currentColor !important;
| |
| border-bottom: 1.5px solid currentColor !important;
| |
| background: transparent !important;
| |
| mask: none !important;
| |
| -webkit-mask: none !important;
| |
| transform: rotate(45deg);
| |
| transition: transform .16s ease;
| |
| }
| |
|
| |
| #citizen-toc .citizen-toc-toggle[aria-expanded="true"]::before {
| |
| transform: rotate(-135deg);
| |
| }
| |
|
| |
| #citizen-toc .citizen-toc-toggle:hover,
| |
| #citizen-toc .citizen-toc-toggle:focus-visible {
| |
| color: var(--nv-ink) !important;
| |
| }
| |
|
| |
| /* ---- section heading controls: less visual weight, usable ---- */
| |
| .client-js .citizen-sections-enabled section > .citizen-section-heading > .citizen-section-toggle {
| |
| color: var(--nv-ink-muted) !important;
| |
| opacity: .55;
| |
| }
| |
|
| |
| .client-js .citizen-sections-enabled section > .citizen-section-heading > .citizen-section-toggle:hover,
| |
| .client-js .citizen-sections-enabled section > .citizen-section-heading > .citizen-section-toggle:focus-visible {
| |
| opacity: 1;
| |
| }
| |
|
| |
| .client-js .citizen-sections-enabled section > .citizen-section-heading > .citizen-section-toggle .citizen-ui-icon {
| |
| display: none !important;
| |
| }
| |
|
| |
| .client-js .citizen-sections-enabled section > .citizen-section-heading > .citizen-section-toggle::before {
| |
| display: block !important;
| |
| width: 0 !important;
| |
| height: 0 !important;
| |
| border-left: 4.5px solid transparent !important;
| |
| border-right: 4.5px solid transparent !important;
| |
| border-top: 7px solid currentColor !important;
| |
| background: transparent !important;
| |
| mask: none !important;
| |
| -webkit-mask: none !important;
| |
| }
| |
|
| |
| .mw-editsection,
| |
| .mw-editsection a,
| |
| .mw-editsection-bracket {
| |
| color: var(--nv-ink-muted) !important;
| |
| font-family: var(--nv-ui-font);
| |
| font-size: 11px !important;
| |
| opacity: .62;
| |
| }
| |
|
| |
| .mw-editsection a:hover { opacity: 1; }
| |
|
| |
| /* ---- purpose panels: quote / rule / example / note / warning ---- */
| |
|
| |
| .mw-parser-output .nv-quote__body {
| |
| margin: 0 !important;
| |
| padding: 0 !important;
| |
| border: 0 !important;
| |
| font-family: var(--nv-body-font) !important;
| |
| font-size: 15px;
| |
| line-height: 1.85;
| |
| }
| |
|
| |
| .mw-parser-output .nv-quote__meta {
| |
| margin-top: .55rem !important;
| |
| color: var(--nv-ink-muted) !important;
| |
| font-family: var(--nv-ui-font) !important;
| |
| font-size: 11.5px;
| |
| text-align: left !important;
| |
| }
| |
|
| |
| .mw-parser-output .nv-notice__title {
| |
| display: flex;
| |
| align-items: baseline;
| |
| gap: 6px;
| |
| margin-bottom: .4rem !important;
| |
| color: var(--nv-ink) !important;
| |
| font-family: var(--nv-ui-font) !important;
| |
| font-size: 12px !important;
| |
| font-weight: 700 !important;
| |
| letter-spacing: .06em;
| |
| line-height: 1.55;
| |
| }
| |
|
| |
| .mw-parser-output .nv-notice__title::before {
| |
| display: inline-block;
| |
| width: 1.1em;
| |
| color: var(--nv-panel-rule-line);
| |
| font-weight: 700;
| |
| text-align: center;
| |
| }
| |
|
| |
| .mw-parser-output .nv-notice__body > :last-child { margin-bottom: 0 !important; }
| |
|
| |
| /* ---- help demo panels keep prose, not admin copy ---- */
| |
| .mw-parser-output .nv-demo-label { | | .mw-parser-output .nv-demo-label { |
| margin: .9rem 0 .35rem;
| | margin: .9rem 0 .35rem; |
| color: var(--nv-ink-muted); | | color: var(--nv-ink-muted); |
| font-family: var(--nv-ui-font); | | font-family: var(--nv-ui-font); |
| 第2,444行: |
第639行: |
| } | | } |
|
| |
|
| /* TOC active/collapsed marker: Citizen paints a 2×18 near-white pseudo
| | @media (prefers-reduced-motion: reduce) {.nv-lock, |
| on top of the vertical rail. Let the paper/rail show through instead. */
| | .nv-lock * { |
| #citizen-toc .citizen-toc-list-item::before,
| | scroll-behavior: auto !important; |
| #citizen-toc .citizen-toc-list-item--active::before {
| |
| background: transparent !important;
| |
| box-shadow: none !important;
| |
| }
| |
| | |
| /* ==========================================================================
| |
| 2026-10-25 阅读节奏与渐进锁定 · 有效覆盖段
| |
| 旧印构成:宋体展示、暖纸、章节目录线、编辑动作纸墨化。
| |
| 本段是最后一层;冲突规则由本段收敛,不再逐页打补丁。
| |
| ========================================================================== */
| |
| | |
| :root {
| |
| --nv-paper: #F7F4EC;
| |
| --nv-paper-raised: #FCFAF5;
| |
| --nv-paper-deep: #EEE8DC;
| |
| --nv-ink: #302B26;
| |
| --nv-ink-muted: #6D6253;
| |
| --nv-line: #2A231C;
| |
| --nv-hair: #CDC0A8;
| |
| --nv-accent: #B54332;
| |
| --nv-reading-width: 760px;
| |
| | |
| --nv-panel-quote-bg: #F3EEE2;
| |
| --nv-panel-quote-line: #8B6B4F;
| |
| --nv-panel-rule-bg: #EEE9DE;
| |
| --nv-panel-rule-line: #7B7162;
| |
| --nv-panel-example-bg: #EAEDDF;
| |
| --nv-panel-example-line: #788268;
| |
| --nv-panel-note-bg: #F1E8D6;
| |
| --nv-panel-note-line: #A9854C;
| |
| --nv-panel-warning-bg: #F2E3DB;
| |
| --nv-panel-warning-line: #AE6B5D;
| |
| --nv-table-head: #EEE8DC;
| |
| --nv-table-alt: #F4F0E7;
| |
| }
| |
| | |
| html.skin-theme-clientpref-night,
| |
| html.skin-theme-clientpref-black {
| |
| --nv-panel-quote-bg: #26211B;
| |
| --nv-panel-quote-line: #C49A78;
| |
| --nv-panel-rule-bg: #29251F;
| |
| --nv-panel-rule-line: #A99B88;
| |
| --nv-panel-example-bg: #252A21;
| |
| --nv-panel-example-line: #99A88A;
| |
| --nv-panel-note-bg: #2C261C;
| |
| --nv-panel-note-line: #D0B36D;
| |
| --nv-panel-warning-bg: #2C211D;
| |
| --nv-panel-warning-line: #D79887;
| |
| --nv-table-head: #332B24;
| |
| --nv-table-alt: #2A241F;
| |
| }
| |
| | |
| @media (prefers-color-scheme: dark) {
| |
| html.skin-theme-clientpref-os {
| |
| --nv-panel-quote-bg: #26211B;
| |
| --nv-panel-quote-line: #C49A78;
| |
| --nv-panel-rule-bg: #29251F;
| |
| --nv-panel-rule-line: #A99B88;
| |
| --nv-panel-example-bg: #252A21;
| |
| --nv-panel-example-line: #99A88A;
| |
| --nv-panel-note-bg: #2C261C;
| |
| --nv-panel-note-line: #D0B36D;
| |
| --nv-panel-warning-bg: #2C211D;
| |
| --nv-panel-warning-line: #D79887;
| |
| --nv-table-head: #332B24;
| |
| --nv-table-alt: #2A241F;
| |
| }
| |
| }
| |
| | |
| /* ---- reading surface and rhythm ---------------------------------- */
| |
| html body .mw-parser-output {
| |
| max-width: var(--nv-reading-width);
| |
| color: var(--nv-ink);
| |
| font-family: var(--nv-body-font);
| |
| font-size: 16.8px;
| |
| line-height: 1.9;
| |
| text-align: justify;
| |
| text-justify: inter-ideograph;
| |
| }
| |
| | |
| html body .mw-parser-output p {
| |
| margin: 0 0 .9em !important;
| |
| line-height: 1.9;
| |
| }
| |
| | |
| html body .mw-parser-output ul,
| |
| html body .mw-parser-output ol {
| |
| margin: .75em 0 .95em !important;
| |
| padding-left: 1.45em;
| |
| }
| |
| | |
| html body .mw-parser-output li {
| |
| margin: .24em 0 !important;
| |
| line-height: 1.82;
| |
| }
| |
| | |
| html body .mw-parser-output li > p {
| |
| margin: .25em 0 !important;
| |
| }
| |
| | |
| html body .mw-parser-output blockquote {
| |
| margin: 1.35em 0;
| |
| }
| |
| | |
| html body .mw-parser-output hr {
| |
| border: 0;
| |
| border-top: 1px solid var(--nv-hair);
| |
| margin: 1.6em 0;
| |
| }
| |
| | |
| html body .citizen-page-actions .cdx-button:hover,
| |
| html body .citizen-page-actions .cdx-button--action-progressive:hover,
| |
| html body .citizen-page-actions a:hover,
| |
| html body .citizen-page-actions button:hover {
| |
| background: var(--nv-paper-raised) !important;
| |
| color: var(--nv-ink) !important;
| |
| border-color: var(--nv-hair) !important;
| |
| box-shadow: none !important;
| |
| }
| |
| | |
| html body .citizen-page-actions .cdx-button:active,
| |
| html body .citizen-page-actions .cdx-button--action-progressive:active,
| |
| html body .citizen-page-actions a:active,
| |
| html body .citizen-page-actions button:active {
| |
| background: var(--nv-paper-deep) !important;
| |
| color: var(--nv-ink) !important;
| |
| border-color: var(--nv-hair) !important;
| |
| box-shadow: none !important;
| |
| }
| |
| | |
| html body .citizen-page-actions .cdx-button:focus-visible,
| |
| html body .citizen-page-actions .cdx-button--action-progressive:focus-visible,
| |
| html body .citizen-page-actions a:focus-visible,
| |
| html body .citizen-page-actions button:focus-visible {
| |
| outline: 2px solid var(--nv-accent) !important;
| |
| outline-offset: 2px !important;
| |
| background: var(--nv-paper-raised) !important;
| |
| color: var(--nv-ink) !important;
| |
| border-color: var(--nv-hair) !important;
| |
| box-shadow: none !important;
| |
| }
| |
| | |
| html body .citizen-page-actions .citizen-ui-icon::before {
| |
| background: currentColor !important;
| |
| }
| |
| | |
| /* ---- warm purpose panels ----------------------------------------- */
| |
| | |
| | |
| html body .mw-parser-output .nv-quote__body,
| |
| html body .mw-parser-output .nv-quote__body p {
| |
| color: var(--nv-ink) !important;
| |
| font-family: var(--nv-display-font) !important;
| |
| font-size: 16px !important;
| |
| font-style: normal !important;
| |
| line-height: 1.85 !important;
| |
| text-align: left !important;
| |
| }
| |
| | |
| html body .mw-parser-output .nv-quote__body p {
| |
| margin: 0 0 .55em !important;
| |
| }
| |
| | |
| html body .mw-parser-output .nv-quote__meta {
| |
| margin-top: .55rem !important;
| |
| color: var(--nv-ink-muted) !important;
| |
| font-family: var(--nv-ui-font) !important;
| |
| font-size: 12px !important;
| |
| font-style: normal !important;
| |
| text-align: left !important;
| |
| }
| |
| | |
| html body .mw-parser-output .nv-notice__title {
| |
| margin-bottom: .35rem !important;
| |
| color: var(--nv-ink) !important;
| |
| font-family: var(--nv-ui-font) !important;
| |
| font-size: 17px !important;
| |
| font-weight: 600 !important;
| |
| line-height: 1.5;
| |
| letter-spacing: 0;
| |
| }
| |
| | |
| html body .mw-parser-output .nv-notice__body {
| |
| font-family: var(--nv-ui-font) !important;
| |
| font-size: 16px !important;
| |
| line-height: 1.75;
| |
| }
| |
| | |
| html body .mw-parser-output .nv-notice__title::before {
| |
| color: var(--nv-panel-rule-line);
| |
| }
| |
| | |
| /* ---- mobile reading rhythm --------------------------------------- */
| |
| @media (max-width: 720px) {
| |
| html body .mw-parser-output {
| |
| font-size: 16px;
| |
| line-height: 1.85;
| |
| text-align: left;
| |
| text-justify: auto;
| |
| }
| |
| | |
| html body .mw-parser-output p {
| |
| margin-bottom: .82em !important;
| |
| line-height: 1.85;
| |
| }
| |
| | |
|
| |
| }
| |
| | |
| @media (prefers-reduced-motion: reduce) { | |
| html body .mw-parser-output *,
| |
| .nv-lock,
| |
| .nv-lock * {
| |
| scroll-behavior: auto !important;
| |
| transition: none !important; | | transition: none !important; |
| animation: none !important; | | animation: none !important; |
| }
| | }} |
| } | |
| | |
| /* ---- residual finish: low-saturation lock ring and mobile reading tools ---- */
| |
| :root {
| |
| --nv-lock-ring: #8A6A4E;
| |
| --nv-lock-ring-track: #D8CDBB;
| |
| }
| |
| | |
| html.skin-theme-clientpref-night,
| |
| html.skin-theme-clientpref-black {
| |
| --nv-lock-ring: #C49A78;
| |
| --nv-lock-ring-track: #4A4034;
| |
| }
| |
| | |
| @media (prefers-color-scheme: dark) {
| |
| html.skin-theme-clientpref-os {
| |
| --nv-lock-ring: #C49A78;
| |
| --nv-lock-ring-track: #4A4034;
| |
| }
| |
| }
| |
| | |
| @media (max-width: 720px) {
| |
| /* Mobile reading tools shell: paper, not Citizen's cold blue-white surface. */
| |
| html body .citizen-page-actions {
| |
| background: var(--nv-paper-raised) !important;
| |
| border: 1px solid var(--nv-hair) !important;
| |
| box-shadow: none !important;
| |
| color: var(--nv-ink-muted) !important;
| |
| }
| |
| | |
| html body .citizen-page-actions .cdx-button,
| |
| html body .citizen-page-actions a,
| |
| html body .citizen-page-actions button {
| |
| background: transparent !important;
| |
| color: var(--nv-ink-muted) !important;
| |
| border-color: transparent !important;
| |
| box-shadow: none !important;
| |
| }
| |
| | |
| html body .citizen-page-actions .cdx-button:hover,
| |
| html body .citizen-page-actions a:hover,
| |
| html body .citizen-page-actions button:hover {
| |
| background: var(--nv-paper-deep) !important;
| |
| color: var(--nv-ink) !important;
| |
| border-color: var(--nv-hair) !important;
| |
| box-shadow: none !important;
| |
| }
| |
| | |
| html body .citizen-page-actions .cdx-button:active,
| |
| html body .citizen-page-actions a:active,
| |
| html body .citizen-page-actions button:active {
| |
| background: var(--nv-paper) !important;
| |
| color: var(--nv-ink) !important;
| |
| border-color: var(--nv-hair) !important;
| |
| }
| |
| | |
| html body .citizen-page-actions .cdx-button:focus-visible,
| |
| html body .citizen-page-actions a:focus-visible,
| |
| html body .citizen-page-actions button:focus-visible {
| |
| outline: 2px solid var(--nv-accent) !important;
| |
| outline-offset: 2px !important;
| |
| background: var(--nv-paper-raised) !important;
| |
| color: var(--nv-ink) !important;
| |
| }
| |
| | |
| html body .citizen-page-actions .citizen-ui-icon::before {
| |
| background: currentColor !important;
| |
| }
| |
| | |
| /* closed/open “more” card behind the mobile action bubble */
| |
| html body #citizen-page-actions-more__card,
| |
| html body .citizen-page-actions .citizen-menu__card {
| |
| background: var(--nv-paper-raised) !important;
| |
| border: 1px solid var(--nv-hair) !important;
| |
| box-shadow: none !important;
| |
| backdrop-filter: none !important;
| |
| -webkit-backdrop-filter: none !important;
| |
| color: var(--nv-ink) !important;
| |
| }
| |
| | |
| html body #citizen-page-actions-more__card .citizen-menu__card-content,
| |
| html body #citizen-page-actions-more__card .citizen-menu__heading,
| |
| html body #citizen-page-actions-more__card .citizen-menu__content {
| |
| background: transparent !important;
| |
| color: var(--nv-ink) !important;
| |
| }
| |
| | |
| html body #citizen-page-actions-more__card .citizen-menu__card-content a {
| |
| color: var(--nv-ink-muted) !important;
| |
| }
| |
| | |
| html body #citizen-page-actions-more__card .citizen-menu__card-content a:hover,
| |
| html body #citizen-page-actions-more__card .citizen-menu__card-content a:focus-visible {
| |
| color: var(--nv-ink) !important;
| |
| background: var(--nv-paper-deep) !important;
| |
| }
| |
| | |
| /* TOC / directory button at the bottom-left */
| |
| html body #citizen-toc .citizen-dropdown-summary {
| |
| background: var(--nv-paper-raised) !important;
| |
| border: 1px solid var(--nv-hair) !important;
| |
| color: var(--nv-ink) !important;
| |
| box-shadow: none !important;
| |
| }
| |
| | |
| html body #citizen-toc .citizen-dropdown-summary:hover,
| |
| html body #citizen-toc .citizen-dropdown-summary:active {
| |
| background: var(--nv-paper-deep) !important;
| |
| border-color: var(--nv-hair) !important;
| |
| color: var(--nv-ink) !important;
| |
| }
| |
| | |
| html body #citizen-toc .citizen-dropdown-summary:focus-visible {
| |
| outline: 2px solid var(--nv-accent) !important;
| |
| outline-offset: 2px !important;
| |
| }
| |
| }
| |
| | |
| /* Mobile header decorative surface is Citizen's cold translucent rail.
| |
| Keep the reading tools shell in warm paper; do not touch dropdown/account content. */
| |
| @media (max-width: 720px) {
| |
| html body.action-view .citizen-header::after {
| |
| background: var(--nv-paper) !important;
| |
| -webkit-backdrop-filter: none !important;
| |
| backdrop-filter: none !important;
| |
| }
| |
| | |
| html body.action-view .citizen-header .cdx-button,
| |
| html body.action-view .citizen-header a.cdx-button,
| |
| html body.action-view .citizen-header button.cdx-button {
| |
| background: transparent !important;
| |
| color: var(--nv-ink-muted) !important;
| |
| border-color: transparent !important;
| |
| box-shadow: none !important;
| |
| }
| |
| | |
| html body.action-view .citizen-header .cdx-button:hover,
| |
| html body.action-view .citizen-header a.cdx-button:hover,
| |
| html body.action-view .citizen-header button.cdx-button:hover {
| |
| background: var(--nv-paper-deep) !important;
| |
| color: var(--nv-ink) !important;
| |
| border-color: var(--nv-hair) !important;
| |
| box-shadow: none !important;
| |
| }
| |
| | |
| html body.action-view .citizen-header .cdx-button:active,
| |
| html body.action-view .citizen-header a.cdx-button:active,
| |
| html body.action-view .citizen-header button.cdx-button:active {
| |
| background: var(--nv-paper) !important;
| |
| color: var(--nv-ink) !important;
| |
| border-color: var(--nv-hair) !important;
| |
| }
| |
| | |
| html body.action-view .citizen-header .cdx-button:focus-visible,
| |
| html body.action-view .citizen-header a.cdx-button:focus-visible,
| |
| html body.action-view .citizen-header button.cdx-button:focus-visible {
| |
| outline: 2px solid var(--nv-accent) !important;
| |
| outline-offset: 2px !important;
| |
| background: var(--nv-paper-raised) !important;
| |
| color: var(--nv-ink) !important;
| |
| }
| |
| | |
| html body.action-view .citizen-header .citizen-ui-icon::before {
| |
| background: currentColor !important;
| |
| }
| |
| }
| |
| | |
| /* ==========================================================================
| |
| nv-lock.css · 渐进锁定阅读卡
| |
| 圆环只由 JS 的真实 800ms 进度填满;不旋转。
| |
| ========================================================================== */
| |
|
| |
|
| .nv-lock { | | .nv-lock { |
| position: fixed;
| | position: fixed; |
| z-index: 1200; | | z-index: 1200; |
| display: flex; | | display: flex; |
| 第2,856行: |
第666行: |
|
| |
|
| .nv-lock__header { | | .nv-lock__header { |
| display: flex;
| | display: flex; |
| flex: 0 0 auto; | | flex: 0 0 auto; |
| align-items: center; | | align-items: center; |
| 第2,867行: |
第677行: |
|
| |
|
| .nv-lock__back { | | .nv-lock__back { |
| display: none;
| | display: none; |
| flex: 0 0 auto; | | flex: 0 0 auto; |
| align-items: center; | | align-items: center; |
| 第2,884行: |
第694行: |
|
| |
|
| .nv-lock__back:focus-visible { | | .nv-lock__back:focus-visible { |
| outline: 2px solid var(--nv-accent);
| | outline: 2px solid var(--nv-accent); |
| outline-offset: 2px; | | outline-offset: 2px; |
| } | | } |
|
| |
|
| .nv-lock__title { | | .nv-lock__title { |
| min-width: 0;
| | min-width: 0; |
| overflow: hidden; | | overflow: hidden; |
| flex: 1 1 auto; | | flex: 1 1 auto; |
| 第2,903行: |
第713行: |
|
| |
|
| .nv-lock__ring { | | .nv-lock__ring { |
| display: block;
| | display: block; |
| flex: 0 0 auto; | | flex: 0 0 auto; |
| width: 16px; | | width: 16px; |
| 第2,911行: |
第721行: |
|
| |
|
| .nv-lock__ring circle { | | .nv-lock__ring circle { |
| fill: none;
| | fill: none; |
| stroke-width: 1.7; | | stroke-width: 1.7; |
| } | | } |
|
| |
|
| .nv-lock__ring .nv-lock__ring-track { | | .nv-lock__ring .nv-lock__ring-track { |
| stroke: var(--nv-lock-ring-track, #D8CDBB);
| | stroke: var(--nv-lock-ring-track, #D8CDBB); |
| } | | } |
|
| |
|
| .nv-lock__ring .nv-lock__ring-arc { | | .nv-lock__ring .nv-lock__ring-arc { |
| stroke: var(--nv-lock-ring, #8A6A4E);
| | stroke: var(--nv-lock-ring, #8A6A4E); |
| opacity: .92; | | opacity: .92; |
| stroke-linecap: butt; | | stroke-linecap: butt; |
| 第2,929行: |
第739行: |
| } | | } |
|
| |
|
| .nv-lock__body { | | .nv-term-preview-trigger { |
| flex: 1 1 auto; | | display: none; |
| min-height: 0; | | margin-inline-start: .25em; |
| overflow-y: auto; | | padding: 0 .15em; |
| padding: 10px 12px 12px; | | border: 0; |
| scrollbar-width: thin; | | background: transparent; |
| scrollbar-color: var(--nv-hair) transparent; | | color: inherit; |
| | font: inherit; |
| | font-size: .9em; |
| | opacity: .65; |
| | cursor: pointer; |
| } | | } |
|
| |
|
| .nv-lock__definition { | | @media (hover: none), (pointer: coarse) {.nv-term-preview-trigger { |
| margin: 0 !important;
| | display: inline-block; min-height: 28px; |
| color: var(--nv-ink) !important;
| | }} |
| font-family: var(--nv-body-font) !important;
| |
| font-size: 14px !important;
| |
| line-height: 1.8 !important;
| |
| text-align: left !important;
| |
| } | |
|
| |
|
| .nv-lock__term-link { | | .nv-lock__term-link { |
| color: var(--nv-link) !important;
| | color: var(--nv-link) !important; |
| | font-weight: 400; |
| text-decoration: none !important; | | text-decoration: none !important; |
| border-bottom: 1px dotted color-mix(in srgb, var(--nv-link) 45%, transparent); | | border-bottom: 1px dotted color-mix(in srgb, var(--nv-link) 45%, transparent); |
| 第2,955行: |
第765行: |
|
| |
|
| .nv-lock__term-link:hover { | | .nv-lock__term-link:hover { |
| text-decoration: underline !important;
| | text-decoration: underline !important; |
| text-underline-offset: 2px; | | text-underline-offset: 2px; |
| } | | } |
|
| |
|
| .nv-lock__term-link:focus-visible { | | .nv-lock__term-link:focus-visible { |
| outline: 2px solid var(--nv-link);
| | outline: 2px solid var(--nv-link); |
| outline-offset: 1px; | | outline-offset: 1px; |
| } | | } |
|
| |
|
| /* narrow screens: one readable panel, back arrow, still can go deeper */
| | @media (max-width: 720px) {.nv-lock { |
| @media (max-width: 720px) { | | width: min(480px, calc(100vw - 24px)) !important; |
| .nv-lock {
| |
| width: min(480px, calc(100vw - 24px)) !important;
| |
| max-height: min(72vh, 560px); | | max-height: min(72vh, 560px); |
| }
| | }} |
| } | |
|
| |
|
| .nv-lock--single { | | .nv-lock--single { |
| position: fixed !important;
| | position: fixed !important; |
| left: 12px !important; | | left: 12px !important; |
| right: 12px !important; | | right: 12px !important; |
| 第2,985行: |
第792行: |
|
| |
|
| .nv-lock--single .nv-lock__back { | | .nv-lock--single .nv-lock__back { |
| display: inline-flex !important;
| | display: inline-flex !important; |
| min-width: 28px; | | min-width: 28px; |
| min-height: 28px; | | min-height: 28px; |
| 第2,991行: |
第798行: |
|
| |
|
| .nv-lock--single .nv-lock__ring { | | .nv-lock--single .nv-lock__ring { |
| display: none !important;
| | display: none !important; |
| }
| |
| | |
| @media (prefers-reduced-motion: reduce) {
| |
| .nv-lock,
| |
| .nv-lock * {
| |
| animation: none !important;
| |
| transition: none !important;
| |
| }
| |
| }
| |
| .nv-lock__back[hidden] { display: none !important; }
| |
| .nv-lock__title:focus-visible { outline: 2px solid var(--nv-accent); outline-offset: 2px; }
| |
| | |
| /* 2026-10-25 wide-table / rule-book hierarchy task.
| |
| Appended after the accepted reading-rhythm and nv-lock layers. */
| |
| | |
| /* -------------------------------------------------------------------------
| |
| 1. Use the real content column width; prose gets a comfortable cap while
| |
| tables and infoboxes use the available width.
| |
| ------------------------------------------------------------------------- */
| |
| html body .mw-parser-output {
| |
| width: 100% !important;
| |
| max-width: none !important;
| |
| }
| |
| | |
| html body .mw-parser-output > p,
| |
| html body .mw-parser-output > ul,
| |
| html body .mw-parser-output > ol,
| |
| html body .mw-parser-output > dl,
| |
| html body .mw-parser-output > blockquote,
| |
| html body .mw-parser-output > .nv-notice,
| |
| html body .mw-parser-output .citizen-section-body > p,
| |
| html body .mw-parser-output .citizen-section-body > ul,
| |
| html body .mw-parser-output .citizen-section-body > ol,
| |
| html body .mw-parser-output .citizen-section-body > dl,
| |
| html body .mw-parser-output .citizen-section-body > blockquote,
| |
| html body .mw-parser-output .citizen-section-body > .nv-notice {
| |
| max-width: 56em;
| |
| }
| |
| | |
| /* -------------------------------------------------------------------------
| |
| 2. One local horizontal scroller only. Tabber must not scroll or clip.
| |
| ------------------------------------------------------------------------- */
| |
| html body .mw-parser-output .tabber,
| |
| html body .mw-parser-output .tabber__section,
| |
| html body .mw-parser-output .tabber__panel {
| |
| width: 100% !important;
| |
| max-width: 100% !important;
| |
| overflow: visible !important;
| |
| }
| |
| | |
| html body .mw-parser-output .tabber__section {
| |
| display: block !important;
| |
| }
| |
| | |
| html body .mw-parser-output .tabber__panel {
| |
| display: block !important;
| |
| }
| |
| | |
| html body .mw-parser-output .tabber__panel[hidden] {
| |
| display: none !important;
| |
| }
| |
| | |
| /* -------------------------------------------------------------------------
| |
| 3. Rule-book heading language: one warm-ink line fading to transparent.
| |
| ------------------------------------------------------------------------- */
| |
| html body .citizen-page-header {
| |
| border-bottom: 0 !important;
| |
| padding-bottom: 14px !important;
| |
| }
| |
| | |
| html body .citizen-page-header::after {
| |
| content: none !important;
| |
| display: none !important;
| |
| }
| |
| | |
| /* 04: the content grid and page header share one centered frame inside
| |
| #content (which already sits to the right of the fixed rail). The frame
| |
| widths are the existing grids: 1045 + 20 gap + 240 TOC + 2*32 padding,
| |
| or 1080 + 2*32 without a TOC. At the Citizen mobile-size breakpoint the
| |
| frame is simply 100%. No per-page offset and no justify-content: start. */
| |
| html body:has(#citizen-toc) {
| |
| --nv-content-frame: 1369px;
| |
| }
| |
| | |
| html body {
| |
| --nv-content-frame: 1144px;
| |
| }
| |
| | |
| html body .citizen-body-container,
| |
| html body .citizen-page-header {
| |
| box-sizing: border-box !important;
| |
| width: min(var(--nv-content-frame), 100%) !important;
| |
| max-width: 100% !important;
| |
| margin-left: auto !important;
| |
| margin-right: auto !important;
| |
| }
| |
| | |
| html body .citizen-body-container {
| |
| justify-content: center !important;
| |
| }
| |
| | |
| @media (max-width: 1119.98px) {
| |
| html body {
| |
| --nv-content-frame: 100%;
| |
| }
| |
| | |
| html body .citizen-page-header {
| |
| margin-top: 0 !important;
| |
| }
| |
| }
| |
| | |
| /* -------------------------------------------------------------------------
| |
| 4. Content links: regular weight, including nested legacy bold wrappers.
| |
| Heading/navigation links keep their own hierarchy.
| |
| ------------------------------------------------------------------------- */
| |
| html body .mw-parser-output :is(p, li, dt, dd, td, th, figcaption, .nv-notice,
| |
| .nv-infobox, .nv-term, .nv-table-scroll) a,
| |
| html body .mw-parser-output :is(p, li, dt, dd, td, th, figcaption, .nv-notice,
| |
| .nv-infobox, .nv-term, .nv-table-scroll) a:visited,
| |
| html body .mw-parser-output a strong,
| |
| html body .mw-parser-output a b,
| |
| html body .mw-parser-output strong a,
| |
| html body .mw-parser-output b a {
| |
| font-weight: 400 !important;
| |
| }
| |
| | |
| html body .mw-parser-output :is(p, li, dt, dd, td, th, figcaption, .nv-notice,
| |
| .nv-infobox, .nv-term, .nv-table-scroll) a:visited {
| |
| color: var(--nv-link) !important;
| |
| }
| |
| | |
| /* -------------------------------------------------------------------------
| |
| 5. Infobox: wider value column, natural left alignment for long English.
| |
| ------------------------------------------------------------------------- */
| |
| | |
| /* -------------------------------------------------------------------------
| |
| 7. Mobile: same hierarchy, no page-level horizontal drift.
| |
| ------------------------------------------------------------------------- */
| |
| @media (max-width: 720px) {
| |
| html body .mw-parser-output > p,
| |
| html body .mw-parser-output > ul,
| |
| html body .mw-parser-output > ol,
| |
| html body .mw-parser-output > dl,
| |
| html body .mw-parser-output > blockquote,
| |
| html body .mw-parser-output > .nv-notice {
| |
| max-width: none;
| |
| }
| |
| | |
| }
| |
| /* P0: at the real Citizen mobile-size breakpoint, the bottom tool shell is
| |
| the fixed reading toolbar, not the desktop page-actions card. Keep the
| |
| warm paper tokens across that actual breakpoint (1119.98px). */
| |
| @media (max-width: 1119.98px) {
| |
| html body.action-view .citizen-header::after {
| |
| background: var(--nv-paper) !important;
| |
| -webkit-backdrop-filter: none !important;
| |
| backdrop-filter: none !important;
| |
| }
| |
| | |
| html body .citizen-page-actions {
| |
| background: var(--nv-paper-raised) !important;
| |
| border: 1px solid var(--nv-hair) !important;
| |
| box-shadow: none !important;
| |
| color: var(--nv-ink-muted) !important;
| |
| }
| |
| | |
| html body .citizen-page-actions .cdx-button,
| |
| html body .citizen-page-actions a,
| |
| html body .citizen-page-actions button {
| |
| background: transparent !important;
| |
| color: var(--nv-ink-muted) !important;
| |
| border-color: transparent !important;
| |
| box-shadow: none !important;
| |
| }
| |
| | |
| html body .citizen-page-actions .cdx-button:hover,
| |
| html body .citizen-page-actions a:hover,
| |
| html body .citizen-page-actions button:hover,
| |
| html body .citizen-page-actions .cdx-button:active,
| |
| html body .citizen-page-actions a:active,
| |
| html body .citizen-page-actions button:active {
| |
| background: var(--nv-paper-deep) !important;
| |
| color: var(--nv-ink) !important;
| |
| border-color: var(--nv-hair) !important;
| |
| }
| |
| | |
| html body .citizen-page-actions .cdx-button:focus-visible,
| |
| html body .citizen-page-actions a:focus-visible,
| |
| html body .citizen-page-actions button:focus-visible {
| |
| outline: 2px solid var(--nv-accent) !important;
| |
| outline-offset: 2px !important;
| |
| color: var(--nv-ink) !important;
| |
| }
| |
| | |
| html body #citizen-page-actions-more__card,
| |
| html body .citizen-page-actions .citizen-menu__card {
| |
| background: var(--nv-paper-raised) !important;
| |
| border: 1px solid var(--nv-hair) !important;
| |
| box-shadow: none !important;
| |
| backdrop-filter: none !important;
| |
| -webkit-backdrop-filter: none !important;
| |
| color: var(--nv-ink) !important;
| |
| }
| |
| | |
| html body #citizen-page-actions-more__card .citizen-menu__card-content,
| |
| html body #citizen-page-actions-more__card .citizen-menu__heading,
| |
| html body #citizen-page-actions-more__card .citizen-menu__content {
| |
| background: transparent !important;
| |
| color: var(--nv-ink) !important;
| |
| }
| |
| | |
| html body #citizen-toc .citizen-dropdown-summary {
| |
| background: var(--nv-paper-raised) !important;
| |
| border: 1px solid var(--nv-hair) !important;
| |
| color: var(--nv-ink) !important;
| |
| box-shadow: none !important;
| |
| }
| |
| | |
| html body #citizen-toc .citizen-dropdown-summary:hover,
| |
| html body #citizen-toc .citizen-dropdown-summary:active {
| |
| background: var(--nv-paper-deep) !important;
| |
| color: var(--nv-ink) !important;
| |
| }
| |
| | |
| html body #citizen-toc .citizen-dropdown-summary:focus-visible {
| |
| outline: 2px solid var(--nv-accent) !important;
| |
| outline-offset: 2px !important;
| |
| }
| |
| | |
| html body.action-view .citizen-header .cdx-button {
| |
| background: transparent !important;
| |
| color: var(--nv-ink-muted) !important;
| |
| border-color: transparent !important;
| |
| box-shadow: none !important;
| |
| }
| |
| | |
| html body.action-view .citizen-header .cdx-button:hover,
| |
| html body.action-view .citizen-header .cdx-button:active {
| |
| background: var(--nv-paper-deep) !important;
| |
| color: var(--nv-ink) !important;
| |
| border-color: var(--nv-hair) !important;
| |
| }
| |
| | |
| html body.action-view .citizen-header .cdx-button:focus-visible {
| |
| outline: 2px solid var(--nv-accent) !important;
| |
| outline-offset: 2px !important;
| |
| background: var(--nv-paper-raised) !important;
| |
| color: var(--nv-ink) !important;
| |
| }
| |
| | |
| html body.action-view .citizen-header .citizen-ui-icon::before {
| |
| background: currentColor !important;
| |
| }
| |
| } | | } |
|
| |
|
| /* ==========================================================================
| | .nv-lock__back[hidden] { |
| 00 paper/ink visual pass (appended after accepted layout rules)
| | display: none !important; |
| ========================================================================== */
| |
| | |
| /* Low-saturation ink-blue links; visited distinguishable, never bolder. */
| |
| :root {
| |
| --nv-link: #3E5A6E;
| |
| --nv-link-visited: #6B5B72;
| |
| --nv-link-new: #A34C3D;
| |
| }
| |
| | |
| html.skin-theme-clientpref-night,
| |
| html.skin-theme-clientpref-black {
| |
| --nv-link: #8DB0EE;
| |
| --nv-link-visited: #B4A3E6;
| |
| --nv-link-new: #F2877B;
| |
| } | | } |
|
| |
|
| @media (prefers-color-scheme: dark) {
| | .nv-lock__title:focus-visible { |
| html.skin-theme-clientpref-os {
| | outline: 2px solid var(--nv-accent); outline-offset: 2px; |
| --nv-link: #8DB0EE;
| |
| --nv-link-visited: #B4A3E6;
| |
| --nv-link-new: #F2877B;
| |
| }
| |
| } | | } |
|
| |
|
| /* Optional light short-notice variant: no full tinted card. */
| |
|
| |
| /* Reusable responsive short-list (native ul/ol; DOM order preserved). */
| |
| html body .mw-parser-output .nv-shortlist { | | html body .mw-parser-output .nv-shortlist { |
| display: grid;
| | display: grid; |
| grid-template-columns: repeat(auto-fit, minmax(14em, 1fr)); | | grid-template-columns: repeat(auto-fit, minmax(14em, 1fr)); |
| column-gap: 2.4rem; | | column-gap: 2.4rem; |
| 第3,287行: |
第820行: |
|
| |
|
| html body .mw-parser-output .nv-shortlist > li { | | html body .mw-parser-output .nv-shortlist > li { |
| margin: 0;
| | margin: 0; |
| padding: .42rem 0; | | padding: .42rem 0; |
| border-bottom: 1px solid color-mix(in srgb, var(--nv-hair) 72%, transparent); | | border-bottom: 1px solid color-mix(in srgb, var(--nv-hair) 72%, transparent); |
| 第3,294行: |
第827行: |
|
| |
|
| html body .mw-parser-output .nv-shortlist > li:last-child { | | html body .mw-parser-output .nv-shortlist > li:last-child { |
| border-bottom-color: transparent;
| | border-bottom-color: transparent; |
| } | | } |
|
| |
|
| /* Reusable native definition-list rhythm (term + explanation). */
| |
| html body .mw-parser-output .nv-deflist { | | html body .mw-parser-output .nv-deflist { |
| display: grid;
| | display: grid; |
| grid-template-columns: minmax(7em, 10em) minmax(0, 1fr); | | grid-template-columns: minmax(7em, 10em) minmax(0, 1fr); |
| column-gap: 1.2rem; | | column-gap: 1.2rem; |
| 第3,306行: |
第838行: |
|
| |
|
| html body .mw-parser-output .nv-deflist dt { | | html body .mw-parser-output .nv-deflist dt { |
| margin: 0;
| | margin: 0; |
| padding: .48rem 0; | | padding: .48rem 0; |
| border-top: 1px solid color-mix(in srgb, var(--nv-hair) 72%, transparent); | | border-top: 1px solid color-mix(in srgb, var(--nv-hair) 72%, transparent); |
| 第3,317行: |
第849行: |
|
| |
|
| html body .mw-parser-output .nv-deflist dd { | | html body .mw-parser-output .nv-deflist dd { |
| margin: 0;
| | margin: 0; |
| padding: .48rem 0; | | padding: .48rem 0; |
| border-top: 1px solid color-mix(in srgb, var(--nv-hair) 72%, transparent); | | border-top: 1px solid color-mix(in srgb, var(--nv-hair) 72%, transparent); |
| 第3,327行: |
第859行: |
| html body .mw-parser-output .nv-deflist dt:first-of-type, | | html body .mw-parser-output .nv-deflist dt:first-of-type, |
| html body .mw-parser-output .nv-deflist dd:first-of-type { | | html body .mw-parser-output .nv-deflist dd:first-of-type { |
| border-top: 0;
| | border-top: 0; |
| } | | } |
|
| |
|
| /* Info-box: quieter field rules, group spacing via padding rather than a wall
| | @media (max-width: 720px) {html body .mw-parser-output .nv-shortlist { |
| of heavy lines. The data/order is untouched. */
| | grid-template-columns: 1fr; |
| | |
| @media (max-width: 720px) { | |
| html body .mw-parser-output .nv-shortlist {
| |
| grid-template-columns: 1fr;
| |
| column-gap: 0; | | column-gap: 0; |
| }
| | }html body .mw-parser-output .nv-deflist { |
| | | display: block; |
| html body .mw-parser-output .nv-deflist {
| | }html body .mw-parser-output .nv-deflist dt { |
| display: block;
| | border-top: 0; |
| }
| |
| | |
| html body .mw-parser-output .nv-deflist dt {
| |
| border-top: 0;
| |
| padding-bottom: .1rem; | | padding-bottom: .1rem; |
| }
| | }html body .mw-parser-output .nv-deflist dd { |
| | | border-top: 0; |
| html body .mw-parser-output .nv-deflist dd {
| |
| border-top: 0;
| |
| padding-top: 0; | | padding-top: 0; |
| padding-bottom: .8rem; | | padding-bottom: .8rem; |
| }
| | }} |
| } | |
|
| |
|
| /* -------------------------------------------------------------------------
| |
| 6. Country infobox: 议会构成 full-width field row.
| |
| 模板原生输出(模板:议会席位 布局=缩略)+ 模板:组件/信息框/行 宽=1;
| |
| 不再有任何 JS DOM 搬运、重复表格、折叠全表或图例表。
| |
| ------------------------------------------------------------------------- */
| |
|
| |
| /* ===== B route append: term UI ===== */
| |
| /* ==========================================================================
| |
| B 路线 UI 减负 append 草案(供 Lead 集成到 MediaWiki:Common.css 末尾)
| |
| 1) 术语库首页:简洁检索 + 浏览词库分类词名
| |
| 2) 词条定义段:从“定义卡”恢复为普通导言段
| |
| 3) 悬浮卡:完整词条正文的有界阅读与内嵌表格/图片约束
| |
| 仅新增选择器;不改已接受的 nv-lock 圆环/锁定/关闭手感与既有页面壳。
| |
| ========================================================================== */
| |
|
| |
| /* —— 1. 术语库首页:检索 + 浏览词库(词名列表,不做定义卡墙) —— */
| |
| /* 注意:本页正文仍是 .mw-parser-output(读取宽度令牌),索引单独限宽。 */
| |
| .page-术语库 #nv-term-index { | | .page-术语库 #nv-term-index { |
| max-width: 760px;
| | max-width: 760px; |
| margin: 1.4rem 0 2.2rem; | | margin: 1.4rem 0 2.2rem; |
| color: var(--nv-ink); | | color: var(--nv-ink); |
| 第3,379行: |
第883行: |
| } | | } |
|
| |
|
| /* —— 3. 悬浮卡:完整词条正文的卡内阅读(有界滚动,不硬截摘要) —— */
| | .nv-lock__article > :first-child { |
| .nv-lock__body { | | margin-top: 0; |
| padding: 10px 14px 14px;
| |
| } | | } |
|
| |
|
| .nv-lock__article { | | .nv-lock__article > :last-child { |
| color: var(--nv-ink);
| | margin-bottom: 0; |
| font-family: var(--nv-body-font);
| |
| font-size: 13.5px;
| |
| line-height: 1.78;
| |
| overflow-wrap: break-word;
| |
| } | | } |
|
| |
|
| .nv-lock__article > :first-child { margin-top: 0; } | | .nv-lock__article ul, |
| .nv-lock__article > :last-child { margin-bottom: 0; } | | .nv-lock__article ol { |
| | margin: 0 0 0.62rem; padding-left: 1.25rem; |
| | } |
|
| |
|
| .nv-lock__article p { margin: 0 0 0.62rem; } | | .nv-lock__article li { |
| | | margin: 0 0 0.18rem; |
| .nv-lock__article ul,
| | } |
| .nv-lock__article ol { margin: 0 0 0.62rem; padding-left: 1.25rem; }
| |
| .nv-lock__article li { margin: 0 0 0.18rem; }
| |
|
| |
|
| .nv-lock__article blockquote { | | .nv-lock__article blockquote { |
| margin: 0.5rem 0;
| | margin: 0.5rem 0; |
| padding: 0.2rem 0 0.2rem 0.7rem; | | padding: 0.2rem 0 0.2rem 0.7rem; |
| border-left: 2px solid var(--nv-hair); | | border-left: 2px solid var(--nv-hair); |
| 第3,410行: |
第909行: |
| .nv-lock__article img, | | .nv-lock__article img, |
| .nv-lock__article video { | | .nv-lock__article video { |
| max-width: 100% !important;
| | max-width: 100% !important; |
| height: auto !important; | | height: auto !important; |
| }
| |
|
| |
| .nv-lock__table {
| |
| max-width: 100%;
| |
| margin: 0.5rem 0 0.7rem;
| |
| overflow-x: auto;
| |
| overflow-y: hidden;
| |
| scrollbar-width: thin;
| |
| scrollbar-color: var(--nv-hair) transparent;
| |
| }
| |
|
| |
| .nv-lock__article table {
| |
| border-collapse: collapse;
| |
| max-width: none;
| |
| font-size: 0.8rem;
| |
| line-height: 1.5;
| |
| } | | } |
|
| |
|
| .nv-lock__article table th, | | .nv-lock__article table th, |
| .nv-lock__article table td { | | .nv-lock__article table td { |
| border: 1px solid var(--nv-hair);
| | border: 1px solid var(--nv-hair); |
| padding: 0.22rem 0.38rem; | | padding: 0.22rem 0.38rem; |
| vertical-align: top; | | vertical-align: top; |
| } | | } |
|
| |
|
| .nv-lock__article table th { background: var(--nv-paper-deep); font-weight: 700; } | | .nv-lock__article table th { |
| | background: var(--nv-paper-deep); font-weight: 700; |
| | } |
|
| |
|
| .nv-lock__loading, | | .nv-lock__loading, |
| .nv-lock__error { | | .nv-lock__error { |
| margin: 0;
| | margin: 0; |
| color: var(--nv-ink-muted); | | color: var(--nv-ink-muted); |
| font-size: 12.5px; | | font-size: 12.5px; |
| } | | } |
|
| |
|
| .nv-lock__error { color: var(--nv-danger); } | | .nv-lock__error { |
| | color: var(--nv-danger); |
| | } |
|
| |
|
| .nv-lock__article a { | | .nv-lock__article a { |
| color: var(--nv-link) !important;
| | color: var(--nv-link) !important; |
| text-decoration: none !important; | | text-decoration: none !important; |
| border-bottom: 1px dotted color-mix(in srgb, var(--nv-link) 40%, transparent); | | border-bottom: 1px dotted color-mix(in srgb, var(--nv-link) 40%, transparent); |
| } | | } |
|
| |
|
| .nv-lock__article a:hover { text-decoration: underline !important; text-underline-offset: 2px; } | | .nv-lock__article a:hover { |
| | text-decoration: underline !important; text-underline-offset: 2px; |
| | } |
|
| |
|
| .nv-lock__article a.nv-lock__term-link { | | .nv-lock__article a.nv-lock__term-link { |
| border-bottom-style: solid;
| | border-bottom-style: solid; |
| border-bottom-color: color-mix(in srgb, var(--nv-link) 60%, transparent); | | border-bottom-color: color-mix(in srgb, var(--nv-link) 60%, transparent); |
| } | | } |
|
| |
|
| .nv-lock__article sup.reference { font-size: 0.7em; } | | .nv-lock__article sup.reference { |
| | | font-size: 0.7em; |
| @media (max-width: 720px) {
| |
| .nv-lock__article { font-size: 13px; line-height: 1.75; }
| |
| }
| |
| | |
| /* ===== /B route append: term UI ===== */
| |
| | |
| /* ===== D route append: brand v1 ===== */
| |
| /* ==========================================================================
| |
| 品牌静态接入(2026-10-26 起已部署;保留单一品牌层)
| |
| --------------------------------------------------------------------------
| |
| 资产来源(2026-10-25 用户确认定稿,个人项目/Novark/品牌资产):
| |
| · 主徽标 v3 logo/novark-symbol-black.svg / -white.svg
| |
| · 横版署名(字标 v8)logo/novark-horizontal-black.svg / -white.svg
| |
| · 辅助标记 v1 derivatives/black/01-core.svg / white/01-core.svg
| |
| 全部为单色透明底 SVG,等比缩放,未重绘、未改比例、未压缩成位图。
| |
| 反白版本用于深色(夜)底;本片段按 skin-theme 切换,黑/白各自对应日夜。
| |
| 小尺寸取舍(实测见 work/D/evidence/brand/):
| |
| · 页头 40px 按钮:用 28px 的 01-core 辅助标记(官方已有适配识别),
| |
| 不用完整主徽标;低于 24px 不显示(避免糊)。
| |
| · 导航抽屉:主徽标 v3 48px;低于正式说明的 128px 建议线,属导航小尺寸适配,
| |
| 实样见 evidence/brand/contact-sheet-1x.png。
| |
| · 首页报头:完整横版署名,桌面 404×128px,390 手机按栏宽 358px→113px 等比。
| |
| · favicon:站点默认 favicon 暂不改动;如需替换,候选为 01-core 32px PNG
| |
| (evidence/brand/favicon/),不直接把主徽标压到 16/32px。
| |
| 未包含:4.15s 入场动画(首轮静态整合;动画留独立展示页)。
| |
| 集成方式:整段追加到 MediaWiki:Common.css 末尾;与 D-heading-tokens.css、
| |
| 首页 wikitext patch 一起启用(首页署名需要 wikitext 中的 .novark-signature 节点)。
| |
| ========================================================================== */
| |
| | |
| :root {
| |
| /* asset: derivatives/black/01-core.svg · bytes=1181 · sha256=1a0d44ef7a9ddfb824d26ad5309c7a1089ce89cafd33661b02ed383c63d9335f */
| |
| --novark-core-mark: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAzMjAgMzIwIiB3aWR0aD0iMzIwIiBoZWlnaHQ9IjMyMCIgcm9sZT0iaW1nIiBhcmlhLWxhYmVsbGVkYnk9InRpdGxlIj48dGl0bGUgaWQ9InRpdGxlIj7oh6rmlrDljZrnianppoYgwrcg5Lit5b+D6L6F5Yqp5qCH6K6wPC90aXRsZT48ZyBmaWxsPSIjMDAwMDAwIj48ZyB0cmFuc2Zvcm09InRyYW5zbGF0ZSgxNjAgMTYwKSBzY2FsZSgwLjQ2NjY2NjY2NjY2NjY2NjcpIHRyYW5zbGF0ZSgtNjI3IC02MjUpIj48cGF0aCBkPSJNNjU0Ljg3NSwzNDguMDIyIEw4NzQuODA4LDQ3NS4wMDAgTDgwMS40OTcsNTE3LjMyNiBaIi8+PHBhdGggZD0iTTYzMy4wMDAsMzQxLjA5MyBMNzcyLjMzMSw1MDEuOTc4IEw2MzMuMDAwLDQyMS41MzYgWiIvPjxwYXRoIGQ9Ik04ODAuODA4LDQ4NS4zOTIgTDg4MC44MDgsNzM5LjM0OSBMODA3LjQ5Nyw1MjcuNzE4IFoiLz48cGF0aCBkPSJNODc1Ljg3MCw3NjEuNzU3IEw4MDYuMjA1LDcyMS41MzYgTDgwNi4yMDUsNTYwLjY1MSBaIi8+PHBhdGggZD0iTTg1Mi45MzMsNzg3LjYyOSBMNjMzLjAwMCw5MTQuNjA4IEw2MzMuMDAwLDgyOS45NTUgWiIvPjxwYXRoIGQ9Ik04NjkuODcwLDc3Mi4xNDkgTDY2MC44NzUsODEyLjM3MSBMODAwLjIwNSw3MzEuOTI4IFoiLz48cGF0aCBkPSJNNjIxLjAwMCw5MTQuNjA4IEw0MDEuMDY3LDc4Ny42MjkgTDYyMS4wMDAsODI5Ljk1NSBaIi8+PHBhdGggZD0iTTM4NC4xMzAsNzcyLjE0OSBMNDUzLjc5NSw3MzEuOTI4IEw1OTMuMTI1LDgxMi4zNzEgWiIvPjxwYXRoIGQ9Ik0zNzMuMTkyLDczOS4zNDkgTDM3My4xOTIsNDg1LjM5MiBMNDQ2LjUwMyw1MjcuNzE4IFoiLz48cGF0aCBkPSJNMzc4LjEzMCw3NjEuNzU3IEw0NDcuNzk1LDU2MC42NTEgTDQ0Ny43OTUsNzIxLjUzNiBaIi8+PHBhdGggZD0iTTM3OS4xOTIsNDc1LjAwMCBMNTk5LjEyNSwzNDguMDIyIEw0NTIuNTAzLDUxNy4zMjYgWiIvPjxwYXRoIGQ9Ik02MjEuMDAwLDM0MS4wOTMgTDYyMS4wMDAsNDIxLjUzNiBMNDgxLjY2OSw1MDEuOTc4IFoiLz48cGF0aCBkPSJNNjI3LjAwMCw1NTYuMDAwIEw2ODYuNzU2LDU5MC41MDAgTDY4Ni43NTYsNjU5LjUwMCBMNjI3LjAwMCw2OTQuMDAwIEw1NjcuMjQ0LDY1OS41MDAgTDU2Ny4yNDQsNTkwLjUwMCBaIi8+PC9nPjwvZz48L3N2Zz4=");
| |
| /* asset: logo/novark-symbol-black.svg · bytes=2586 · sha256=b6012e6fb415110d5980e80777acbf6eb403372fe238eacedc9d167e41a246b8 */
| |
| --novark-symbol: url("/images/wiki-brand/novark-symbol-b6012e6fb415.svg");
| |
| /* asset: logo/novark-horizontal-black.svg · bytes=8768 · sha256=149c18476fae4494604493fb64c01fc1b3c96cee3dbc8d84d4cf7dbc2e81d764 */
| |
| --novark-horizontal: url("/images/wiki-brand/novark-horizontal-149c18476fae.svg");
| |
| }
| |
| | |
| /* 夜间(含 OS 深色)切换到官方反白静态资产 */
| |
| html.skin-theme-clientpref-night,
| |
| html.skin-theme-clientpref-black {
| |
| --novark-core-mark: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAzMjAgMzIwIiB3aWR0aD0iMzIwIiBoZWlnaHQ9IjMyMCIgcm9sZT0iaW1nIiBhcmlhLWxhYmVsbGVkYnk9InRpdGxlIj48dGl0bGUgaWQ9InRpdGxlIj7oh6rmlrDljZrnianppoYgwrcg5Lit5b+D6L6F5Yqp5qCH6K6wPC90aXRsZT48ZyBmaWxsPSIjZmZmZmZmIj48ZyB0cmFuc2Zvcm09InRyYW5zbGF0ZSgxNjAgMTYwKSBzY2FsZSgwLjQ2NjY2NjY2NjY2NjY2NjcpIHRyYW5zbGF0ZSgtNjI3IC02MjUpIj48cGF0aCBkPSJNNjU0Ljg3NSwzNDguMDIyIEw4NzQuODA4LDQ3NS4wMDAgTDgwMS40OTcsNTE3LjMyNiBaIi8+PHBhdGggZD0iTTYzMy4wMDAsMzQxLjA5MyBMNzcyLjMzMSw1MDEuOTc4IEw2MzMuMDAwLDQyMS41MzYgWiIvPjxwYXRoIGQ9Ik04ODAuODA4LDQ4NS4zOTIgTDg4MC44MDgsNzM5LjM0OSBMODA3LjQ5Nyw1MjcuNzE4IFoiLz48cGF0aCBkPSJNODc1Ljg3MCw3NjEuNzU3IEw4MDYuMjA1LDcyMS41MzYgTDgwNi4yMDUsNTYwLjY1MSBaIi8+PHBhdGggZD0iTTg1Mi45MzMsNzg3LjYyOSBMNjMzLjAwMCw5MTQuNjA4IEw2MzMuMDAwLDgyOS45NTUgWiIvPjxwYXRoIGQ9Ik04NjkuODcwLDc3Mi4xNDkgTDY2MC44NzUsODEyLjM3MSBMODAwLjIwNSw3MzEuOTI4IFoiLz48cGF0aCBkPSJNNjIxLjAwMCw5MTQuNjA4IEw0MDEuMDY3LDc4Ny42MjkgTDYyMS4wMDAsODI5Ljk1NSBaIi8+PHBhdGggZD0iTTM4NC4xMzAsNzcyLjE0OSBMNDUzLjc5NSw3MzEuOTI4IEw1OTMuMTI1LDgxMi4zNzEgWiIvPjxwYXRoIGQ9Ik0zNzMuMTkyLDczOS4zNDkgTDM3My4xOTIsNDg1LjM5MiBMNDQ2LjUwMyw1MjcuNzE4IFoiLz48cGF0aCBkPSJNMzc4LjEzMCw3NjEuNzU3IEw0NDcuNzk1LDU2MC42NTEgTDQ0Ny43OTUsNzIxLjUzNiBaIi8+PHBhdGggZD0iTTM3OS4xOTIsNDc1LjAwMCBMNTk5LjEyNSwzNDguMDIyIEw0NTIuNTAzLDUxNy4zMjYgWiIvPjxwYXRoIGQ9Ik02MjEuMDAwLDM0MS4wOTMgTDYyMS4wMDAsNDIxLjUzNiBMNDgxLjY2OSw1MDEuOTc4IFoiLz48cGF0aCBkPSJNNjI3LjAwMCw1NTYuMDAwIEw2ODYuNzU2LDU5MC41MDAgTDY4Ni43NTYsNjU5LjUwMCBMNjI3LjAwMCw2OTQuMDAwIEw1NjcuMjQ0LDY1OS41MDAgTDU2Ny4yNDQsNTkwLjUwMCBaIi8+PC9nPjwvZz48L3N2Zz4=");
| |
| --novark-symbol: url("/images/wiki-brand/novark-symbol-a3dbecb97c08.svg");
| |
| --novark-horizontal: url("/images/wiki-brand/novark-horizontal-cd8851dbbb06.svg");
| |
| }
| |
| | |
| @media (prefers-color-scheme: dark) {
| |
| html.skin-theme-clientpref-os {
| |
| --novark-core-mark: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAzMjAgMzIwIiB3aWR0aD0iMzIwIiBoZWlnaHQ9IjMyMCIgcm9sZT0iaW1nIiBhcmlhLWxhYmVsbGVkYnk9InRpdGxlIj48dGl0bGUgaWQ9InRpdGxlIj7oh6rmlrDljZrnianppoYgwrcg5Lit5b+D6L6F5Yqp5qCH6K6wPC90aXRsZT48ZyBmaWxsPSIjZmZmZmZmIj48ZyB0cmFuc2Zvcm09InRyYW5zbGF0ZSgxNjAgMTYwKSBzY2FsZSgwLjQ2NjY2NjY2NjY2NjY2NjcpIHRyYW5zbGF0ZSgtNjI3IC02MjUpIj48cGF0aCBkPSJNNjU0Ljg3NSwzNDguMDIyIEw4NzQuODA4LDQ3NS4wMDAgTDgwMS40OTcsNTE3LjMyNiBaIi8+PHBhdGggZD0iTTYzMy4wMDAsMzQxLjA5MyBMNzcyLjMzMSw1MDEuOTc4IEw2MzMuMDAwLDQyMS41MzYgWiIvPjxwYXRoIGQ9Ik04ODAuODA4LDQ4NS4zOTIgTDg4MC44MDgsNzM5LjM0OSBMODA3LjQ5Nyw1MjcuNzE4IFoiLz48cGF0aCBkPSJNODc1Ljg3MCw3NjEuNzU3IEw4MDYuMjA1LDcyMS41MzYgTDgwNi4yMDUsNTYwLjY1MSBaIi8+PHBhdGggZD0iTTg1Mi45MzMsNzg3LjYyOSBMNjMzLjAwMCw5MTQuNjA4IEw2MzMuMDAwLDgyOS45NTUgWiIvPjxwYXRoIGQ9Ik04NjkuODcwLDc3Mi4xNDkgTDY2MC44NzUsODEyLjM3MSBMODAwLjIwNSw3MzEuOTI4IFoiLz48cGF0aCBkPSJNNjIxLjAwMCw5MTQuNjA4IEw0MDEuMDY3LDc4Ny42MjkgTDYyMS4wMDAsODI5Ljk1NSBaIi8+PHBhdGggZD0iTTM4NC4xMzAsNzcyLjE0OSBMNDUzLjc5NSw3MzEuOTI4IEw1OTMuMTI1LDgxMi4zNzEgWiIvPjxwYXRoIGQ9Ik0zNzMuMTkyLDczOS4zNDkgTDM3My4xOTIsNDg1LjM5MiBMNDQ2LjUwMyw1MjcuNzE4IFoiLz48cGF0aCBkPSJNMzc4LjEzMCw3NjEuNzU3IEw0NDcuNzk1LDU2MC42NTEgTDQ0Ny43OTUsNzIxLjUzNiBaIi8+PHBhdGggZD0iTTM3OS4xOTIsNDc1LjAwMCBMNTk5LjEyNSwzNDguMDIyIEw0NTIuNTAzLDUxNy4zMjYgWiIvPjxwYXRoIGQ9Ik02MjEuMDAwLDM0MS4wOTMgTDYyMS4wMDAsNDIxLjUzNiBMNDgxLjY2OSw1MDEuOTc4IFoiLz48cGF0aCBkPSJNNjI3LjAwMCw1NTYuMDAwIEw2ODYuNzU2LDU5MC41MDAgTDY4Ni43NTYsNjU5LjUwMCBMNjI3LjAwMCw2OTQuMDAwIEw1NjcuMjQ0LDY1OS41MDAgTDU2Ny4yNDQsNTkwLjUwMCBaIi8+PC9nPjwvZz48L3N2Zz4=");
| |
| --novark-symbol: url("/images/wiki-brand/novark-symbol-a3dbecb97c08.svg");
| |
| --novark-horizontal: url("/images/wiki-brand/novark-horizontal-cd8851dbbb06.svg");
| |
| }
| |
| }
| |
| | |
| /* ---- 1. 站点标识(页头左侧固定栏 / 手机底栏):01-core 辅助标记 28px ---- */
| |
| html body .citizen-header .citizen-header__logo a.mw-logo {
| |
| position: relative !important;
| |
| background-image: var(--novark-core-mark) !important;
| |
| background-size: 28px 28px !important;
| |
| background-position: center !important;
| |
| background-repeat: no-repeat !important;
| |
| }
| |
| | |
| html body .citizen-header .citizen-header__logo a.mw-logo > .mw-logo-icon,
| |
| html body .citizen-header .citizen-header__logo a.mw-logo > .mw-ui-icon-home,
| |
| html body .citizen-header .citizen-header__logo .mw-ui-icon {
| |
| display: none !important;
| |
| }
| |
| | |
| @media (max-width: 24px) {
| |
| /* 理论保护:按钮不可见时不放大标记 */
| |
| html body .citizen-header .citizen-header__logo a.mw-logo {
| |
| background-size: 0 0 !important;
| |
| }
| |
| }
| |
| | |
| /* ---- 2. 导航抽屉:主徽标 v3 48px(夜间自动反白)+ 保留文字字标可访问名 ---- */
| |
| html body .citizen-drawer .citizen-drawer__logo {
| |
| display: block !important;
| |
| flex: 0 0 auto !important;
| |
| width: 48px !important;
| |
| height: 48px !important;
| |
| min-width: 48px !important;
| |
| background-image: var(--novark-symbol) !important;
| |
| background-size: contain !important;
| |
| background-position: center !important;
| |
| background-repeat: no-repeat !important;
| |
| }
| |
| | |
| html body .citizen-drawer .citizen-drawer__logo .mw-logo-icon {
| |
| display: none !important;
| |
| }
| |
| | |
| html body .citizen-drawer .citizen-drawer__siteinfo .mw-logo-wordmark {
| |
| color: var(--nv-ink) !important;
| |
| font-family: var(--nv-display-font) !important;
| |
| letter-spacing: .06em !important;
| |
| }
| |
| | |
| /* ---- 3. 首页报头:完整横版署名(v8),桌面 404×128,手机按栏宽等比 ---- */
| |
| html body.page-首页 .nv-home-masthead {
| |
| display: block !important;
| |
| position: relative !important;
| |
| margin: 1rem 0 2rem !important;
| |
| padding: 0 0 18px !important;
| |
| border: 0 !important;
| |
| border-bottom: 0 !important;
| |
| background-color: transparent !important;
| |
| background-image: var(--nv-rule-h1-img,
| |
| linear-gradient(90deg, var(--nv-ink) 0%, var(--nv-ink) 58%, transparent 100%)) !important;
| |
| background-size: 100% 2px !important;
| |
| background-position: 0 100% !important;
| |
| background-repeat: no-repeat !important;
| |
| }
| |
| | |
| /* 旧 CSS 绘制的六边/方块饰件不冒充品牌,隐藏 */
| |
| html body.page-首页 .nv-home-masthead::after,
| |
| html body.page-首页 .nv-home-mark {
| |
| content: none !important;
| |
| display: none !important;
| |
| }
| |
| | |
| html body.page-首页 .nv-home-masthead .novark-signature {
| |
| display: block !important;
| |
| width: min(404px, 100%) !important;
| |
| height: auto !important;
| |
| aspect-ratio: 1010 / 320 !important;
| |
| background-image: var(--novark-horizontal) !important;
| |
| background-size: contain !important;
| |
| background-position: left center !important;
| |
| background-repeat: no-repeat !important;
| |
| }
| |
| | |
| /* 无 CSS 时的文字回退:有 CSS 时视觉隐藏,仍保留给屏幕阅读器/搜索 */
| |
| html body.page-首页 .nv-home-masthead .novark-signature__text {
| |
| position: absolute !important;
| |
| width: 1px !important;
| |
| height: 1px !important;
| |
| margin: -1px !important;
| |
| padding: 0 !important;
| |
| overflow: hidden !important;
| |
| clip: rect(0 0 0 0) !important;
| |
| clip-path: inset(50%) !important;
| |
| white-space: nowrap !important;
| |
| border: 0 !important;
| |
| }
| |
| | |
| html body.page-首页 .nv-home-masthead .nv-home-masthead__tagline {
| |
| margin-top: .8rem !important;
| |
| color: var(--nv-ink-muted) !important;
| |
| font-family: var(--nv-ui-font) !important;
| |
| font-size: 14px !important;
| |
| }
| |
| | |
| @media (max-width: 720px) {
| |
| html body.page-首页 .nv-home-masthead {
| |
| margin: .5rem 0 1.4rem !important;
| |
| padding-bottom: 14px !important;
| |
| background-size: 100% 1.5px !important;
| |
| }
| |
| | |
| html body.page-首页 .nv-home-masthead .nv-home-masthead__tagline {
| |
| margin-top: .65rem !important;
| |
| font-size: 13.5px !important;
| |
| }
| |
| }
| |
| /* ===== /D route append: brand v1 ===== */
| |
| | |
| /* ===== lead: B server output fallback + JS-generated controls ===== */
| |
| | |
| /* ===== 08: native target-page rendering in NvLock ===== */
| |
| .nv-lock__article .mw-parser-output {
| |
| max-width: none !important;
| |
| font-size: inherit !important;
| |
| line-height: inherit !important;
| |
| text-align: left !important;
| |
| } | | } |
|
| |
|
| 第3,645行: |
第958行: |
| .nv-lock__article .thumbinner, | | .nv-lock__article .thumbinner, |
| .nv-lock__article .nv-infobox__media { | | .nv-lock__article .nv-infobox__media { |
| max-width: 100% !important;
| | max-width: 100% !important; |
| } | | } |
|
| |
|
| .nv-lock__article figure { | | .nv-lock__article figure { |
| margin: .45rem 0 .75rem !important;
| | margin: .45rem 0 .75rem !important; |
| } | | } |
|
| |
|
| 第3,655行: |
第968行: |
| .nv-lock__article .thumb img, | | .nv-lock__article .thumb img, |
| .nv-lock__article .nv-infobox__media img { | | .nv-lock__article .nv-infobox__media img { |
| max-width: 100% !important;
| | max-width: 100% !important; |
| height: auto !important; | | height: auto !important; |
| object-fit: contain; | | object-fit: contain; |
| 第3,662行: |
第975行: |
| .nv-lock__article figcaption, | | .nv-lock__article figcaption, |
| .nv-lock__article .thumbcaption { | | .nv-lock__article .thumbcaption { |
| margin-top: .25rem;
| | margin-top: .25rem; |
| color: var(--nv-ink-muted); | | color: var(--nv-ink-muted); |
| font-family: var(--nv-ui-font); | | font-family: var(--nv-ui-font); |
| font-size: .78rem; | | font-size: .78rem; |
| line-height: 1.5; | | line-height: 1.5; |
| }
| |
|
| |
| .nv-lock__article .nv-infobox {
| |
| max-width: 100% !important;
| |
| } | | } |
|
| |
|
| .nv-lock__article .mw-parser-output > p:first-child { | | .nv-lock__article .mw-parser-output > p:first-child { |
| margin-top: 0;
| | margin-top: 0; |
| } | | } |
|
| |
|
| | .nv-lock__body {flex: 1 1 auto;min-height: 0;overflow-y: auto;padding: 10px 14px 14px;scrollbar-width: thin;scrollbar-color: var(--nv-hair) transparent;overscroll-behavior: contain;-webkit-overflow-scrolling: touch;} |
|
| |
|
| @media (max-width: 520px) {
| | .nv-lock__article {color: var(--nv-ink);font-family: var(--nv-body-font);font-size: 15px;line-height: 1.72;overflow-wrap: break-word;min-width: 0;} |
| .nv-lock__article .nv-infobox {
| |
| float: none !important;
| |
| width: auto !important;
| |
| }
| |
| } | |
|
| |
|
| /* ===== 09: scoped reading density, scroll containment, infobox stack ===== */
| |
| .nv-lock__body {
| |
| overscroll-behavior: contain;
| |
| -webkit-overflow-scrolling: touch;
| |
| }
| |
| .nv-lock__article {
| |
| font-size: 15px;
| |
| line-height: 1.72;
| |
| min-width: 0;
| |
| }
| |
| .nv-lock__article .mw-parser-output { | | .nv-lock__article .mw-parser-output { |
| font-size: 15px !important; | | max-width: none; font-size: inherit; line-height: inherit; text-align: left; |
| line-height: 1.72 !important;
| |
| } | | } |
| .nv-lock__article p { | | |
| margin: 0 0 .52rem !important; | | .nv-lock .nv-lock__article p { |
| line-height: 1.72 !important;
| | margin: 0 0 .52rem; line-height: inherit; |
| }
| |
| /* 09/03: card headings are handled by the final card hierarchy block below. */
| |
| .nv-lock__article .nv-infobox {
| |
| float: none !important;
| |
| width: auto !important;
| |
| max-width: 100% !important;
| |
| margin: 0 0 .75rem !important;
| |
| }
| |
| .nv-lock__table {
| |
| max-width: 100%;
| |
| min-width: 0;
| |
| overflow-x: auto;
| |
| overflow-y: hidden;
| |
| overscroll-behavior: contain;
| |
| -webkit-overflow-scrolling: touch;
| |
| touch-action: pan-x;
| |
| }
| |
| .nv-lock__article table {
| |
| max-width: none;
| |
| width: max-content;
| |
| min-width: 100%;
| |
| } | | } |
| | |
| | .nv-lock__table {max-width: 100%;margin: 0.5rem 0 0.7rem;overflow-x: auto;overflow-y: hidden;scrollbar-width: thin;scrollbar-color: var(--nv-hair) transparent;min-width: 0;overscroll-behavior: contain;-webkit-overflow-scrolling: touch;touch-action: pan-x;} |
| | |
| | .nv-lock__article table {border-collapse: collapse;max-width: none;font-size: 0.8rem;line-height: 1.5;width: max-content;min-width: 100%;} |
| | |
| .nv-lock__article img { | | .nv-lock__article img { |
| max-height: 34vh;
| | max-height: 34vh; |
| width: auto; | | width: auto; |
| }
| |
| @media (hover: none) and (pointer: coarse) {
| |
| .nv-lock__article { font-size: 15px; }
| |
| .nv-lock__article .mw-parser-output { font-size: 15px !important; }
| |
| } | | } |
|
| |
|
| /* ===== 09: small page footer tools and heading tools ===== */
| |
| .nv-page-tools { | | .nv-page-tools { |
| display: flex;
| | display: flex; |
| flex-wrap: wrap; | | flex-wrap: wrap; |
| align-items: baseline; | | align-items: baseline; |
| 第3,745行: |
第1,018行: |
| line-height: 1.7; | | line-height: 1.7; |
| } | | } |
| .nv-page-tools__label { opacity: .72; } | | |
| | .nv-page-tools__label { |
| | opacity: .72; |
| | } |
| | |
| .nv-page-tool { | | .nv-page-tool { |
| padding: 0;
| | padding: 0; |
| border: 0; | | border: 0; |
| background: transparent; | | background: transparent; |
| 第3,755行: |
第1,032行: |
| cursor: pointer; | | cursor: pointer; |
| } | | } |
| | |
| .nv-page-tool:hover, | | .nv-page-tool:hover, |
| .nv-page-tool:focus-visible { | | .nv-page-tool:focus-visible { |
| text-decoration: underline;
| | text-decoration: underline; |
| text-underline-offset: 2px; | | text-underline-offset: 2px; |
| } | | } |
| | |
| .nv-copy-fallback { | | .nv-copy-fallback { |
| max-width: 16rem;
| | max-width: 16rem; |
| margin-left: .35rem; | | margin-left: .35rem; |
| padding: .1rem .3rem; | | padding: .1rem .3rem; |
| 第3,770行: |
第1,049行: |
| font-size: 11px; | | font-size: 11px; |
| } | | } |
| /* ===== 10: footer reference/term menus ===== */
| | |
| .nv-footer-tool-wrap { position: relative; display: inline-block; } | | .nv-footer-tool-wrap { |
| | position: relative; display: inline-block; |
| | } |
| | |
| .nv-footer-menu { | | .nv-footer-menu { |
| position: fixed;
| | position: fixed; |
| left: 12px; | | left: 12px; |
| top: 12px; | | top: 12px; |
| 第3,788行: |
第1,070行: |
| line-height: 1.55; | | line-height: 1.55; |
| } | | } |
| .nv-footer-menu[hidden] { display: none !important; } | | |
| | .nv-footer-menu[hidden] { |
| | display: none !important; |
| | } |
| | |
| .nv-footer-menu__search { | | .nv-footer-menu__search { |
| width: 100%;
| | width: 100%; |
| box-sizing: border-box; | | box-sizing: border-box; |
| margin: 0 0 .3rem; | | margin: 0 0 .3rem; |
| 第3,799行: |
第1,085行: |
| font: inherit; | | font: inherit; |
| } | | } |
| .nv-footer-menu__sections { display: flex; flex-direction: column; } | | |
| | .nv-footer-menu__sections { |
| | display: flex; flex-direction: column; |
| | } |
| | |
| .nv-footer-menu__item { | | .nv-footer-menu__item { |
| display: block;
| | display: block; |
| width: 100%; | | width: 100%; |
| padding: .22rem .5rem .22rem .5rem; | | padding: .22rem .5rem .22rem .5rem; |
| 第3,811行: |
第1,101行: |
| cursor: pointer; | | cursor: pointer; |
| } | | } |
| | |
| .nv-footer-menu__item:hover, | | .nv-footer-menu__item:hover, |
| .nv-footer-menu__item:focus-visible { background: var(--nv-wash); } | | .nv-footer-menu__item:focus-visible { |
| .nv-footer-menu__item--page { border-bottom: 1px solid var(--nv-line); font-weight: 600; }
| | background: var(--nv-wash); |
| | } |
|
| |
|
| /* 03: card headings use the same ladder at card scale; H5/H6 stay at body size. */
| | .nv-footer-menu__item--page { |
| html body .nv-lock__article .mw-parser-output h2,
| | border-bottom: 1px solid var(--nv-line); font-weight: 600; |
| html body .nv-lock__article .mw-parser-output h2.citizen-section-heading {
| |
| margin: .8rem 0 .38rem !important;
| |
| font-family: var(--nv-display-font) !important;
| |
| font-size: 16px !important;
| |
| line-height: 1.42 !important;
| |
| font-weight: 700 !important;
| |
| color: var(--nv-title-red) !important;
| |
| background-image: var(--nv-rule-h2-img) !important;
| |
| background-size: 72% 2px !important;
| |
| padding-bottom: 5px !important;
| |
| } | | } |
| html body .nv-lock__article .mw-parser-output h3,
| | |
| html body .nv-lock__article .mw-parser-output h3.citizen-section-heading {
| | .nv-lock .nv-lock__article .mw-parser-output h2 { |
| margin: .72rem 0 .32rem !important; | | margin: .8rem 0 .38rem; |
| font-family: var(--nv-display-font) !important;
| | padding-bottom: 5px; |
| font-size: 15px !important;
| |
| line-height: 1.42 !important;
| |
| font-weight: 650 !important;
| |
| color: var(--nv-h3) !important;
| |
| background-image: var(--nv-rule-h3-img) !important;
| |
| background-size: 56% 1px !important;
| |
| padding-bottom: 5px !important; | |
| } | | } |
| html body .nv-lock__article .mw-parser-output h4,
| | |
| html body .nv-lock__article .mw-parser-output h4.citizen-section-heading,
| | .nv-lock .nv-lock__article .mw-parser-output h3 { |
| html body .nv-lock__article .mw-parser-output h5,
| | margin: .72rem 0 .32rem; |
| html body .nv-lock__article .mw-parser-output h5.citizen-section-heading,
| | padding-bottom: 5px; |
| html body .nv-lock__article .mw-parser-output h6,
| |
| html body .nv-lock__article .mw-parser-output h6.citizen-section-heading {
| |
| margin: .6rem 0 .26rem !important; | |
| font-family: var(--nv-display-font) !important;
| |
| font-size: 15px !important;
| |
| line-height: 1.42 !important;
| |
| font-weight: 600 !important;
| |
| padding-bottom: 4px !important; | |
| } | | } |
| html body .nv-lock__article .mw-parser-output h4,
| | |
| html body .nv-lock__article .mw-parser-output h4.citizen-section-heading {
| | .nv-lock .nv-lock__article .mw-parser-output h4, |
| color: var(--nv-h4) !important;
| | .nv-lock .nv-lock__article .mw-parser-output h5, |
| background-image: var(--nv-rule-h4-img) !important; | | .nv-lock .nv-lock__article .mw-parser-output h6 { |
| background-size: 40% 1px !important; | | margin: .6rem 0 .26rem; |
| | padding-bottom: 4px; |
| } | | } |
| html body .nv-lock__article .mw-parser-output h5,
| | |
| html body .nv-lock__article .mw-parser-output h5.citizen-section-heading {
| | .nv-lock .nv-lock__article .mw-parser-output .nv-infobox { |
| color: var(--nv-h5) !important;
| | float: none; width: 100%; max-width: min(100%, 540px); margin: 0 auto .9rem; |
| background-image: var(--nv-rule-h5-img) !important;
| |
| background-size: 28% 1px !important;
| |
| }
| |
| html body .nv-lock__article .mw-parser-output h6,
| |
| html body .nv-lock__article .mw-parser-output h6.citizen-section-heading {
| |
| color: var(--nv-h6) !important;
| |
| background-image: var(--nv-rule-h6-img) !important;
| |
| background-size: 20% 1px !important;
| |
| }
| |
| html body .nv-lock__article .nv-infobox {
| |
| float: none !important; | |
| width: 100% !important;
| |
| max-width: min(100%, 540px) !important;
| |
| margin: 0 auto .9rem !important;
| |
| } | | } |
|
| |
|
| /* 11: infobox after lead, centered compact data block using available card width. */
| |
| html body .nv-lock__article .nv-infobox__rows, | | html body .nv-lock__article .nv-infobox__rows, |
| html body .nv-lock__article .nv-infobox__rows > .nv-infobox__row { | | html body .nv-lock__article .nv-infobox__rows > .nv-infobox__row { |
| width: 100% !important;
| | width: 100% !important; |
| box-sizing: border-box !important; | | box-sizing: border-box !important; |
| } | | } |
| | |
| html body .nv-lock__article .nv-infobox__row { | | html body .nv-lock__article .nv-infobox__row { |
| justify-content: space-between !important;
| | justify-content: space-between !important; |
| } | | } |
| | |
| html body .nv-lock__article .nv-infobox__media { | | html body .nv-lock__article .nv-infobox__media { |
| justify-content: center !important;
| | justify-content: center !important; |
| }
| |
| | |
| /* 12: one current-version button over the native Tabber. */
| |
| .nv-rule-version { display: inline-flex; align-items: center; margin: 0 0 1rem; }
| |
| .nv-rule-version-enhanced > .tabber__header { display: none !important; }
| |
| .nv-rule-version__button {
| |
| display: inline-flex;
| |
| align-items: center;
| |
| gap: .38rem;
| |
| padding: .28rem .55rem;
| |
| border: 1px solid var(--nv-line);
| |
| background: var(--nv-paper);
| |
| color: var(--nv-ink);
| |
| font-family: var(--nv-ui-font);
| |
| font-size: 13px;
| |
| line-height: 1.4;
| |
| cursor: pointer;
| |
| }
| |
| .nv-rule-version__button:hover,
| |
| .nv-rule-version__button:focus-visible { background: var(--nv-wash); }
| |
| .nv-rule-version__icon {
| |
| display: inline-flex;
| |
| width: 1.1em;
| |
| height: 1.1em;
| |
| flex: 0 0 1.1em;
| |
| align-items: center;
| |
| justify-content: center;
| |
| }
| |
| .nv-rule-version__icon:empty { display: none; }
| |
| .nv-rule-version__label { white-space: nowrap; }
| |
| .nv-rule-version__chevron { color: var(--nv-ink-muted); font-size: .8em; }
| |
| .nv-rule-version__menu {
| |
| position: fixed;
| |
| left: 12px;
| |
| top: 12px;
| |
| z-index: 1450;
| |
| min-width: 150px;
| |
| overflow: auto;
| |
| padding: .25rem;
| |
| border: 1px solid var(--nv-line);
| |
| background: var(--nv-paper);
| |
| box-shadow: 0 6px 18px rgba(0, 0, 0, .12);
| |
| }
| |
| .nv-rule-version__item {
| |
| display: block;
| |
| width: 100%;
| |
| padding: .3rem .5rem;
| |
| border: 0;
| |
| background: transparent;
| |
| color: var(--nv-ink);
| |
| font: inherit;
| |
| text-align: left;
| |
| cursor: pointer;
| |
| } | | } |
| .nv-rule-version__item:hover,
| |
| .nv-rule-version__item:focus-visible,
| |
| .nv-rule-version__item[aria-current="true"] { background: var(--nv-wash); }
| |
|
| |
|
| /* ===== 13: unified footer rows ===== */
| |
| .nv-page-footer { | | .nv-page-footer { |
| display: flex;
| | display: flex; |
| flex-direction: column; | | flex-direction: column; |
| gap: .28rem; | | gap: .28rem; |
| 第3,958行: |
第1,156行: |
| color: var(--nv-ink-muted); | | color: var(--nv-ink-muted); |
| } | | } |
| | |
| .nv-page-footer__row { | | .nv-page-footer__row { |
| display: flex;
| | display: flex; |
| flex-wrap: wrap; | | flex-wrap: wrap; |
| align-items: baseline; | | align-items: baseline; |
| gap: .2rem .6rem; | | gap: .2rem .6rem; |
| } | | } |
| .nv-page-footer__label { flex: 0 0 auto; opacity: .78; } | | |
| | .nv-page-footer__label { |
| | flex: 0 0 auto; opacity: .78; |
| | } |
| | |
| .nv-page-footer__items { | | .nv-page-footer__items { |
| display: inline-flex;
| | display: inline; white-space: normal; |
| flex-wrap: wrap;
| |
| align-items: baseline;
| |
| gap: .28rem .5rem;
| |
| min-width: 0;
| |
| }
| |
| .nv-page-footer__item {
| |
| display: inline-block;
| |
| margin: 0;
| |
| padding: .06rem .4rem;
| |
| border: 1px solid var(--nv-line);
| |
| background: transparent;
| |
| color: var(--nv-link) !important;
| |
| font: inherit;
| |
| line-height: 1.55;
| |
| text-decoration: none;
| |
| cursor: pointer;
| |
| }
| |
| .nv-page-footer__item:hover,
| |
| .nv-page-footer__item:focus-visible { background: var(--nv-wash); }
| |
| .nv-page-footer__menu-wrap { position: relative; display: inline-block; }
| |
| @media (max-width: 640px) {
| |
| .nv-page-footer { font-size: 12px; }
| |
| .nv-page-footer__row { gap: .2rem .35rem; }
| |
| .nv-page-footer__items { gap: .25rem; }
| |
| .nv-page-footer__item { padding: .05rem .3rem; }
| |
| } | | } |
|
| |
|
| /* 15: native category block restored; help/discussion rows use normal site link interaction. */
| |
| .nv-page-footer__items { display: inline; }
| |
| .nv-page-footer__item { | | .nv-page-footer__item { |
| display: inline;
| | display: inline; |
| margin: 0; | | margin: 0; |
| padding: 0; | | padding: 0; |
| 第4,010行: |
第1,186行: |
| cursor: pointer; | | cursor: pointer; |
| } | | } |
| a.nv-page-footer__item:visited { color: var(--nv-link-visited) !important; } | | |
| | a.nv-page-footer__item:visited { |
| | color: var(--nv-link-visited) !important; |
| | } |
| | |
| .nv-page-footer__item:hover { | | .nv-page-footer__item:hover { |
| background: transparent !important;
| | text-decoration: underline; |
| text-decoration: underline;
| |
| text-underline-offset: 2px; | | text-underline-offset: 2px; |
| } | | } |
| .nv-page-footer__item:focus-visible { background: transparent !important; } | | |
| | .nv-page-footer__menu-wrap { |
| | position: relative; display: inline-block; |
| | } |
| | |
| .nv-page-footer__sep { | | .nv-page-footer__sep { |
| display: inline-block !important;
| | display: inline-block !important; |
| margin: 0 .38em !important; | | margin: 0 .38em !important; |
| padding: 0 !important; | | padding: 0 !important; |
| 第4,031行: |
第1,214行: |
| user-select: none; | | user-select: none; |
| } | | } |
| .nv-page-footer__items { white-space: normal; }
| |
|
| |
|
| /* ==========================================================================
| | @media (max-width: 640px) {.nv-page-footer { |
| 2026-10-26 Wiki模板SVG图标接入(wiki-template-icons-v1 · 31 图标)
| | font-size: 12px; |
| 资产层:只定义同源静态 SVG 路径,不内联 base64(避免 Common.css 膨胀与重复下载)。
| | }.nv-page-footer__row { |
| 日间 = duotone(暖墨 #2A231C + 朱砂 #C0472E);夜间 = 官方 inverse 反白版(#FFFFFF)。
| | gap: .2rem .35rem; |
| 禁止整图 filter: invert()。
| | }} |
| 部署前提:31×2 个 SVG 需放到 /images/wiki-icons/<variant>/<key>.svg(见 01 部署清单)。
| |
| ========================================================================== */
| |
|
| |
|
| :root { | | :root {--nv-icon-info: url("/images/wiki-icons/duotone/info.svg");--nv-icon-brief: url("/images/wiki-icons/duotone/brief.svg");--nv-icon-rule: url("/images/wiki-icons/duotone/rule.svg");--nv-icon-example: url("/images/wiki-icons/duotone/example.svg");--nv-icon-note: url("/images/wiki-icons/duotone/note.svg");--nv-icon-danger: url("/images/wiki-icons/duotone/danger.svg");--nv-icon-discussion: url("/images/wiki-icons/duotone/discussion.svg");--nv-icon-source: url("/images/wiki-icons/duotone/source.svg");--nv-icon-site-index: url("/images/wiki-icons/duotone/site-index.svg");--nv-icon-term: url("/images/wiki-icons/duotone/term.svg");--nv-icon-quote: url("/images/wiki-icons/duotone/quote.svg");--nv-icon-country: url("/images/wiki-icons/duotone/country.svg");--nv-icon-person: url("/images/wiki-icons/duotone/person.svg");--nv-icon-deity: url("/images/wiki-icons/duotone/deity.svg");--nv-icon-organization: url("/images/wiki-icons/duotone/organization.svg");} |
| | |
| --nv-icon-anchored: url("/images/wiki-icons/duotone/anchored.svg");
| |
| --nv-icon-revising: url("/images/wiki-icons/duotone/revising.svg");
| |
| --nv-icon-confirming: url("/images/wiki-icons/duotone/confirming.svg");
| |
| --nv-icon-improve: url("/images/wiki-icons/duotone/improve.svg");
| |
| --nv-icon-featured: url("/images/wiki-icons/duotone/featured.svg");
| |
| --nv-icon-disambiguation: url("/images/wiki-icons/duotone/disambiguation.svg");
| |
| --nv-icon-spoiler: url("/images/wiki-icons/duotone/spoiler.svg");
| |
| --nv-icon-noncanon: url("/images/wiki-icons/duotone/noncanon.svg");
| |
| --nv-icon-campaign: url("/images/wiki-icons/duotone/campaign.svg");
| |
| --nv-icon-setting-core: url("/images/wiki-icons/duotone/setting-core.svg");
| |
| --nv-icon-setting-major: url("/images/wiki-icons/duotone/setting-major.svg");
| |
| --nv-icon-setting-common: url("/images/wiki-icons/duotone/setting-common.svg");
| |
| --nv-icon-setting-derived: url("/images/wiki-icons/duotone/setting-derived.svg");
| |
| --nv-icon-rule-35: url("/images/wiki-icons/duotone/rule-35.svg");
| |
| --nv-icon-rule-55: url("/images/wiki-icons/duotone/rule-55.svg");
| |
| --nv-icon-rule-common: url("/images/wiki-icons/duotone/rule-common.svg");
| |
| --nv-icon-info: url("/images/wiki-icons/duotone/info.svg");
| |
| --nv-icon-brief: url("/images/wiki-icons/duotone/brief.svg");
| |
| --nv-icon-rule: url("/images/wiki-icons/duotone/rule.svg");
| |
| --nv-icon-example: url("/images/wiki-icons/duotone/example.svg");
| |
| --nv-icon-note: url("/images/wiki-icons/duotone/note.svg");
| |
| --nv-icon-danger: url("/images/wiki-icons/duotone/danger.svg");
| |
| --nv-icon-discussion: url("/images/wiki-icons/duotone/discussion.svg");
| |
| --nv-icon-source: url("/images/wiki-icons/duotone/source.svg");
| |
| --nv-icon-site-index: url("/images/wiki-icons/duotone/site-index.svg");
| |
| --nv-icon-term: url("/images/wiki-icons/duotone/term.svg");
| |
| --nv-icon-quote: url("/images/wiki-icons/duotone/quote.svg");
| |
| --nv-icon-country: url("/images/wiki-icons/duotone/country.svg");
| |
| --nv-icon-person: url("/images/wiki-icons/duotone/person.svg");
| |
| --nv-icon-deity: url("/images/wiki-icons/duotone/deity.svg");
| |
| --nv-icon-organization: url("/images/wiki-icons/duotone/organization.svg");
| |
| } | |
|
| |
|
| html.skin-theme-clientpref-night, | | html.skin-theme-clientpref-night, |
| html.skin-theme-clientpref-black { | | html.skin-theme-clientpref-black {--nv-icon-info: url("/images/wiki-icons/inverse/info.svg");--nv-icon-brief: url("/images/wiki-icons/inverse/brief.svg");--nv-icon-rule: url("/images/wiki-icons/inverse/rule.svg");--nv-icon-example: url("/images/wiki-icons/inverse/example.svg");--nv-icon-note: url("/images/wiki-icons/inverse/note.svg");--nv-icon-danger: url("/images/wiki-icons/inverse/danger.svg");--nv-icon-discussion: url("/images/wiki-icons/inverse/discussion.svg");--nv-icon-source: url("/images/wiki-icons/inverse/source.svg");--nv-icon-site-index: url("/images/wiki-icons/inverse/site-index.svg");--nv-icon-term: url("/images/wiki-icons/inverse/term.svg");--nv-icon-quote: url("/images/wiki-icons/inverse/quote.svg");--nv-icon-country: url("/images/wiki-icons/inverse/country.svg");--nv-icon-person: url("/images/wiki-icons/inverse/person.svg");--nv-icon-deity: url("/images/wiki-icons/inverse/deity.svg");--nv-icon-organization: url("/images/wiki-icons/inverse/organization.svg");} |
| --nv-icon-anchored: url("/images/wiki-icons/inverse/anchored.svg");
| |
| --nv-icon-revising: url("/images/wiki-icons/inverse/revising.svg");
| |
| --nv-icon-confirming: url("/images/wiki-icons/inverse/confirming.svg");
| |
| --nv-icon-improve: url("/images/wiki-icons/inverse/improve.svg");
| |
| --nv-icon-featured: url("/images/wiki-icons/inverse/featured.svg");
| |
| --nv-icon-disambiguation: url("/images/wiki-icons/inverse/disambiguation.svg");
| |
| --nv-icon-spoiler: url("/images/wiki-icons/inverse/spoiler.svg");
| |
| --nv-icon-noncanon: url("/images/wiki-icons/inverse/noncanon.svg");
| |
| --nv-icon-campaign: url("/images/wiki-icons/inverse/campaign.svg");
| |
| --nv-icon-setting-core: url("/images/wiki-icons/inverse/setting-core.svg");
| |
| --nv-icon-setting-major: url("/images/wiki-icons/inverse/setting-major.svg");
| |
| --nv-icon-setting-common: url("/images/wiki-icons/inverse/setting-common.svg");
| |
| --nv-icon-setting-derived: url("/images/wiki-icons/inverse/setting-derived.svg");
| |
| --nv-icon-rule-35: url("/images/wiki-icons/inverse/rule-35.svg");
| |
| --nv-icon-rule-55: url("/images/wiki-icons/inverse/rule-55.svg");
| |
| --nv-icon-rule-common: url("/images/wiki-icons/inverse/rule-common.svg");
| |
| --nv-icon-info: url("/images/wiki-icons/inverse/info.svg");
| |
| --nv-icon-brief: url("/images/wiki-icons/inverse/brief.svg");
| |
| --nv-icon-rule: url("/images/wiki-icons/inverse/rule.svg");
| |
| --nv-icon-example: url("/images/wiki-icons/inverse/example.svg");
| |
| --nv-icon-note: url("/images/wiki-icons/inverse/note.svg");
| |
| --nv-icon-danger: url("/images/wiki-icons/inverse/danger.svg");
| |
| --nv-icon-discussion: url("/images/wiki-icons/inverse/discussion.svg");
| |
| --nv-icon-source: url("/images/wiki-icons/inverse/source.svg");
| |
| --nv-icon-site-index: url("/images/wiki-icons/inverse/site-index.svg");
| |
| --nv-icon-term: url("/images/wiki-icons/inverse/term.svg");
| |
| --nv-icon-quote: url("/images/wiki-icons/inverse/quote.svg");
| |
| --nv-icon-country: url("/images/wiki-icons/inverse/country.svg");
| |
| --nv-icon-person: url("/images/wiki-icons/inverse/person.svg");
| |
| --nv-icon-deity: url("/images/wiki-icons/inverse/deity.svg");
| |
| --nv-icon-organization: url("/images/wiki-icons/inverse/organization.svg");
| |
| } | |
|
| |
|
| @media (prefers-color-scheme: dark) { | | @media (prefers-color-scheme: dark) {html.skin-theme-clientpref-os {--nv-icon-info: url("/images/wiki-icons/inverse/info.svg");--nv-icon-brief: url("/images/wiki-icons/inverse/brief.svg");--nv-icon-rule: url("/images/wiki-icons/inverse/rule.svg");--nv-icon-example: url("/images/wiki-icons/inverse/example.svg");--nv-icon-note: url("/images/wiki-icons/inverse/note.svg");--nv-icon-danger: url("/images/wiki-icons/inverse/danger.svg");--nv-icon-discussion: url("/images/wiki-icons/inverse/discussion.svg");--nv-icon-source: url("/images/wiki-icons/inverse/source.svg");--nv-icon-site-index: url("/images/wiki-icons/inverse/site-index.svg");--nv-icon-term: url("/images/wiki-icons/inverse/term.svg");--nv-icon-quote: url("/images/wiki-icons/inverse/quote.svg");--nv-icon-country: url("/images/wiki-icons/inverse/country.svg");--nv-icon-person: url("/images/wiki-icons/inverse/person.svg");--nv-icon-deity: url("/images/wiki-icons/inverse/deity.svg");--nv-icon-organization: url("/images/wiki-icons/inverse/organization.svg");}} |
| html.skin-theme-clientpref-os {
| |
| --nv-icon-anchored: url("/images/wiki-icons/inverse/anchored.svg");
| |
| --nv-icon-revising: url("/images/wiki-icons/inverse/revising.svg");
| |
| --nv-icon-confirming: url("/images/wiki-icons/inverse/confirming.svg");
| |
| --nv-icon-improve: url("/images/wiki-icons/inverse/improve.svg");
| |
| --nv-icon-featured: url("/images/wiki-icons/inverse/featured.svg");
| |
| --nv-icon-disambiguation: url("/images/wiki-icons/inverse/disambiguation.svg");
| |
| --nv-icon-spoiler: url("/images/wiki-icons/inverse/spoiler.svg");
| |
| --nv-icon-noncanon: url("/images/wiki-icons/inverse/noncanon.svg");
| |
| --nv-icon-campaign: url("/images/wiki-icons/inverse/campaign.svg");
| |
| --nv-icon-setting-core: url("/images/wiki-icons/inverse/setting-core.svg");
| |
| --nv-icon-setting-major: url("/images/wiki-icons/inverse/setting-major.svg");
| |
| --nv-icon-setting-common: url("/images/wiki-icons/inverse/setting-common.svg");
| |
| --nv-icon-setting-derived: url("/images/wiki-icons/inverse/setting-derived.svg");
| |
| --nv-icon-rule-35: url("/images/wiki-icons/inverse/rule-35.svg");
| |
| --nv-icon-rule-55: url("/images/wiki-icons/inverse/rule-55.svg");
| |
| --nv-icon-rule-common: url("/images/wiki-icons/inverse/rule-common.svg");
| |
| --nv-icon-info: url("/images/wiki-icons/inverse/info.svg");
| |
| --nv-icon-brief: url("/images/wiki-icons/inverse/brief.svg");
| |
| --nv-icon-rule: url("/images/wiki-icons/inverse/rule.svg");
| |
| --nv-icon-example: url("/images/wiki-icons/inverse/example.svg");
| |
| --nv-icon-note: url("/images/wiki-icons/inverse/note.svg");
| |
| --nv-icon-danger: url("/images/wiki-icons/inverse/danger.svg");
| |
| --nv-icon-discussion: url("/images/wiki-icons/inverse/discussion.svg");
| |
| --nv-icon-source: url("/images/wiki-icons/inverse/source.svg");
| |
| --nv-icon-site-index: url("/images/wiki-icons/inverse/site-index.svg");
| |
| --nv-icon-term: url("/images/wiki-icons/inverse/term.svg");
| |
| --nv-icon-quote: url("/images/wiki-icons/inverse/quote.svg");
| |
| --nv-icon-country: url("/images/wiki-icons/inverse/country.svg");
| |
| --nv-icon-person: url("/images/wiki-icons/inverse/person.svg");
| |
| --nv-icon-deity: url("/images/wiki-icons/inverse/deity.svg");
| |
| --nv-icon-organization: url("/images/wiki-icons/inverse/organization.svg");
| |
| }
| |
| } | |
|
| |
|
| /* ---- 1. 通用图标类(与 Template:图标/styles.css 同一套键名) ---- */
| | html body .mw-parser-output .nv-entry-icon { |
| | | display: inline-flex; |
| /* ---- 2. 状态行:真实 SVG 图标替代旧的 9×9 纯色方块伪元素 ---- */
| |
| | |
| /* 单版 {{规则版本}} 的版本数字图标用 32px,保持行内垂直居中 */
| |
| | |
| /* ---- 3. 规则分版单按钮选择器图标槽(12 / 13.3 既有接口,只填槽不改逻辑) ---- */
| |
| html body .nv-rule-version__button { | |
| gap: 0.45rem;
| |
| padding: 0.24rem 0.62rem 0.24rem 0.48rem;
| |
| }
| |
| | |
| html body .nv-rule-version__icon[data-icon-slot="rule-version"] {
| |
| display: inline-flex !important;
| |
| width: 24px;
| |
| height: 24px;
| |
| flex: 0 0 24px;
| |
| background-repeat: no-repeat;
| |
| background-position: center;
| |
| background-size: contain;
| |
| }
| |
| | |
| html body .nv-rule-version__icon[data-icon-slot="rule-version"][data-icon-key="rule-35"],
| |
| html body .nv-rule-version[data-version="3.5E"] .nv-rule-version__icon {
| |
| background-image: var(--nv-icon-rule-35);
| |
| }
| |
| | |
| html body .nv-rule-version__icon[data-icon-slot="rule-version"][data-icon-key="rule-55"],
| |
| html body .nv-rule-version[data-version="5.5E"] .nv-rule-version__icon {
| |
| background-image: var(--nv-icon-rule-55);
| |
| }
| |
| | |
| html body .nv-rule-version__icon[data-icon-slot="rule-version"][data-icon-key="rule-common"],
| |
| html body .nv-rule-version[data-version="common"] .nv-rule-version__icon {
| |
| background-image: var(--nv-icon-rule-common);
| |
| }
| |
| | |
| html body .nv-rule-version__item {
| |
| display: flex;
| |
| align-items: center; | | align-items: center; |
| gap: 0.45rem; | | margin-right: 6px; |
| }
| | vertical-align: -0.22em; |
| html body .nv-rule-version__item::before {
| |
| content: "";
| |
| display: inline-block; | |
| width: 22px;
| |
| height: 22px;
| |
| flex: 0 0 22px;
| |
| background-repeat: no-repeat;
| |
| background-position: center;
| |
| background-size: contain;
| |
| } | | } |
| html body .nv-rule-version__item[data-version="3.5E"]::before { background-image: var(--nv-icon-rule-35); }
| |
| html body .nv-rule-version__item[data-version="5.5E"]::before { background-image: var(--nv-icon-rule-55); }
| |
| html body .nv-rule-version__item[data-version="common"]::before { background-image: var(--nv-icon-rule-common); }
| |
|
| |
| /* ---- 4. 提示框:真实图标替代旧的 i / § / ▸ / ! 字符伪元素;简短(brief)保持轻量 ---- */
| |
|
| |
|
| | | html body .mw-parser-output .nv-entry-icon .nv-icon { |
| html body .mw-parser-output .nv-notice__title { | | width: 16px; height: 16px; |
| display: flex;
| |
| align-items: center;
| |
| gap: 8px;
| |
| } | | } |
|
| |
|
| /* ---- 5. 来源组件 ---- */
| | html body .mw-parser-output .nv-icon:not([style]) { |
| | | min-width: 16px; min-height: 16px; |
| /* ---- 6. 索引入口图标(作者入口「分类入口」既有链接,只加装饰标记) ---- */
| |
| html body .mw-parser-output .nv-entry-icon { | |
| display: inline-flex;
| |
| align-items: center;
| |
| margin-right: 6px;
| |
| vertical-align: -0.22em;
| |
| } | | } |
| html body .mw-parser-output .nv-entry-icon .nv-icon { width: 16px; height: 16px; }
| |
|
| |
| /* 渲染兜底:若静态资产暂不可用,图标尺寸仍稳定,不塌陷成 0 宽 */
| |
| html body .mw-parser-output .nv-icon:not([style]) { min-width: 16px; min-height: 16px; }
| |