MediaWiki:Citizen.css:修订间差异
MediaWiki界面页面
更多操作
无编辑摘要 标签:已被回退 |
标签:撤销 |
||
| 第4行: | 第4行: | ||
结构: | 结构: | ||
0. | 0. 设计令牌 | ||
1. 字体 | 1. 字体 | ||
2. 全局页面布局 | 2. 全局页面布局 | ||
| 第13行: | 第13行: | ||
7. 页面操作工具栏 | 7. 页面操作工具栏 | ||
8. 响应式断点 | 8. 响应式断点 | ||
9. 评论区 + | 9. 评论区 + 主内容链接色 | ||
10. 申请账户页面 | 10. 申请账户页面 | ||
11. 站点头部 | 11. 站点头部 | ||
| 第19行: | 第19行: | ||
13. Citizen Sticky Header | 13. Citizen Sticky Header | ||
链接色规则(重要): | |||
浏览器对 :visited 链接会用默认色,不显式声明会和未访问链接 | |||
视觉不一致。所有链接规则必须同时写 a 和 a:visited。 | |||
============================================ */ | ============================================ */ | ||
| 第47行: | 第44行: | ||
--c-night-accent-rgb: 212, 165, 176; | --c-night-accent-rgb: 212, 165, 176; | ||
/* ---- 链接色系 ---- | /* ---- 链接色系 ---- */ | ||
--c-link: #a52a2a; /* 白底可跳转链接(深红,主色亮 2 档) */ | |||
--c-link: # | --c-link-hover: #c73e3e; /* 白底 hover(更亮的红) */ | ||
--c-link-hover: # | --c-link-new: #6b6b6b; /* 白底空页面链接(中性灰) */ | ||
--c-link-new: # | --c-link-night: #e8a0a0; /* 暗底可跳转链接(淡珊瑚) */ | ||
--c-link-night: #e8a0a0; | --c-link-night-hover: #f5c0c0; /* 暗底 hover(更亮珊瑚) */ | ||
--c-link-night-hover: #f5c0c0; | --c-link-new-night: #9a9a9a; /* 暗底空页面链接(中灰) */ | ||
--c-link-new-night: #9a9a9a; | |||
/* ---- 通用过渡时长 ---- */ | /* ---- 通用过渡时长 ---- */ | ||
| 第81行: | 第59行: | ||
/* ---- 圆角 ---- */ | /* ---- 圆角 ---- */ | ||
--radius-card: 0.25rem; | --radius-card: 0.25rem; | ||
} | } | ||
| 第207行: | 第160行: | ||
============================================ */ | ============================================ */ | ||
/* 2.1 固定背景 */ | |||
/* 2.1 固定背景 | |||
body { | body { | ||
background- | background-image: url('/index.php?title=Special:FilePath/红花1.jpg'); | ||
background-attachment: fixed; | |||
background-attachment: | background-size: cover; | ||
background-size: | background-position: center; | ||
background-position: | background-repeat: no-repeat; | ||
background-repeat: | |||
min-height: 100vh; | min-height: 100vh; | ||
} | } | ||
| 第240行: | 第183行: | ||
position: relative; | position: relative; | ||
border-radius: var(--radius-card); | border-radius: var(--radius-card); | ||
box-shadow: | box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25); | ||
padding: 2rem 2.5rem; | padding: 2rem 2.5rem; | ||
width: 100%; | width: 100%; | ||
| 第247行: | 第190行: | ||
box-sizing: border-box; | box-sizing: border-box; | ||
/* 短页面时吸收剩余空间;长页面保持自然高度 */ | |||
flex: 1 0 auto; | flex: 1 0 auto; | ||
background: | background: rgba(255, 255, 255, 0.97); | ||
} | |||
html.skin-theme-clientpref-night .mw-body { | |||
background: rgba(30, 22, 24, 0.95); | |||
box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6); | |||
} | |||
html.skin-theme-clientpref-pureblack .mw-body { | |||
background: rgba(0, 0, 0, 0.95); | |||
box-shadow: 0 8px 32px rgba(0, 0, 0, 0.8); | |||
} | } | ||
| 第317行: | 第266行: | ||
max-height: 80vh !important; | max-height: 80vh !important; | ||
overflow-y: auto !important; | overflow-y: auto !important; | ||
background: | background: #fff !important; | ||
border-radius: 0.75rem !important; | border-radius: 0.75rem !important; | ||
box-shadow: | box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35) !important; | ||
padding: 1rem !important; | padding: 1rem !important; | ||
z-index: 100000 !important; | z-index: 100000 !important; | ||
| 第340行: | 第286行: | ||
font-size: 1.5rem; | font-size: 1.5rem; | ||
line-height: 1; | line-height: 1; | ||
color: var(-- | color: var(--c-primary); | ||
cursor: pointer; | cursor: pointer; | ||
padding: 0.25rem 0.5rem; | padding: 0.25rem 0.5rem; | ||
| 第346行: | 第292行: | ||
} | } | ||
.citizen-preferences-close:hover { | .citizen-preferences-close:hover { | ||
color: var(-- | color: var(--c-primary-hover); | ||
} | } | ||
| 第371行: | 第317行: | ||
/* ============================================ | /* ============================================ | ||
5. 侧边工具栏 Rail | 5. 侧边工具栏 Rail | ||
面板内链接用主色系(红),与暗红标题栏同系统。 | |||
必须同时声明 a 和 a:visited,否则浏览器会用默认色。 | |||
============================================ */ | ============================================ */ | ||
| 第399行: | 第348行: | ||
justify-content: center; | justify-content: center; | ||
font-size: 1.15rem; | font-size: 1.15rem; | ||
box-shadow: -2px 0 8px rgba(0, 0, 0, 0. | box-shadow: -2px 0 8px rgba(0, 0, 0, 0.2); | ||
transition: background var(--t-normal), transform var(--t-normal); | transition: background var(--t-normal), transform var(--t-normal); | ||
padding: 0; | padding: 0; | ||
| 第422行: | 第371行: | ||
width: 20rem; | width: 20rem; | ||
height: 100vh; | height: 100vh; | ||
background: | background: #fff; | ||
box-shadow: -4px 0 20px rgba(0, 0, 0, 0.25); | |||
box-shadow: -4px 0 20px rgba(0, 0, 0, 0. | |||
z-index: 1001; | z-index: 1001; | ||
transform: translateX(100%); | transform: translateX(100%); | ||
| 第469行: | 第415行: | ||
overflow-y: auto; | overflow-y: auto; | ||
flex: 1; | flex: 1; | ||
} | } | ||
.rail-panel__loading { | .rail-panel__loading { | ||
color: | color: #888; | ||
text-align: center; | text-align: center; | ||
padding: 2rem 0; | padding: 2rem 0; | ||
| 第486行: | 第431行: | ||
.rail-panel__content .mw-parser-output h3 { | .rail-panel__content .mw-parser-output h3 { | ||
font-size: 1rem; | font-size: 1rem; | ||
color: var(--c- | color: var(--c-primary); | ||
border-left: 3px solid var(--c- | border-left: 3px solid var(--c-primary); | ||
padding-left: 0.5rem; | padding-left: 0.5rem; | ||
margin: 1rem 0 0.5rem 0; | margin: 1rem 0 0.5rem 0; | ||
| 第503行: | 第448行: | ||
} | } | ||
/* | /* 面板内链接(红) */ | ||
.rail-panel__content .mw-parser-output a, | .rail-panel__content .mw-parser-output a, | ||
.rail-panel__content .mw-parser-output a:visited { | .rail-panel__content .mw-parser-output a:visited { | ||
display: block; | display: block; | ||
padding: 0.5rem 0.75rem; | padding: 0.5rem 0.75rem; | ||
color: var(--c- | color: var(--c-primary); | ||
text-decoration: none; | text-decoration: none; | ||
border-radius: 0.4rem; | border-radius: 0.4rem; | ||
| 第515行: | 第460行: | ||
.rail-panel__content .mw-parser-output a:hover, | .rail-panel__content .mw-parser-output a:hover, | ||
.rail-panel__content .mw-parser-output a:visited:hover { | .rail-panel__content .mw-parser-output a:visited:hover { | ||
background: var(-- | background: rgba(var(--c-primary-rgb), 0.08); | ||
color: var(--c- | color: var(--c-primary-hover); | ||
} | } | ||
.rail-panel__content .mw-parser-output a.new, | .rail-panel__content .mw-parser-output a.new, | ||
.rail-panel__content .mw-parser-output a.new:visited { | .rail-panel__content .mw-parser-output a.new:visited { | ||
color: var(--c- | color: var(--c-danger); | ||
} | } | ||
.rail-panel__content .mw-parser-output a.new:hover, | .rail-panel__content .mw-parser-output a.new:hover, | ||
.rail-panel__content .mw-parser-output a.new:visited:hover { | .rail-panel__content .mw-parser-output a.new:visited:hover { | ||
color: var(--c- | color: var(--c-danger); | ||
text-decoration: underline; | text-decoration: underline; | ||
} | } | ||
| 第534行: | 第479行: | ||
bottom: 0; | bottom: 0; | ||
left: 0; | left: 0; | ||
background: rgba(0, 0, 0, 0. | background: rgba(0, 0, 0, 0.4); | ||
z-index: 999; | z-index: 999; | ||
opacity: 0; | opacity: 0; | ||
| 第552行: | 第497行: | ||
gap: 0.35rem; | gap: 0.35rem; | ||
font-size: 0.9rem; | font-size: 0.9rem; | ||
color: | color: #555; | ||
margin-bottom: 0.75rem; | margin-bottom: 0.75rem; | ||
line-height: 1.4; | line-height: 1.4; | ||
| 第559行: | 第504行: | ||
flex: 0 0 100%; | flex: 0 0 100%; | ||
margin-bottom: 0.2rem; | margin-bottom: 0.2rem; | ||
color: | color: #888; | ||
font-size: 0.85rem; | font-size: 0.85rem; | ||
} | } | ||
| 第566行: | 第511行: | ||
display: inline-block; | display: inline-block; | ||
padding: 0.15rem 0.5rem; | padding: 0.15rem 0.5rem; | ||
background: rgba( | background: rgba(var(--c-primary-rgb), 0.1); | ||
color: var(--c- | color: var(--c-primary); | ||
border-radius: 0.25rem; | border-radius: 0.25rem; | ||
text-decoration: none; | text-decoration: none; | ||
| 第576行: | 第521行: | ||
a.rail-group-tag:hover, | a.rail-group-tag:hover, | ||
a.rail-group-tag:visited:hover { | a.rail-group-tag:visited:hover { | ||
background: rgba( | background: rgba(var(--c-primary-rgb), 0.22); | ||
} | } | ||
/* ---- 5.1 夜间模式 ---- */ | |||
/* ============================================ | html.skin-theme-clientpref-night .rail-panel { | ||
6. 全局页脚(暗色玻璃) | background: rgba(30, 22, 24, 0.98); | ||
============================================ */ | box-shadow: -4px 0 20px rgba(0, 0, 0, 0.6); | ||
} | |||
html.skin-theme-clientpref-pureblack .rail-panel { | |||
background: rgba(0, 0, 0, 0.98); | |||
box-shadow: -4px 0 20px rgba(0, 0, 0, 0.8); | |||
} | |||
html.skin-theme-clientpref-night .rail-panel__header, | |||
html.skin-theme-clientpref-pureblack .rail-panel__header { | |||
background: var(--c-primary-night); | |||
} | |||
html.skin-theme-clientpref-night .rail-panel__loading { | |||
color: #777; | |||
} | |||
html.skin-theme-clientpref-night .rail-panel__content .mw-parser-output h3 { | |||
color: var(--c-night-accent); | |||
border-left-color: var(--c-night-accent); | |||
} | |||
html.skin-theme-clientpref-night .rail-panel__content .mw-parser-output a, | |||
html.skin-theme-clientpref-night .rail-panel__content .mw-parser-output a:visited { | |||
color: var(--c-night-accent); | |||
} | |||
html.skin-theme-clientpref-night .rail-panel__content .mw-parser-output a:hover, | |||
html.skin-theme-clientpref-night .rail-panel__content .mw-parser-output a:visited:hover { | |||
background: rgba(var(--c-night-accent-rgb), 0.12); | |||
color: #fff; | |||
} | |||
html.skin-theme-clientpref-night .rail-panel__content .mw-parser-output a.new, | |||
html.skin-theme-clientpref-night .rail-panel__content .mw-parser-output a.new:visited { | |||
color: var(--c-danger-night); | |||
} | |||
html.skin-theme-clientpref-night .rail-account-groups { | |||
color: #bbb; | |||
} | |||
html.skin-theme-clientpref-night .rail-account-groups__label { | |||
color: #888; | |||
} | |||
html.skin-theme-clientpref-night a.rail-group-tag, | |||
html.skin-theme-clientpref-night a.rail-group-tag:visited { | |||
background: rgba(var(--c-night-accent-rgb), 0.15); | |||
color: var(--c-night-accent); | |||
} | |||
html.skin-theme-clientpref-night a.rail-group-tag:hover, | |||
html.skin-theme-clientpref-night a.rail-group-tag:visited:hover { | |||
background: rgba(var(--c-night-accent-rgb), 0.28); | |||
} | |||
html.skin-theme-clientpref-night .rail-button { | |||
background: var(--c-primary-night); | |||
} | |||
html.skin-theme-clientpref-night .rail-button:hover, | |||
html.skin-theme-clientpref-night .rail-button.is-active { | |||
background: var(--c-primary-hover); | |||
} | |||
/* ============================================ | |||
6. 全局页脚(暗色玻璃) | |||
与 mw-body 的间距固定为 2rem。 | |||
短页面的空白由 .mw-body 吸收(flex-grow),footer 贴底。 | |||
============================================ */ | |||
.citizen-footer { | .citizen-footer { | ||
margin: 2rem -1.5rem 0 -1.5rem; | margin: 2rem -1.5rem 0 -1.5rem; | ||
| 第590行: | 第594行: | ||
box-sizing: border-box; | box-sizing: border-box; | ||
background: rgba( | background: rgba(42, 0, 6, 0.65); | ||
-webkit-backdrop-filter: blur(16px); | -webkit-backdrop-filter: blur(16px); | ||
backdrop-filter: blur(16px); | backdrop-filter: blur(16px); | ||
border-top: 1px solid | border-top: 1px solid rgba(255, 255, 255, 0.12); | ||
color: | |||
color: rgba(255, 255, 255, 0.85); | |||
flex-shrink: 0; | flex-shrink: 0; | ||
} | } | ||
| 第608行: | 第613行: | ||
text-align: center; | text-align: center; | ||
padding-bottom: 2rem; | padding-bottom: 2rem; | ||
border-bottom: 1px solid | border-bottom: 1px solid rgba(255, 255, 255, 0.15); | ||
} | } | ||
.citizen-footer__siteinfo { | .citizen-footer__siteinfo { | ||
| 第623行: | 第628行: | ||
font-size: 1.5rem; | font-size: 1.5rem; | ||
font-weight: bold; | font-weight: bold; | ||
color: | color: #fff; | ||
letter-spacing: 0.05em; | letter-spacing: 0.05em; | ||
margin-bottom: 0.75rem; | margin-bottom: 0.75rem; | ||
| 第633行: | 第638行: | ||
} | } | ||
.citizen-footer__sitetitle .mw-logo-wordmark { | .citizen-footer__sitetitle .mw-logo-wordmark { | ||
color: | color: #fff; | ||
font-family: var(--font-family-narrow); | font-family: var(--font-family-narrow); | ||
text-transform: uppercase; | text-transform: uppercase; | ||
| 第639行: | 第644行: | ||
.citizen-footer__desc { | .citizen-footer__desc { | ||
color: | color: rgba(255, 255, 255, 0.75); | ||
font-size: 0.95rem; | font-size: 0.95rem; | ||
line-height: 1.7; | line-height: 1.7; | ||
| 第658行: | 第663行: | ||
} | } | ||
#footer-tagline { | #footer-tagline { | ||
color: | color: rgba(255, 255, 255, 0.6); | ||
font-size: 0.85rem; | font-size: 0.85rem; | ||
letter-spacing: 0.15em; | letter-spacing: 0.15em; | ||
| 第664行: | 第669行: | ||
} | } | ||
/* footer | /* footer 内的链接:暗底用亮金 + 粉红 */ | ||
.citizen-footer a, | .citizen-footer a, | ||
.citizen-footer a:visited { | .citizen-footer a:visited { | ||
color: var(--c-link) !important; | color: var(--c-link-night) !important; | ||
text-decoration: none; | text-decoration: none; | ||
transition: color var(--t-fast); | transition: color var(--t-fast); | ||
| 第673行: | 第678行: | ||
.citizen-footer a:hover, | .citizen-footer a:hover, | ||
.citizen-footer a:visited:hover { | .citizen-footer a:visited:hover { | ||
color: var(--c-link-hover) !important; | color: var(--c-link-night-hover) !important; | ||
text-decoration: underline; | text-decoration: underline; | ||
} | } | ||
.citizen-footer a.new, | .citizen-footer a.new, | ||
.citizen-footer a.new:visited { | .citizen-footer a.new:visited { | ||
color: var(--c-link-new) !important; | color: var(--c-link-new-night) !important; | ||
} | |||
html.skin-theme-clientpref-night .citizen-footer, | |||
html.skin-theme-clientpref-pureblack .citizen-footer { | |||
background: rgba(0, 0, 0, 0.7); | |||
border-top-color: rgba(255, 255, 255, 0.08); | |||
} | } | ||
| 第767行: | 第778行: | ||
border-radius: 0.4rem !important; | border-radius: 0.4rem !important; | ||
background: transparent !important; | background: transparent !important; | ||
color: var(--c- | color: var(--c-primary) !important; | ||
font-size: 0.82rem !important; | font-size: 0.82rem !important; | ||
line-height: 1 !important; | line-height: 1 !important; | ||
| 第779行: | 第790行: | ||
.citizen-page-actions .citizen-share:hover, | .citizen-page-actions .citizen-share:hover, | ||
.citizen-page-actions .citizen-dropdown-summary:hover { | .citizen-page-actions .citizen-dropdown-summary:hover { | ||
background: var(-- | background: rgba(var(--c-primary-rgb), 0.08) !important; | ||
color: var(--c- | color: var(--c-primary-hover) !important; | ||
} | } | ||
.citizen-page-actions .mw-list-item.selected > a { | .citizen-page-actions .mw-list-item.selected > a { | ||
background: rgba( | background: rgba(var(--c-primary-rgb), 0.12) !important; | ||
font-weight: bold !important; | font-weight: bold !important; | ||
} | } | ||
| 第806行: | 第817行: | ||
min-width: 12rem !important; | min-width: 12rem !important; | ||
max-width: calc(100vw - 4rem) !important; | max-width: calc(100vw - 4rem) !important; | ||
background: | background: #fff !important; | ||
border-radius: 0.5rem !important; | border-radius: 0.5rem !important; | ||
box-shadow: | box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2) !important; | ||
padding: 0.5rem !important; | padding: 0.5rem !important; | ||
z-index: 100 !important; | z-index: 100 !important; | ||
| 第826行: | 第834行: | ||
padding: 0.5rem 0.75rem !important; | padding: 0.5rem 0.75rem !important; | ||
border-radius: 0.4rem !important; | border-radius: 0.4rem !important; | ||
color: var(--c- | color: var(--c-primary) !important; | ||
font-size: 0.9rem !important; | font-size: 0.9rem !important; | ||
cursor: pointer !important; | cursor: pointer !important; | ||
| 第835行: | 第843行: | ||
.citizen-page-actions #citizen-page-actions-more__card .mw-list-item > a:hover, | .citizen-page-actions #citizen-page-actions-more__card .mw-list-item > a:hover, | ||
.citizen-page-actions #citizen-page-actions-more__card .mw-list-item > a:visited:hover { | .citizen-page-actions #citizen-page-actions-more__card .mw-list-item > a:visited:hover { | ||
background: | background: rgba(var(--c-primary-rgb), 0.08) !important; | ||
color: var(--c-primary-hover) !important; | |||
color: var(--c- | |||
} | } | ||
.citizen-page-actions #citizen-page-actions-more__card .mw-list-item > a > span:not(.citizen-ui-icon), | .citizen-page-actions #citizen-page-actions-more__card .mw-list-item > a > span:not(.citizen-ui-icon), | ||
| 第846行: | 第850行: | ||
.citizen-page-actions #citizen-page-actions-more__card kbd { | .citizen-page-actions #citizen-page-actions-more__card kbd { | ||
display: inline !important; | display: inline !important; | ||
} | |||
html.skin-theme-clientpref-night .citizen-page-actions .mw-list-item > a, | |||
html.skin-theme-clientpref-night .citizen-page-actions .mw-list-item > a:visited, | |||
html.skin-theme-clientpref-night .citizen-page-actions .citizen-share, | |||
html.skin-theme-clientpref-night .citizen-page-actions .citizen-dropdown-summary { | |||
color: var(--c-night-accent) !important; | |||
} | |||
html.skin-theme-clientpref-night .citizen-page-actions .mw-list-item > a:hover, | |||
html.skin-theme-clientpref-night .citizen-page-actions .citizen-share:hover, | |||
html.skin-theme-clientpref-night .citizen-page-actions .citizen-dropdown-summary:hover { | |||
background: rgba(var(--c-night-accent-rgb), 0.12) !important; | |||
color: #fff !important; | |||
} | |||
html.skin-theme-clientpref-night .citizen-page-actions .mw-list-item.selected > a { | |||
background: rgba(var(--c-night-accent-rgb), 0.16) !important; | |||
} | |||
html.skin-theme-clientpref-night .citizen-page-actions #citizen-page-actions-more__card { | |||
background: #2a2022 !important; | |||
} | |||
html.skin-theme-clientpref-night .citizen-page-actions #citizen-page-actions-more__card .mw-list-item > a, | |||
html.skin-theme-clientpref-night .citizen-page-actions #citizen-page-actions-more__card .mw-list-item > a:visited { | |||
color: #ddd !important; | |||
} | |||
html.skin-theme-clientpref-night .citizen-page-actions #citizen-page-actions-more__card .mw-list-item > a:hover { | |||
background: rgba(var(--c-night-accent-rgb), 0.12) !important; | |||
color: #fff !important; | |||
} | } | ||
| 第919行: | 第950行: | ||
/* ============================================ | /* ============================================ | ||
9. 评论区 + | 9. 评论区 + 主内容链接色 | ||
============================================ */ | ============================================ */ | ||
.comments-body.comments-body--page-level { | |||
margin: 2rem auto 0 auto !important; | |||
padding: 2rem 2.5rem !important; | |||
background: rgba(255, 255, 255, 0.97) !important; | |||
border-radius: var(--radius-card) !important; | |||
box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25) !important; | |||
box-sizing: border-box !important; | |||
width: 100% !important; | |||
max-width: 100% !important; | |||
flex-shrink: 0; | |||
} | } | ||
. | html.citizen-feature-custom-width-clientpref-narrow .comments-body.comments-body--page-level { | ||
max-width: 55rem !important; | |||
. | |||
. | |||
} | } | ||
html.citizen-feature-custom-width-clientpref-standard .comments-body.comments-body--page-level { | |||
. | max-width: 80rem !important; | ||
. | |||
. | |||
} | } | ||
html.citizen-feature-custom-width-clientpref-wide .comments-body.comments-body--page-level { | |||
. | max-width: 110rem !important; | ||
} | } | ||
html.citizen-feature-custom-width-clientpref-full .comments-body.comments-body--page-level { | |||
. | max-width: 100% !important; | ||
} | } | ||
. | .comments-body .c-item.full { | ||
display: flow-root !important; | |||
width: 100% !important; | |||
background: rgba( | max-width: 100% !important; | ||
margin: 0 0 1rem 0 !important; | |||
border-radius: 0. | padding: 1rem !important; | ||
background: rgba(var(--c-primary-rgb), 0.03) !important; | |||
border: none !important; | |||
border-radius: 0.75rem !important; | |||
box-sizing: border-box !important; | |||
} | } | ||
. | .comments-body .c-item.full:last-child { | ||
margin-bottom: 0 !important; | |||
} | } | ||
. | .comments-body .c-container { | ||
display: flow-root !important; | |||
width: 100% !important; | |||
max-width: 100% !important; | |||
padding: 0 !important; | |||
margin: 0 !important; | |||
border: none !important; | |||
box-sizing: border-box !important; | |||
} | |||
} | |||
.comments-body .visualClear { | |||
. | clear: both !important; | ||
. | height: 0 !important; | ||
margin: 0 !important; | |||
padding: 0 !important; | |||
} | } | ||
.comments-body .c-item.reply, | |||
.comments-body. | .comments-body .c-item.nested-in-parent { | ||
display: flow-root !important; | |||
margin: 2rem 0 0 1.5rem !important; | |||
width: calc(100% - 1.5rem) !important; | |||
- | max-width: calc(100% - 1.5rem) !important; | ||
background: rgba(var(--c-primary-rgb), 0.08) !important; | |||
border-left: 3px solid rgba(var(--c-primary-rgb), 0.35) !important; | |||
border-radius: | border-radius: 0 0.75rem 0.75rem 0 !important; | ||
padding: 0.875rem 1rem 0.875rem calc(1rem - 3px) !important; | |||
box-sizing: border-box !important; | box-sizing: border-box !important; | ||
position: relative !important; | |||
z-index: 1 !important; | |||
} | } | ||
.comments-body .c-avatar { | |||
display: none !important; | |||
} | } | ||
.comments-body .c-user { | |||
display: flex !important; | |||
flex-wrap: wrap !important; | |||
align-items: center !important; | |||
gap: 0.5rem !important; | |||
font-size: 0.85rem !important; | |||
margin: 0 0 0.5rem 0 !important; | |||
padding: 0 !important; | |||
color: #666 !important; | |||
} | } | ||
.comments-body .c-user a, | |||
.comments-body .c-user a:visited { | |||
color: var(--c-link) !important; | |||
font-weight: bold !important; | |||
text-decoration: none !important; | |||
} | } | ||
.comments-body .c-user a:hover, | |||
.comments-body .c-user a:visited:hover { | |||
color: var(--c-link-hover) !important; | |||
text-decoration: underline !important; | |||
} | } | ||
.comments-body .c-user a.new, | |||
.comments-body .c- | .comments-body .c-user a.new:visited { | ||
color: var(--c-link-new) !important; | |||
} | } | ||
.comments-body .c- | .comments-body .c-time, | ||
.comments-body .c-score, | |||
.comments-body .c-score-title { | |||
font-size: 0.8rem !important; | |||
color: #999 !important; | |||
font-weight: normal !important; | |||
} | } | ||
.comments-body .c- | .comments-body .c-comment { | ||
width: 100% !important; | width: 100% !important; | ||
max-width: 100% !important; | max-width: 100% !important; | ||
box-sizing: border-box !important; | box-sizing: border-box !important; | ||
overflow-wrap: break-word !important; | |||
word-wrap: break-word !important; | |||
word-break: break-word !important; | |||
font-size: 0.9rem !important; | |||
line-height: 1.6 !important; | |||
padding: 0 !important; | |||
margin: 0 !important; | |||
border: none !important; | |||
} | } | ||
.comments-body . | .comments-body .c-actions { | ||
display: flex !important; | |||
flex-wrap: wrap !important; | |||
margin: 0 !important; | align-items: center !important; | ||
padding: 0 !important; | gap: 0.4rem !important; | ||
margin: 0.75rem 0 1rem 0 !important; | |||
padding: 0.35rem 0.6rem !important; | |||
background: rgba(var(--c-primary-rgb), 0.06) !important; | |||
border: 1px solid rgba(var(--c-primary-rgb), 0.1) !important; | |||
border-radius: 0.5rem !important; | |||
box-sizing: border-box !important; | |||
font-size: 0 !important; | |||
line-height: 0 !important; | |||
color: transparent !important; | |||
position: relative !important; | |||
z-index: 5 !important; | |||
} | } | ||
.comments-body .c- | .comments-body .c-actions a, | ||
.comments-body .c- | .comments-body .c-actions a:visited, | ||
display: | .comments-body .c-actions > span { | ||
display: inline-flex !important; | |||
align-items: center !important; | |||
justify-content: center !important; | |||
padding: 0.3rem 0.75rem !important; | |||
background: transparent !important; | |||
border | color: var(--c-primary) !important; | ||
text-decoration: none !important; | |||
border-radius: 0.4rem !important; | |||
font-size: 0.8rem !important; | |||
line-height: 1.2 !important; | |||
white-space: nowrap !important; | |||
transition: background var(--t-fast), color var(--t-fast) !important; | |||
border: none !important; | |||
margin: 0 !important; | |||
box-sizing: border-box !important; | box-sizing: border-box !important; | ||
flex: 0 0 auto !important; | |||
font-family: inherit !important; | |||
} | } | ||
.comments-body .c-actions a:hover, | |||
.comments-body .c- | .comments-body .c-actions a:visited:hover { | ||
background: var(--c-primary) !important; | |||
color: #fff !important; | |||
} | } | ||
.comments-body .c- | .comments-body .c-actions a[href*="action=delete"], | ||
.comments-body .c-actions a[href*="delete"], | |||
.comments-body .c-actions .comment-delete-link, | |||
.comments-body .c-actions .c-delete a { | |||
color: var(--c-danger) !important; | |||
color: var(-- | |||
} | } | ||
.comments-body .c- | .comments-body .c-actions a[href*="action=delete"]:hover, | ||
.comments-body .c- | .comments-body .c-actions a[href*="delete"]:hover, | ||
.comments-body .c-actions .comment-delete-link:hover, | |||
.comments-body .c-actions .c-delete a:hover { | |||
background: var(--c-danger) !important; | |||
color: #fff !important; | |||
} | } | ||
.comments-body .c- | .comments-body .c-actions .comments-edit { | ||
.comments- | color: var(--c-primary-hover) !important; | ||
color: var(--c- | |||
} | } | ||
.comments-body .c- | .comments-body .c-actions .comments-edit:hover { | ||
.comments- | background: var(--c-primary-hover) !important; | ||
color: #fff !important; | |||
color: | |||
} | } | ||
.comments-body . | .comments-body textarea, | ||
.comments-body #comment { | |||
width: 100% !important; | width: 100% !important; | ||
max-width: 100% !important; | max-width: 100% !important; | ||
height: auto !important; | |||
min-height: 5rem !important; | |||
font-size: 0.95rem !important; | |||
padding: 0.5rem 0.75rem !important; | |||
border: 1px solid rgba(var(--c-primary-rgb), 0.2) !important; | |||
border-radius: 0.4rem !important; | |||
background: #fff !important; | |||
box-sizing: border-box !important; | box-sizing: border-box !important; | ||
resize: vertical !important; | |||
font-family: inherit !important; | |||
font- | |||
line-height: 1.6 !important; | line-height: 1.6 !important; | ||
display: block !important; | |||
} | } | ||
.comments-body .c-form-title { | |||
.comments-body .c- | font-size: 1rem; | ||
font-weight: bold; | |||
color: var(--c-primary); | |||
margin-bottom: 0.75rem; | |||
} | } | ||
.comments-body .site-button { | |||
.comments-body . | background: var(--c-primary); | ||
color: #fff; | |||
border: none; | |||
padding: 0.5rem 1.2rem; | |||
border-radius: 0.4rem; | |||
font-size: 0.9rem; | |||
padding: 0. | cursor: pointer; | ||
margin-right: 0.5rem; | |||
margin-top: 0.75rem; | |||
font-family: inherit; | |||
transition: background var(--t-normal); | |||
transition: background var(--t- | |||
} | } | ||
.comments-body .c- | .comments-body .site-button:hover { | ||
.comments-body .c- | background: var(--c-primary-hover); | ||
} | |||
.comments-body .c-comment-edit-form-save, | |||
.comments-body .c-comment-edit-form-cancel { | |||
font-size: 0.85rem; | |||
padding: 0.35rem 0.9rem; | |||
margin-right: 0.5rem; | |||
border-radius: 0.4rem; | |||
border: none; | |||
cursor: pointer; | |||
font-family: inherit; | |||
} | } | ||
.comments-body .c-comment-edit-form-save { | |||
background: var(--c-primary); | |||
color: #fff; | |||
.comments-body .c- | |||
} | } | ||
.comments-body .c- | .comments-body .c-comment-edit-form-save:hover { | ||
background: var(--c-primary-hover); | |||
background: var(--c- | |||
} | } | ||
.comments-body .c- | .comments-body .c-comment-edit-form-cancel { | ||
color: var(--c- | background: transparent; | ||
color: var(--c-primary); | |||
border: 1px solid rgba(var(--c-primary-rgb), 0.2); | |||
} | } | ||
.comments-body | .comments-body .c-order { | ||
. | font-size: 0.85rem; | ||
color: #666; | |||
margin-bottom: 0.5rem; | |||
font-size: 0. | |||
} | } | ||
.comments-body .c- | .comments-body .c-order select { | ||
padding: 0.25rem 0.5rem; | |||
border: 1px solid rgba(var(--c-primary-rgb), 0.2); | |||
border-radius: 0.3rem; | |||
border-radius: 0. | |||
font-family: inherit; | font-family: inherit; | ||
font-size: 0.85rem; | |||
} | } | ||
.comments-body . | .comments-body .c-spy a, | ||
.comments-body .c-spy a:visited { | |||
color: var(--c-link); | |||
text-decoration: none; | |||
font-size: 0.85rem; | |||
} | } | ||
.comments-body .c- | .comments-body .c-spy a:hover, | ||
.comments-body .c- | .comments-body .c-spy a:visited:hover { | ||
color: var(--c-link-hover); | |||
text-decoration: underline; | |||
} | } | ||
.mw-body-content > .printfooter { | |||
display: none !important; | |||
. | |||
. | |||
} | } | ||
/* ---- 9.1 移动端适配 ---- */ | |||
@media (max-width: 700px) { | |||
.comments-body.comments-body--page-level { | |||
/* ---- 9. | |||
@media (max-width: 700px) { | |||
.comments-body.comments-body--page-level { | |||
padding: 1.25rem 1rem !important; | padding: 1.25rem 1rem !important; | ||
border-radius: 0.375rem !important; | border-radius: 0.375rem !important; | ||
| 第1,320行: | 第1,268行: | ||
} | } | ||
/* ---- 9.3 | /* ---- 9.2 夜间模式 ---- */ | ||
.mw-body-content a, | html.skin-theme-clientpref-night .comments-body.comments-body--page-level { | ||
background: rgba(30, 22, 24, 0.95) !important; | |||
box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6) !important; | |||
} | |||
html.skin-theme-clientpref-pureblack .comments-body.comments-body--page-level { | |||
background: rgba(0, 0, 0, 0.95) !important; | |||
box-shadow: 0 8px 32px rgba(0, 0, 0, 0.8) !important; | |||
} | |||
html.skin-theme-clientpref-night .comments-body .c-item.full { | |||
background: rgba(60, 40, 45, 0.4) !important; | |||
} | |||
html.skin-theme-clientpref-night .comments-body .c-item.reply, | |||
html.skin-theme-clientpref-night .comments-body .c-item.nested-in-parent { | |||
background: rgba(60, 40, 45, 0.65) !important; | |||
border-left-color: rgba(var(--c-night-accent-rgb), 0.4) !important; | |||
} | |||
html.skin-theme-clientpref-night .comments-body textarea, | |||
html.skin-theme-clientpref-night .comments-body #comment { | |||
background: rgba(30, 22, 24, 0.6) !important; | |||
border-color: rgba(var(--c-night-accent-rgb), 0.25) !important; | |||
color: #ddd !important; | |||
} | |||
html.skin-theme-clientpref-night .comments-body .c-form-title { | |||
color: var(--c-night-accent); | |||
} | |||
html.skin-theme-clientpref-night .comments-body .c-user { | |||
color: #999 !important; | |||
} | |||
html.skin-theme-clientpref-night .comments-body .c-user a, | |||
html.skin-theme-clientpref-night .comments-body .c-user a:visited { | |||
color: var(--c-link-night) !important; | |||
} | |||
html.skin-theme-clientpref-night .comments-body .c-user a:hover, | |||
html.skin-theme-clientpref-night .comments-body .c-user a:visited:hover { | |||
color: var(--c-link-night-hover) !important; | |||
} | |||
html.skin-theme-clientpref-night .comments-body .c-user a.new, | |||
html.skin-theme-clientpref-night .comments-body .c-user a.new:visited { | |||
color: var(--c-link-new-night) !important; | |||
} | |||
html.skin-theme-clientpref-night .comments-body .c-actions { | |||
background: rgba(60, 40, 45, 0.5) !important; | |||
border-color: rgba(var(--c-night-accent-rgb), 0.2) !important; | |||
} | |||
html.skin-theme-clientpref-night .comments-body .c-actions a, | |||
html.skin-theme-clientpref-night .comments-body .c-actions > span { | |||
color: var(--c-night-accent) !important; | |||
} | |||
html.skin-theme-clientpref-night .comments-body .c-actions a:hover { | |||
background: var(--c-primary-hover) !important; | |||
color: #fff !important; | |||
} | |||
html.skin-theme-clientpref-night .comments-body .c-actions .comment-delete-link, | |||
html.skin-theme-clientpref-night .comments-body .c-actions .c-delete a { | |||
color: var(--c-danger-night) !important; | |||
} | |||
html.skin-theme-clientpref-night .comments-body .c-actions .comment-delete-link:hover, | |||
html.skin-theme-clientpref-night .comments-body .c-actions .c-delete a:hover { | |||
background: var(--c-danger) !important; | |||
color: #fff !important; | |||
} | |||
html.skin-theme-clientpref-night .comments-body .c-actions .comments-edit { | |||
color: var(--c-night-accent) !important; | |||
} | |||
/* ---- 9.3 主内容区链接色(金色 / 暗红)---- */ | |||
.mw-body-content a, | |||
.mw-body-content a:visited, | .mw-body-content a:visited, | ||
.mw-parser-output a, | .mw-parser-output a, | ||
| 第1,348行: | 第1,362行: | ||
color: var(--c-link-new); | color: var(--c-link-new); | ||
text-decoration: underline; | text-decoration: underline; | ||
} | |||
html.skin-theme-clientpref-night .mw-body-content a, | |||
html.skin-theme-clientpref-night .mw-body-content a:visited, | |||
html.skin-theme-clientpref-night .mw-parser-output a, | |||
html.skin-theme-clientpref-night .mw-parser-output a:visited, | |||
html.skin-theme-clientpref-pureblack .mw-body-content a, | |||
html.skin-theme-clientpref-pureblack .mw-body-content a:visited, | |||
html.skin-theme-clientpref-pureblack .mw-parser-output a, | |||
html.skin-theme-clientpref-pureblack .mw-parser-output a:visited { | |||
color: var(--c-link-night); | |||
} | |||
html.skin-theme-clientpref-night .mw-body-content a:hover, | |||
html.skin-theme-clientpref-night .mw-parser-output a:hover, | |||
html.skin-theme-clientpref-pureblack .mw-body-content a:hover, | |||
html.skin-theme-clientpref-pureblack .mw-parser-output a:hover { | |||
color: var(--c-link-night-hover); | |||
} | |||
html.skin-theme-clientpref-night .mw-body-content a.new, | |||
html.skin-theme-clientpref-night .mw-parser-output a.new, | |||
html.skin-theme-clientpref-pureblack .mw-body-content a.new, | |||
html.skin-theme-clientpref-pureblack .mw-parser-output a.new { | |||
color: var(--c-link-new-night); | |||
} | } | ||
| 第1,459行: | 第1,496行: | ||
letter-spacing: 0.1em; | letter-spacing: 0.1em; | ||
text-transform: uppercase; | text-transform: uppercase; | ||
} | } | ||
| 第1,534行: | 第1,570行: | ||
visibility 0s; | visibility 0s; | ||
background: | background: rgba(255, 255, 255, 0.97); | ||
border-radius: var(--radius-card); | border-radius: var(--radius-card); | ||
box-shadow: | box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25); | ||
padding: 1.25rem; | padding: 1.25rem; | ||
overflow-wrap: break-word; | overflow-wrap: break-word; | ||
| 第1,549行: | 第1,582行: | ||
} | } | ||
.anachronism-side-column::-webkit-scrollbar-thumb { | .anachronism-side-column::-webkit-scrollbar-thumb { | ||
background: rgba(var(--c-primary-rgb), 0. | background: rgba(var(--c-primary-rgb), 0.25); | ||
border-radius: 3px; | border-radius: 3px; | ||
} | } | ||
| 第1,570行: | 第1,603行: | ||
box-shadow: none !important; | box-shadow: none !important; | ||
border-radius: 0 !important; | border-radius: 0 !important; | ||
border-top: 1px solid var(-- | border-top: 1px solid rgba(var(--c-primary-rgb), 0.1); | ||
box-sizing: border-box !important; | box-sizing: border-box !important; | ||
} | } | ||
| 第1,576行: | 第1,609行: | ||
.anachronism-side-column .citizen-page-aside__heading { | .anachronism-side-column .citizen-page-aside__heading { | ||
font-size: 0.85rem; | font-size: 0.85rem; | ||
color: | color: #888; | ||
margin-bottom: 0.4rem; | margin-bottom: 0.4rem; | ||
} | } | ||
| 第1,603行: | 第1,636行: | ||
margin-top: 0.75rem; | margin-top: 0.75rem; | ||
padding-top: 0.75rem; | padding-top: 0.75rem; | ||
border-top: 1px solid var(-- | border-top: 1px solid rgba(var(--c-primary-rgb), 0.1); | ||
} | } | ||
.anachronism-side-column .citizen-page-footer .page-info__item { | .anachronism-side-column .citizen-page-footer .page-info__item { | ||
| 第1,611行: | 第1,644行: | ||
.anachronism-side-column .citizen-page-footer .page-info__label { | .anachronism-side-column .citizen-page-footer .page-info__label { | ||
font-size: 0.75rem; | font-size: 0.75rem; | ||
color: | color: #888; | ||
margin-bottom: 0.15rem; | margin-bottom: 0.15rem; | ||
} | } | ||
| 第1,617行: | 第1,650行: | ||
font-size: 0.85rem; | font-size: 0.85rem; | ||
line-height: 1.5; | line-height: 1.5; | ||
color: | color: #444; | ||
} | } | ||
/* | /* ============================================ | ||
TOC 修复 | |||
============================================ */ | |||
.anachronism-side-column .citizen-page-aside__sticky { | .anachronism-side-column .citizen-page-aside__sticky { | ||
| 第1,718行: | 第1,753行: | ||
} | } | ||
/* | /* 侧栏内的链接:白色卡片底,用主色系红 */ | ||
.anachronism-side-column .citizen-page-aside__link, | .anachronism-side-column .citizen-page-aside__link, | ||
.anachronism-side-column .citizen-page-aside__link:visited, | .anachronism-side-column .citizen-page-aside__link:visited, | ||
.anachronism-side-column #mw-panel-toc .citizen-toc-link, | .anachronism-side-column #mw-panel-toc .citizen-toc-link, | ||
.anachronism-side-column #mw-panel-toc .citizen-toc-link:visited { | .anachronism-side-column #mw-panel-toc .citizen-toc-link:visited { | ||
color: var(--c- | color: var(--c-primary) !important; | ||
} | } | ||
.anachronism-side-column .citizen-page-aside__link:hover, | .anachronism-side-column .citizen-page-aside__link:hover, | ||
| 第1,729行: | 第1,764行: | ||
.anachronism-side-column #mw-panel-toc .citizen-toc-link:hover, | .anachronism-side-column #mw-panel-toc .citizen-toc-link:hover, | ||
.anachronism-side-column #mw-panel-toc .citizen-toc-link:visited:hover { | .anachronism-side-column #mw-panel-toc .citizen-toc-link:visited:hover { | ||
color: var(--c- | color: var(--c-primary-hover) !important; | ||
} | } | ||
} | } | ||
| 第1,754行: | 第1,789行: | ||
font-size: 1.25rem; | font-size: 1.25rem; | ||
line-height: 1; | line-height: 1; | ||
box-shadow: -3px 0 12px rgba(0, 0, 0, 0. | box-shadow: -3px 0 12px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(255, 255, 255, 0.08) inset; | ||
transition: background var(--t-normal); | transition: background var(--t-normal); | ||
} | } | ||
| 第1,788行: | 第1,823行: | ||
pointer-events: auto; | pointer-events: auto; | ||
transition: none; | transition: none; | ||
} | } | ||
.anachronism-side-column .citizen-page-aside, | .anachronism-side-column .citizen-page-aside, | ||
| 第1,804行: | 第1,837行: | ||
} | } | ||
/* ---- 12.6 夜间模式 ---- */ | |||
html.skin-theme-clientpref-night .anachronism-side-column { | |||
background: rgba(30, 22, 24, 0.95) !important; | |||
box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6) !important; | |||
} | |||
html.skin-theme-clientpref-pureblack .anachronism-side-column { | |||
background: rgba(0, 0, 0, 0.95) !important; | |||
box-shadow: 0 8px 32px rgba(0, 0, 0, 0.8) !important; | |||
} | |||
html.skin-theme-clientpref-night .anachronism-side-column .citizen-page-aside__link, | |||
html.skin-theme-clientpref-night .anachronism-side-column .citizen-page-aside__link:visited, | |||
html.skin-theme-clientpref-night .anachronism-side-column #mw-panel-toc .citizen-toc-link, | |||
html.skin-theme-clientpref-night .anachronism-side-column #mw-panel-toc .citizen-toc-link:visited { | |||
color: var(--c-night-accent) !important; | |||
} | |||
html.skin-theme-clientpref-night .anachronism-side-column .citizen-page-aside__link:hover, | |||
html.skin-theme-clientpref-night .anachronism-side-column #mw-panel-toc .citizen-toc-link:hover { | |||
color: #fff !important; | |||
} | |||
html.skin-theme-clientpref-night .anachronism-aside-toggle { | |||
background: var(--c-primary-night); | |||
} | |||
html.skin-theme-clientpref-night .anachronism-aside-toggle:hover, | |||
html.skin-theme-clientpref-night body.anachronism-aside-open .anachronism-aside-toggle { | |||
background: var(--c-primary-hover); | |||
} | |||
/* ============================================ | /* ============================================ | ||
13. Citizen Sticky Header(滚动后浮层) | 13. Citizen Sticky Header(滚动后浮层) | ||
| 第1,810行: | 第1,870行: | ||
.citizen-sticky-header-background { | .citizen-sticky-header-background { | ||
background: | background: rgba(255, 255, 255, 0.25) !important; | ||
-webkit-backdrop-filter: | -webkit-backdrop-filter: blur(12px); | ||
backdrop-filter: | backdrop-filter: blur(12px); | ||
border-bottom: 1px solid var(-- | border-bottom: 1px solid rgba(var(--c-primary-rgb), 0.12) !important; | ||
box-shadow: 0 2px 12px rgba(0, 0, 0, 0. | box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06) !important; | ||
} | } | ||
.citizen-sticky-header-page-title { | .citizen-sticky-header-page-title { | ||
color: var(-- | color: var(--c-primary) !important; | ||
font-weight: bold !important; | font-weight: bold !important; | ||
} | } | ||
| 第1,827行: | 第1,886行: | ||
.citizen-sticky-header-backtotop { | .citizen-sticky-header-backtotop { | ||
color: var(-- | color: var(--c-primary) !important; | ||
} | } | ||
.citizen-sticky-header-backtotop:hover { | .citizen-sticky-header-backtotop:hover { | ||
background: var(-- | background: rgba(var(--c-primary-rgb), 0.08) !important; | ||
color: var(--c-primary-hover) !important; | |||
} | |||
.citizen-sticky-header .citizen-sticky-header-fake-button { | |||
color: var(--c-primary) !important; | |||
background: transparent !important; | |||
border: none !important; | |||
} | |||
.citizen-sticky-header .citizen-sticky-header-fake-button:hover { | |||
background: rgba(var(--c-primary-rgb), 0.08) !important; | |||
color: var(--c-primary-hover) !important; | |||
} | |||
.citizen-sticky-header .citizen-dropdown-summary { | |||
color: var(--c-primary) !important; | |||
} | |||
.citizen-sticky-header .citizen-dropdown-summary:hover { | |||
background: rgba(var(--c-primary-rgb), 0.08) !important; | |||
color: var(--c-primary-hover) !important; | |||
} | |||
.citizen-sticky-header .citizen-menu__card { | |||
background: #fff !important; | |||
border-radius: 0.5rem !important; | |||
box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2) !important; | |||
border: none !important; | |||
} | |||
.citizen-sticky-header .citizen-menu__card .mw-list-item > a, | |||
.citizen-sticky-header .citizen-menu__card .mw-list-item > a:visited { | |||
color: var(--c-link) !important; | |||
} | |||
.citizen-sticky-header .citizen-menu__card .mw-list-item > a:hover, | |||
.citizen-sticky-header .citizen-menu__card .mw-list-item > a:visited:hover { | |||
background: rgba(var(--c-primary-rgb), 0.08) !important; | |||
color: var(--c-link-hover) !important; | color: var(--c-link-hover) !important; | ||
} | } | ||
.citizen-sticky-header .citizen-menu__card .mw-list-item > a.new, | |||
.citizen-sticky-header .citizen-sticky-header- | .citizen-sticky-header .citizen-menu__card .mw-list-item > a.new:visited { | ||
color: var(--c-link) !important; | color: var(--c-link-new) !important; | ||
background: | } | ||
border: | |||
} | html.skin-theme-clientpref-night .citizen-sticky-header-background { | ||
. | background: rgba(30, 22, 24, 0.25) !important; | ||
background: | border-bottom-color: rgba(var(--c-night-accent-rgb), 0.15) !important; | ||
box-shadow: 0 2px 12px rgba(0, 0, 0, 0.4) !important; | |||
} | } | ||
html.skin-theme-clientpref-pureblack .citizen-sticky-header-background { | |||
.citizen-sticky-header .citizen-dropdown-summary { | background: rgba(0, 0, 0, 0.25) !important; | ||
color: var(--c- | box-shadow: 0 2px 12px rgba(0, 0, 0, 0.6) !important; | ||
} | } | ||
.citizen-sticky-header .citizen-dropdown-summary:hover { | html.skin-theme-clientpref-night .citizen-sticky-header-page-title, | ||
background: var(-- | html.skin-theme-clientpref-night .citizen-sticky-header-backtotop, | ||
color: | html.skin-theme-clientpref-night .citizen-sticky-header .citizen-sticky-header-fake-button, | ||
html.skin-theme-clientpref-night .citizen-sticky-header .citizen-dropdown-summary { | |||
color: var(--c-night-accent) !important; | |||
} | |||
html.skin-theme-clientpref-night .citizen-sticky-header-backtotop:hover, | |||
html.skin-theme-clientpref-night .citizen-sticky-header .citizen-sticky-header-fake-button:hover, | |||
html.skin-theme-clientpref-night .citizen-sticky-header .citizen-dropdown-summary:hover { | |||
background: rgba(var(--c-night-accent-rgb), 0.12) !important; | |||
color: #fff !important; | |||
} | } | ||
html.skin-theme-clientpref-night .citizen-sticky-header .citizen-menu__card { | |||
.citizen-sticky-header .citizen-menu__card { | background: #2a2022 !important; | ||
background: | |||
} | } | ||
.citizen-sticky-header .citizen-menu__card .mw-list-item > a, | html.skin-theme-clientpref-night .citizen-sticky-header .citizen-menu__card .mw-list-item > a, | ||
.citizen-sticky-header .citizen-menu__card .mw-list-item > a:visited { | html.skin-theme-clientpref-night .citizen-sticky-header .citizen-menu__card .mw-list-item > a:visited { | ||
color: var(--c-link) !important; | color: var(--c-link-night) !important; | ||
} | } | ||
.citizen-sticky-header .citizen-menu__card .mw-list-item > a:hover, | html.skin-theme-clientpref-night .citizen-sticky-header .citizen-menu__card .mw-list-item > a:hover, | ||
.citizen-sticky-header .citizen-menu__card .mw-list-item > a:visited:hover { | html.skin-theme-clientpref-night .citizen-sticky-header .citizen-menu__card .mw-list-item > a:visited:hover { | ||
background: var(-- | background: rgba(var(--c-night-accent-rgb), 0.12) !important; | ||
color: var(--c-link-hover) !important; | color: var(--c-link-night-hover) !important; | ||
} | } | ||
.citizen-sticky-header .citizen-menu__card .mw-list-item > a.new, | html.skin-theme-clientpref-night .citizen-sticky-header .citizen-menu__card .mw-list-item > a.new, | ||
.citizen-sticky-header .citizen-menu__card .mw-list-item > a.new:visited { | html.skin-theme-clientpref-night .citizen-sticky-header .citizen-menu__card .mw-list-item > a.new:visited { | ||
color: var(--c-link-new) !important; | color: var(--c-link-new-night) !important; | ||
} | } | ||
2026年10月4日 (日) 18:32的版本
/* ============================================
Citizen 皮肤定制
最后稳定版本:2026-10-04
结构:
0. 设计令牌
1. 字体
2. 全局页面布局
3. Header 隐藏
4. 偏好设置面板
5. 侧边工具栏 Rail
6. 全局页脚
7. 页面操作工具栏
8. 响应式断点
9. 评论区 + 主内容链接色
10. 申请账户页面
11. 站点头部
12. 主容器外的独立侧栏
13. Citizen Sticky Header
链接色规则(重要):
浏览器对 :visited 链接会用默认色,不显式声明会和未访问链接
视觉不一致。所有链接规则必须同时写 a 和 a:visited。
============================================ */
/* ============================================
0. 设计令牌
============================================ */
:root {
/* ---- 主色系 ---- */
--c-primary: #56000d;
--c-primary-hover: #8b1a2b;
--c-primary-night: #6b1010;
--c-primary-rgb: 86, 0, 13;
/* ---- 状态色 ---- */
--c-danger: #bf0017;
--c-danger-night: #ff8fa3;
/* ---- 夜间模式强调色 ---- */
--c-night-accent: #d4a5b0;
--c-night-accent-rgb: 212, 165, 176;
/* ---- 链接色系 ---- */
--c-link: #a52a2a; /* 白底可跳转链接(深红,主色亮 2 档) */
--c-link-hover: #c73e3e; /* 白底 hover(更亮的红) */
--c-link-new: #6b6b6b; /* 白底空页面链接(中性灰) */
--c-link-night: #e8a0a0; /* 暗底可跳转链接(淡珊瑚) */
--c-link-night-hover: #f5c0c0; /* 暗底 hover(更亮珊瑚) */
--c-link-new-night: #9a9a9a; /* 暗底空页面链接(中灰) */
/* ---- 通用过渡时长 ---- */
--t-fast: 0.15s;
--t-normal: 0.2s;
--t-slow: 0.3s;
/* ---- 圆角 ---- */
--radius-card: 0.25rem;
}
/* ============================================
1. 字体
============================================ */
@font-face {
font-family: 'LXGW WenKai Medium';
src: url('/fonts/LXGWWenKai-Medium.woff2') format('woff2');
font-weight: normal;
font-style: normal;
font-display: swap;
}
@font-face {
font-family: 'Seldom Scene';
src: url('/fonts/SeldomScene.woff2') format('woff2');
font-weight: normal;
font-style: normal;
font-display: swap;
}
@font-face {
font-family: 'ScriptSERIF';
src: url('/fonts/ScriptSERIF-ripTRASH.woff2') format('woff2');
font-weight: normal;
font-style: normal;
font-display: swap;
}
@font-face {
font-family: 'Roguedash Solid';
src: url('/fonts/Roguedash-Solid.woff2') format('woff2');
font-weight: normal;
font-style: normal;
font-display: swap;
}
@font-face {
font-family: 'MicYahei';
src: url('/fonts/MicYahei-Bold.woff2') format('woff2');
font-weight: 100 900;
font-style: normal;
font-display: swap;
}
@font-face {
font-family: 'Anurati';
src: url('/fonts/Anurati-Regular.woff2') format('woff2');
font-weight: normal;
font-style: normal;
font-display: swap;
}
@font-face {
font-family: 'Milton Grotesque';
src: url('/fonts/MiltonGrotesque.woff2') format('woff2');
font-weight: normal;
font-style: normal;
font-display: swap;
}
@font-face {
font-family: 'Narrow Streets';
src: url('/fonts/NARROWSTREETSRegular.woff2') format('woff2');
font-weight: normal;
font-style: normal;
font-display: swap;
}
@font-face {
font-family: 'JetBrains Mono';
src: url('/fonts/JetBrainsMono-Bold.woff2') format('woff2');
font-weight: 100 900;
font-style: normal;
font-display: swap;
}
:root {
--font-family-base: 'LXGW WenKai Medium', system-ui, sans-serif;
--font-family-seldom: 'Seldom Scene', 'LXGW WenKai Medium', system-ui, sans-serif;
--font-family-script: 'ScriptSERIF', 'LXGW WenKai Medium', system-ui, sans-serif;
--font-family-rogue: 'Roguedash Solid', 'LXGW WenKai Medium', system-ui, sans-serif;
--font-family-yahei: 'MicYahei', system-ui, sans-serif;
--font-family-anurati: 'Anurati', 'LXGW WenKai Medium', system-ui, sans-serif;
--font-family-milton: 'Milton Grotesque', 'LXGW WenKai Medium', system-ui, sans-serif;
--font-family-narrow: 'Narrow Streets', 'LXGW WenKai Medium', system-ui, sans-serif;
--font-family-mono: 'JetBrains Mono', 'LXGW WenKai Medium', system-ui, monospace;
}
html, body, .mw-body, .mw-parser-output {
font-family: var(--font-family-base);
}
.font-seldom { font-family: var(--font-family-seldom); }
.font-script { font-family: var(--font-family-script); }
.font-rogue { font-family: var(--font-family-rogue); }
.font-yahei { font-family: var(--font-family-yahei); }
.font-anurati { font-family: var(--font-family-anurati); }
.font-milton { font-family: var(--font-family-milton); }
.font-narrow { font-family: var(--font-family-narrow); }
.font-mono { font-family: var(--font-family-mono); }
/* ============================================
2. 全局页面布局
============================================ */
/* 2.1 固定背景 */
body {
background-image: url('/index.php?title=Special:FilePath/红花1.jpg');
background-attachment: fixed;
background-size: cover;
background-position: center;
background-repeat: no-repeat;
min-height: 100vh;
}
/* 2.2 页面容器:flex column,让 mw-body 吸收短页面剩余空间 */
.citizen-page-container {
padding: 1.5rem 1.5rem 0 1.5rem;
box-sizing: border-box;
min-height: 100vh;
display: flex;
flex-direction: column;
}
/* 2.3 主内容卡片 */
.mw-body {
position: relative;
border-radius: var(--radius-card);
box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
padding: 2rem 2.5rem;
width: 100%;
max-width: 100%;
margin: 0 auto;
box-sizing: border-box;
/* 短页面时吸收剩余空间;长页面保持自然高度 */
flex: 1 0 auto;
background: rgba(255, 255, 255, 0.97);
}
html.skin-theme-clientpref-night .mw-body {
background: rgba(30, 22, 24, 0.95);
box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6);
}
html.skin-theme-clientpref-pureblack .mw-body {
background: rgba(0, 0, 0, 0.95);
box-shadow: 0 8px 32px rgba(0, 0, 0, 0.8);
}
/* 2.4 宽度偏好 */
html.citizen-feature-custom-width-clientpref-narrow .mw-body {
max-width: 55rem !important;
}
html.citizen-feature-custom-width-clientpref-standard .mw-body {
max-width: 80rem !important;
}
html.citizen-feature-custom-width-clientpref-wide .mw-body {
max-width: 110rem !important;
}
html.citizen-feature-custom-width-clientpref-full .mw-body {
max-width: 100% !important;
}
/* ============================================
3. Citizen Header 隐藏(保留偏好设置)
============================================ */
.citizen-header {
position: fixed !important;
top: 0 !important;
left: 0 !important;
width: 0 !important;
height: 0 !important;
overflow: visible !important;
background: transparent !important;
border: none !important;
box-shadow: none !important;
z-index: 9999;
pointer-events: none;
}
.citizen-header__logo,
.citizen-search,
.citizen-drawer,
.citizen-header__start,
.citizen-userMenu,
.citizen-preferences-dropdown > details {
display: none !important;
}
.citizen-preferences-dropdown {
display: block !important;
pointer-events: auto;
}
/* ============================================
4. 偏好设置面板
============================================ */
body:not(.page-Special_Preferences) #citizen-preferences-dropdown__card {
position: fixed !important;
top: 50% !important;
left: 50% !important;
transform: translate(-50%, -50%) !important;
width: 32rem !important;
max-width: 92vw !important;
min-height: 20rem !important;
max-height: 80vh !important;
overflow-y: auto !important;
background: #fff !important;
border-radius: 0.75rem !important;
box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35) !important;
padding: 1rem !important;
z-index: 100000 !important;
display: none;
}
body:not(.page-Special_Preferences) #citizen-preferences-details[open] + #citizen-preferences-dropdown__card,
body:not(.page-Special_Preferences).citizen-preferences-shown #citizen-preferences-dropdown__card {
display: block !important;
}
.citizen-preferences-close {
position: absolute;
top: 0.5rem;
right: 0.75rem;
background: transparent;
border: none;
font-size: 1.5rem;
line-height: 1;
color: var(--c-primary);
cursor: pointer;
padding: 0.25rem 0.5rem;
z-index: 10;
}
.citizen-preferences-close:hover {
color: var(--c-primary-hover);
}
@media (max-width: 700px) {
body:not(.page-Special_Preferences) #citizen-preferences-dropdown__card {
top: 0 !important;
left: 0 !important;
right: 0 !important;
bottom: 0 !important;
width: 100vw !important;
max-width: 100vw !important;
height: 100vh !important;
min-height: 100vh !important;
max-height: 100vh !important;
transform: none !important;
border-radius: 0 !important;
padding: 1rem !important;
overflow-y: auto !important;
z-index: 100000 !important;
}
}
/* ============================================
5. 侧边工具栏 Rail
面板内链接用主色系(红),与暗红标题栏同系统。
必须同时声明 a 和 a:visited,否则浏览器会用默认色。
============================================ */
.rail-container {
position: fixed;
top: 5rem;
right: 0;
z-index: 1000;
display: flex;
flex-direction: column;
gap: 0.25rem;
transition: transform var(--t-slow) ease;
}
body.rail-open .rail-container {
transform: translateX(-19.5rem);
}
.rail-button {
width: 2.5rem;
height: 2.5rem;
border: none;
border-radius: 0.5rem 0 0 0.5rem;
background: var(--c-primary);
color: #fff;
cursor: pointer;
display: flex;
align-items: center;
justify-content: center;
font-size: 1.15rem;
box-shadow: -2px 0 8px rgba(0, 0, 0, 0.2);
transition: background var(--t-normal), transform var(--t-normal);
padding: 0;
}
.rail-button:hover {
background: var(--c-primary-hover);
transform: translateX(-2px);
}
.rail-button.is-active {
background: var(--c-primary-hover);
transform: translateX(-4px);
}
.rail-button__icon {
line-height: 1;
pointer-events: none;
}
.rail-panel {
position: fixed;
top: 0;
right: 0;
width: 20rem;
height: 100vh;
background: #fff;
box-shadow: -4px 0 20px rgba(0, 0, 0, 0.25);
z-index: 1001;
transform: translateX(100%);
transition: transform var(--t-slow) ease;
display: flex;
flex-direction: column;
overflow: hidden;
}
body.rail-open .rail-panel {
transform: translateX(0);
}
.rail-panel__header {
display: flex;
align-items: center;
justify-content: space-between;
padding: 1rem 1.25rem;
background: var(--c-primary);
color: #fff;
flex-shrink: 0;
}
.rail-panel__title {
font-size: 1.1rem;
font-weight: bold;
letter-spacing: 0.1em;
}
.rail-panel__close {
background: transparent;
border: none;
color: #fff;
font-size: 1.5rem;
line-height: 1;
cursor: pointer;
padding: 0 0.25rem;
}
.rail-panel__close:hover {
opacity: 0.7;
}
.rail-panel__content {
padding: 1.25rem;
overflow-y: auto;
flex: 1;
}
.rail-panel__loading {
color: #888;
text-align: center;
padding: 2rem 0;
}
/* 隐藏 parser 自动生成的目录 */
.rail-panel__content .toc,
.rail-panel__content #toc {
display: none !important;
}
/* 面板内的排版(模板渲染的 HTML) */
.rail-panel__content .mw-parser-output h3 {
font-size: 1rem;
color: var(--c-primary);
border-left: 3px solid var(--c-primary);
padding-left: 0.5rem;
margin: 1rem 0 0.5rem 0;
}
.rail-panel__content .mw-parser-output h3:first-child {
margin-top: 0;
}
.rail-panel__content .mw-parser-output ul {
list-style: none;
padding: 0;
margin: 0 0 0.75rem 0;
}
.rail-panel__content .mw-parser-output li {
margin-bottom: 0.25rem;
}
/* 面板内链接(红) */
.rail-panel__content .mw-parser-output a,
.rail-panel__content .mw-parser-output a:visited {
display: block;
padding: 0.5rem 0.75rem;
color: var(--c-primary);
text-decoration: none;
border-radius: 0.4rem;
transition: background var(--t-fast), color var(--t-fast);
}
.rail-panel__content .mw-parser-output a:hover,
.rail-panel__content .mw-parser-output a:visited:hover {
background: rgba(var(--c-primary-rgb), 0.08);
color: var(--c-primary-hover);
}
.rail-panel__content .mw-parser-output a.new,
.rail-panel__content .mw-parser-output a.new:visited {
color: var(--c-danger);
}
.rail-panel__content .mw-parser-output a.new:hover,
.rail-panel__content .mw-parser-output a.new:visited:hover {
color: var(--c-danger);
text-decoration: underline;
}
.rail-overlay {
position: fixed;
top: 0;
right: 0;
bottom: 0;
left: 0;
background: rgba(0, 0, 0, 0.4);
z-index: 999;
opacity: 0;
pointer-events: none;
transition: opacity var(--t-slow);
}
body.rail-open .rail-overlay {
opacity: 1;
pointer-events: auto;
}
/* 工具栏账户区的权限组标签 */
.rail-account-groups {
display: flex;
flex-wrap: wrap;
align-items: center;
gap: 0.35rem;
font-size: 0.9rem;
color: #555;
margin-bottom: 0.75rem;
line-height: 1.4;
}
.rail-account-groups__label {
flex: 0 0 100%;
margin-bottom: 0.2rem;
color: #888;
font-size: 0.85rem;
}
a.rail-group-tag,
a.rail-group-tag:visited {
display: inline-block;
padding: 0.15rem 0.5rem;
background: rgba(var(--c-primary-rgb), 0.1);
color: var(--c-primary);
border-radius: 0.25rem;
text-decoration: none;
font-size: 0.85rem;
white-space: nowrap;
transition: background var(--t-fast);
}
a.rail-group-tag:hover,
a.rail-group-tag:visited:hover {
background: rgba(var(--c-primary-rgb), 0.22);
}
/* ---- 5.1 夜间模式 ---- */
html.skin-theme-clientpref-night .rail-panel {
background: rgba(30, 22, 24, 0.98);
box-shadow: -4px 0 20px rgba(0, 0, 0, 0.6);
}
html.skin-theme-clientpref-pureblack .rail-panel {
background: rgba(0, 0, 0, 0.98);
box-shadow: -4px 0 20px rgba(0, 0, 0, 0.8);
}
html.skin-theme-clientpref-night .rail-panel__header,
html.skin-theme-clientpref-pureblack .rail-panel__header {
background: var(--c-primary-night);
}
html.skin-theme-clientpref-night .rail-panel__loading {
color: #777;
}
html.skin-theme-clientpref-night .rail-panel__content .mw-parser-output h3 {
color: var(--c-night-accent);
border-left-color: var(--c-night-accent);
}
html.skin-theme-clientpref-night .rail-panel__content .mw-parser-output a,
html.skin-theme-clientpref-night .rail-panel__content .mw-parser-output a:visited {
color: var(--c-night-accent);
}
html.skin-theme-clientpref-night .rail-panel__content .mw-parser-output a:hover,
html.skin-theme-clientpref-night .rail-panel__content .mw-parser-output a:visited:hover {
background: rgba(var(--c-night-accent-rgb), 0.12);
color: #fff;
}
html.skin-theme-clientpref-night .rail-panel__content .mw-parser-output a.new,
html.skin-theme-clientpref-night .rail-panel__content .mw-parser-output a.new:visited {
color: var(--c-danger-night);
}
html.skin-theme-clientpref-night .rail-account-groups {
color: #bbb;
}
html.skin-theme-clientpref-night .rail-account-groups__label {
color: #888;
}
html.skin-theme-clientpref-night a.rail-group-tag,
html.skin-theme-clientpref-night a.rail-group-tag:visited {
background: rgba(var(--c-night-accent-rgb), 0.15);
color: var(--c-night-accent);
}
html.skin-theme-clientpref-night a.rail-group-tag:hover,
html.skin-theme-clientpref-night a.rail-group-tag:visited:hover {
background: rgba(var(--c-night-accent-rgb), 0.28);
}
html.skin-theme-clientpref-night .rail-button {
background: var(--c-primary-night);
}
html.skin-theme-clientpref-night .rail-button:hover,
html.skin-theme-clientpref-night .rail-button.is-active {
background: var(--c-primary-hover);
}
/* ============================================
6. 全局页脚(暗色玻璃)
与 mw-body 的间距固定为 2rem。
短页面的空白由 .mw-body 吸收(flex-grow),footer 贴底。
============================================ */
.citizen-footer {
margin: 2rem -1.5rem 0 -1.5rem;
padding: 3rem 2rem 2rem;
width: calc(100% + 3rem);
box-sizing: border-box;
background: rgba(42, 0, 6, 0.65);
-webkit-backdrop-filter: blur(16px);
backdrop-filter: blur(16px);
border-top: 1px solid rgba(255, 255, 255, 0.12);
color: rgba(255, 255, 255, 0.85);
flex-shrink: 0;
}
.citizen-footer > * {
max-width: 80rem;
margin-left: auto;
margin-right: auto;
}
.citizen-footer__content {
display: block;
text-align: center;
padding-bottom: 2rem;
border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}
.citizen-footer__siteinfo {
display: inline-block;
text-align: center;
margin: 0 auto;
}
.citizen-footer__sitetitle {
display: flex;
align-items: center;
justify-content: center;
gap: 0.75rem;
font-size: 1.5rem;
font-weight: bold;
color: #fff;
letter-spacing: 0.05em;
margin-bottom: 0.75rem;
}
.citizen-footer__sitetitle .mw-logo-icon {
width: 2.5rem;
height: 2.5rem;
filter: brightness(0) invert(1);
}
.citizen-footer__sitetitle .mw-logo-wordmark {
color: #fff;
font-family: var(--font-family-narrow);
text-transform: uppercase;
}
.citizen-footer__desc {
color: rgba(255, 255, 255, 0.75);
font-size: 0.95rem;
line-height: 1.7;
margin: 0 auto;
max-width: 40rem;
}
#footer-places-privacy,
#footer-places-about,
#footer-places-disclaimers,
#footer-places {
display: none;
}
.citizen-footer__bottom {
padding-top: 1.5rem;
text-align: center;
}
#footer-tagline {
color: rgba(255, 255, 255, 0.6);
font-size: 0.85rem;
letter-spacing: 0.15em;
text-transform: uppercase;
}
/* footer 内的链接:暗底用亮金 + 粉红 */
.citizen-footer a,
.citizen-footer a:visited {
color: var(--c-link-night) !important;
text-decoration: none;
transition: color var(--t-fast);
}
.citizen-footer a:hover,
.citizen-footer a:visited:hover {
color: var(--c-link-night-hover) !important;
text-decoration: underline;
}
.citizen-footer a.new,
.citizen-footer a.new:visited {
color: var(--c-link-new-night) !important;
}
html.skin-theme-clientpref-night .citizen-footer,
html.skin-theme-clientpref-pureblack .citizen-footer {
background: rgba(0, 0, 0, 0.7);
border-top-color: rgba(255, 255, 255, 0.08);
}
/* ============================================
7. 页面操作工具栏
============================================ */
.citizen-page-header,
.citizen-page-header-inner {
position: static !important;
}
.citizen-page-header-inner {
display: flex !important;
align-items: center !important;
justify-content: space-between !important;
gap: 1rem !important;
flex-wrap: wrap !important;
}
.citizen-page-heading {
flex: 1 1 auto !important;
min-width: 0 !important;
}
#siteSub {
display: none !important;
}
.citizen-page-actions {
position: static !important;
display: flex !important;
flex-direction: row !important;
align-items: center !important;
flex-wrap: wrap !important;
gap: 0.25rem !important;
margin: 0 !important;
padding: 0 !important;
flex: 0 0 auto !important;
}
.citizen-page-actions .citizen-menu__heading {
display: none !important;
}
.citizen-page-actions .citizen-menu,
.citizen-page-actions .citizen-menu__content,
.citizen-page-actions .citizen-menu__content-list {
display: flex !important;
flex-direction: row !important;
align-items: center !important;
flex-wrap: wrap !important;
gap: 0.25rem !important;
margin: 0 !important;
padding: 0 !important;
list-style: none !important;
}
.citizen-page-actions .mw-list-item,
.citizen-page-actions .citizen-share-trigger,
.citizen-page-actions .citizen-dropdown-details {
flex: 0 0 auto !important;
width: auto !important;
margin: 0 !important;
padding: 0 !important;
}
.citizen-page-actions .citizen-share-trigger { order: 0 !important; }
.citizen-page-actions #ca-view { order: 1 !important; }
.citizen-page-actions #ca-ve-edit { order: 2 !important; }
.citizen-page-actions #ca-edit { order: 3 !important; }
.citizen-page-actions #ca-history { order: 4 !important; }
.citizen-page-actions #ca-nstab-main { order: 5 !important; }
.citizen-page-actions #ca-talk { order: 6 !important; }
.citizen-page-actions #citizen-page-more-dropdown { order: 7 !important; }
.citizen-page-actions .mw-list-item > a,
.citizen-page-actions .mw-list-item > a:visited,
.citizen-page-actions .citizen-share,
.citizen-page-actions .citizen-dropdown-summary {
all: unset !important;
display: inline-flex !important;
align-items: center !important;
justify-content: center !important;
gap: 0.35rem !important;
height: 2rem !important;
padding: 0 0.6rem !important;
margin: 0 !important;
border: none !important;
border-radius: 0.4rem !important;
background: transparent !important;
color: var(--c-primary) !important;
font-size: 0.82rem !important;
line-height: 1 !important;
cursor: pointer !important;
text-decoration: none !important;
box-sizing: border-box !important;
white-space: nowrap !important;
transition: background var(--t-fast), color var(--t-fast) !important;
}
.citizen-page-actions .mw-list-item > a:hover,
.citizen-page-actions .citizen-share:hover,
.citizen-page-actions .citizen-dropdown-summary:hover {
background: rgba(var(--c-primary-rgb), 0.08) !important;
color: var(--c-primary-hover) !important;
}
.citizen-page-actions .mw-list-item.selected > a {
background: rgba(var(--c-primary-rgb), 0.12) !important;
font-weight: bold !important;
}
.citizen-page-actions .citizen-ui-icon {
font-size: 1rem !important;
flex-shrink: 0 !important;
}
.citizen-page-actions > .citizen-menu .citizen-keyboard-hint-keys,
.citizen-page-actions > .citizen-menu kbd {
display: none !important;
}
.citizen-page-actions .citizen-share-trigger,
.citizen-page-actions .citizen-dropdown-details {
position: relative !important;
}
.citizen-page-actions #citizen-page-actions-more__card {
position: absolute !important;
top: calc(100% + 0.5rem) !important;
right: 0 !important;
left: auto !important;
min-width: 12rem !important;
max-width: calc(100vw - 4rem) !important;
background: #fff !important;
border-radius: 0.5rem !important;
box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2) !important;
padding: 0.5rem !important;
z-index: 100 !important;
}
.citizen-page-actions #citizen-page-actions-more__card .mw-list-item > a,
.citizen-page-actions #citizen-page-actions-more__card .mw-list-item > a:visited {
all: unset !important;
display: flex !important;
align-items: center !important;
justify-content: flex-start !important;
gap: 0.6rem !important;
width: 100% !important;
height: auto !important;
padding: 0.5rem 0.75rem !important;
border-radius: 0.4rem !important;
color: var(--c-primary) !important;
font-size: 0.9rem !important;
cursor: pointer !important;
text-decoration: none !important;
box-sizing: border-box !important;
white-space: normal !important;
}
.citizen-page-actions #citizen-page-actions-more__card .mw-list-item > a:hover,
.citizen-page-actions #citizen-page-actions-more__card .mw-list-item > a:visited:hover {
background: rgba(var(--c-primary-rgb), 0.08) !important;
color: var(--c-primary-hover) !important;
}
.citizen-page-actions #citizen-page-actions-more__card .mw-list-item > a > span:not(.citizen-ui-icon),
.citizen-page-actions #citizen-page-actions-more__card .citizen-keyboard-hint-keys,
.citizen-page-actions #citizen-page-actions-more__card kbd {
display: inline !important;
}
html.skin-theme-clientpref-night .citizen-page-actions .mw-list-item > a,
html.skin-theme-clientpref-night .citizen-page-actions .mw-list-item > a:visited,
html.skin-theme-clientpref-night .citizen-page-actions .citizen-share,
html.skin-theme-clientpref-night .citizen-page-actions .citizen-dropdown-summary {
color: var(--c-night-accent) !important;
}
html.skin-theme-clientpref-night .citizen-page-actions .mw-list-item > a:hover,
html.skin-theme-clientpref-night .citizen-page-actions .citizen-share:hover,
html.skin-theme-clientpref-night .citizen-page-actions .citizen-dropdown-summary:hover {
background: rgba(var(--c-night-accent-rgb), 0.12) !important;
color: #fff !important;
}
html.skin-theme-clientpref-night .citizen-page-actions .mw-list-item.selected > a {
background: rgba(var(--c-night-accent-rgb), 0.16) !important;
}
html.skin-theme-clientpref-night .citizen-page-actions #citizen-page-actions-more__card {
background: #2a2022 !important;
}
html.skin-theme-clientpref-night .citizen-page-actions #citizen-page-actions-more__card .mw-list-item > a,
html.skin-theme-clientpref-night .citizen-page-actions #citizen-page-actions-more__card .mw-list-item > a:visited {
color: #ddd !important;
}
html.skin-theme-clientpref-night .citizen-page-actions #citizen-page-actions-more__card .mw-list-item > a:hover {
background: rgba(var(--c-night-accent-rgb), 0.12) !important;
color: #fff !important;
}
/* ============================================
8. 响应式断点
============================================ */
@media (max-width: 1100px) {
.citizen-page-actions .mw-list-item > a,
.citizen-page-actions .citizen-share,
.citizen-page-actions .citizen-dropdown-summary {
width: 2rem !important;
padding: 0 !important;
height: 2rem !important;
}
.citizen-page-actions .mw-list-item > a > span:not(.citizen-ui-icon),
.citizen-page-actions .citizen-share > span:not(.citizen-ui-icon),
.citizen-page-actions .citizen-dropdown-summary > span:not(.citizen-ui-icon) {
display: none !important;
}
.citizen-page-actions #citizen-page-actions-more__card {
position: fixed !important;
top: 50% !important;
left: 50% !important;
right: auto !important;
bottom: auto !important;
transform: translate(-50%, -50%) !important;
width: 85vw !important;
max-width: 22rem !important;
max-height: 70vh !important;
overflow-y: auto !important;
z-index: 2000 !important;
}
.citizen-page-actions #citizen-page-actions-more__card .citizen-menu,
.citizen-page-actions #citizen-page-actions-more__card .citizen-menu__content,
.citizen-page-actions #citizen-page-actions-more__card .citizen-menu__content-list {
flex-direction: column !important;
align-items: stretch !important;
flex-wrap: nowrap !important;
}
.citizen-page-actions #citizen-page-actions-more__card .mw-list-item,
.citizen-page-actions #citizen-page-actions-more__card .mw-list-item > a {
width: 100% !important;
}
}
@media (max-width: 700px) {
.citizen-page-container {
padding: 0.75rem 0.75rem 0 0.75rem;
}
.mw-body {
padding: 1.25rem 1rem;
border-radius: 0.375rem;
}
.rail-panel {
width: 80vw;
}
.rail-container {
top: 4rem;
}
body.rail-open .rail-container {
transform: translateX(calc(-80vw + 0.5rem));
}
.citizen-footer {
margin: 1rem -0.75rem 0 -0.75rem;
width: calc(100% + 1.5rem);
padding: 2rem 1rem 1.5rem;
}
}
/* ============================================
9. 评论区 + 主内容链接色
============================================ */
.comments-body.comments-body--page-level {
margin: 2rem auto 0 auto !important;
padding: 2rem 2.5rem !important;
background: rgba(255, 255, 255, 0.97) !important;
border-radius: var(--radius-card) !important;
box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25) !important;
box-sizing: border-box !important;
width: 100% !important;
max-width: 100% !important;
flex-shrink: 0;
}
html.citizen-feature-custom-width-clientpref-narrow .comments-body.comments-body--page-level {
max-width: 55rem !important;
}
html.citizen-feature-custom-width-clientpref-standard .comments-body.comments-body--page-level {
max-width: 80rem !important;
}
html.citizen-feature-custom-width-clientpref-wide .comments-body.comments-body--page-level {
max-width: 110rem !important;
}
html.citizen-feature-custom-width-clientpref-full .comments-body.comments-body--page-level {
max-width: 100% !important;
}
.comments-body .c-item.full {
display: flow-root !important;
width: 100% !important;
max-width: 100% !important;
margin: 0 0 1rem 0 !important;
padding: 1rem !important;
background: rgba(var(--c-primary-rgb), 0.03) !important;
border: none !important;
border-radius: 0.75rem !important;
box-sizing: border-box !important;
}
.comments-body .c-item.full:last-child {
margin-bottom: 0 !important;
}
.comments-body .c-container {
display: flow-root !important;
width: 100% !important;
max-width: 100% !important;
padding: 0 !important;
margin: 0 !important;
border: none !important;
box-sizing: border-box !important;
}
.comments-body .visualClear {
clear: both !important;
height: 0 !important;
margin: 0 !important;
padding: 0 !important;
}
.comments-body .c-item.reply,
.comments-body .c-item.nested-in-parent {
display: flow-root !important;
margin: 2rem 0 0 1.5rem !important;
width: calc(100% - 1.5rem) !important;
max-width: calc(100% - 1.5rem) !important;
background: rgba(var(--c-primary-rgb), 0.08) !important;
border-left: 3px solid rgba(var(--c-primary-rgb), 0.35) !important;
border-radius: 0 0.75rem 0.75rem 0 !important;
padding: 0.875rem 1rem 0.875rem calc(1rem - 3px) !important;
box-sizing: border-box !important;
position: relative !important;
z-index: 1 !important;
}
.comments-body .c-avatar {
display: none !important;
}
.comments-body .c-user {
display: flex !important;
flex-wrap: wrap !important;
align-items: center !important;
gap: 0.5rem !important;
font-size: 0.85rem !important;
margin: 0 0 0.5rem 0 !important;
padding: 0 !important;
color: #666 !important;
}
.comments-body .c-user a,
.comments-body .c-user a:visited {
color: var(--c-link) !important;
font-weight: bold !important;
text-decoration: none !important;
}
.comments-body .c-user a:hover,
.comments-body .c-user a:visited:hover {
color: var(--c-link-hover) !important;
text-decoration: underline !important;
}
.comments-body .c-user a.new,
.comments-body .c-user a.new:visited {
color: var(--c-link-new) !important;
}
.comments-body .c-time,
.comments-body .c-score,
.comments-body .c-score-title {
font-size: 0.8rem !important;
color: #999 !important;
font-weight: normal !important;
}
.comments-body .c-comment {
width: 100% !important;
max-width: 100% !important;
box-sizing: border-box !important;
overflow-wrap: break-word !important;
word-wrap: break-word !important;
word-break: break-word !important;
font-size: 0.9rem !important;
line-height: 1.6 !important;
padding: 0 !important;
margin: 0 !important;
border: none !important;
}
.comments-body .c-actions {
display: flex !important;
flex-wrap: wrap !important;
align-items: center !important;
gap: 0.4rem !important;
margin: 0.75rem 0 1rem 0 !important;
padding: 0.35rem 0.6rem !important;
background: rgba(var(--c-primary-rgb), 0.06) !important;
border: 1px solid rgba(var(--c-primary-rgb), 0.1) !important;
border-radius: 0.5rem !important;
box-sizing: border-box !important;
font-size: 0 !important;
line-height: 0 !important;
color: transparent !important;
position: relative !important;
z-index: 5 !important;
}
.comments-body .c-actions a,
.comments-body .c-actions a:visited,
.comments-body .c-actions > span {
display: inline-flex !important;
align-items: center !important;
justify-content: center !important;
padding: 0.3rem 0.75rem !important;
background: transparent !important;
color: var(--c-primary) !important;
text-decoration: none !important;
border-radius: 0.4rem !important;
font-size: 0.8rem !important;
line-height: 1.2 !important;
white-space: nowrap !important;
transition: background var(--t-fast), color var(--t-fast) !important;
border: none !important;
margin: 0 !important;
box-sizing: border-box !important;
flex: 0 0 auto !important;
font-family: inherit !important;
}
.comments-body .c-actions a:hover,
.comments-body .c-actions a:visited:hover {
background: var(--c-primary) !important;
color: #fff !important;
}
.comments-body .c-actions a[href*="action=delete"],
.comments-body .c-actions a[href*="delete"],
.comments-body .c-actions .comment-delete-link,
.comments-body .c-actions .c-delete a {
color: var(--c-danger) !important;
}
.comments-body .c-actions a[href*="action=delete"]:hover,
.comments-body .c-actions a[href*="delete"]:hover,
.comments-body .c-actions .comment-delete-link:hover,
.comments-body .c-actions .c-delete a:hover {
background: var(--c-danger) !important;
color: #fff !important;
}
.comments-body .c-actions .comments-edit {
color: var(--c-primary-hover) !important;
}
.comments-body .c-actions .comments-edit:hover {
background: var(--c-primary-hover) !important;
color: #fff !important;
}
.comments-body textarea,
.comments-body #comment {
width: 100% !important;
max-width: 100% !important;
height: auto !important;
min-height: 5rem !important;
font-size: 0.95rem !important;
padding: 0.5rem 0.75rem !important;
border: 1px solid rgba(var(--c-primary-rgb), 0.2) !important;
border-radius: 0.4rem !important;
background: #fff !important;
box-sizing: border-box !important;
resize: vertical !important;
font-family: inherit !important;
line-height: 1.6 !important;
display: block !important;
}
.comments-body .c-form-title {
font-size: 1rem;
font-weight: bold;
color: var(--c-primary);
margin-bottom: 0.75rem;
}
.comments-body .site-button {
background: var(--c-primary);
color: #fff;
border: none;
padding: 0.5rem 1.2rem;
border-radius: 0.4rem;
font-size: 0.9rem;
cursor: pointer;
margin-right: 0.5rem;
margin-top: 0.75rem;
font-family: inherit;
transition: background var(--t-normal);
}
.comments-body .site-button:hover {
background: var(--c-primary-hover);
}
.comments-body .c-comment-edit-form-save,
.comments-body .c-comment-edit-form-cancel {
font-size: 0.85rem;
padding: 0.35rem 0.9rem;
margin-right: 0.5rem;
border-radius: 0.4rem;
border: none;
cursor: pointer;
font-family: inherit;
}
.comments-body .c-comment-edit-form-save {
background: var(--c-primary);
color: #fff;
}
.comments-body .c-comment-edit-form-save:hover {
background: var(--c-primary-hover);
}
.comments-body .c-comment-edit-form-cancel {
background: transparent;
color: var(--c-primary);
border: 1px solid rgba(var(--c-primary-rgb), 0.2);
}
.comments-body .c-order {
font-size: 0.85rem;
color: #666;
margin-bottom: 0.5rem;
}
.comments-body .c-order select {
padding: 0.25rem 0.5rem;
border: 1px solid rgba(var(--c-primary-rgb), 0.2);
border-radius: 0.3rem;
font-family: inherit;
font-size: 0.85rem;
}
.comments-body .c-spy a,
.comments-body .c-spy a:visited {
color: var(--c-link);
text-decoration: none;
font-size: 0.85rem;
}
.comments-body .c-spy a:hover,
.comments-body .c-spy a:visited:hover {
color: var(--c-link-hover);
text-decoration: underline;
}
.mw-body-content > .printfooter {
display: none !important;
}
/* ---- 9.1 移动端适配 ---- */
@media (max-width: 700px) {
.comments-body.comments-body--page-level {
padding: 1.25rem 1rem !important;
border-radius: 0.375rem !important;
}
.comments-body .c-item.full {
padding: 0.75rem !important;
margin-bottom: 0.75rem !important;
}
.comments-body .c-item.reply,
.comments-body .c-item.nested-in-parent {
margin: 1.5rem 0 0 0.75rem !important;
width: calc(100% - 0.75rem) !important;
max-width: calc(100% - 0.75rem) !important;
padding: 0.7rem 0.7rem 0.7rem calc(0.7rem - 3px) !important;
}
.comments-body .c-actions {
padding: 0.25rem 0.4rem !important;
gap: 0.25rem !important;
}
.comments-body .c-actions a,
.comments-body .c-actions > span {
padding: 0.25rem 0.6rem !important;
font-size: 0.75rem !important;
}
.comments-body .c-user {
font-size: 0.8rem !important;
gap: 0.35rem !important;
}
.comments-body .c-time,
.comments-body .c-score {
font-size: 0.75rem !important;
}
}
/* ---- 9.2 夜间模式 ---- */
html.skin-theme-clientpref-night .comments-body.comments-body--page-level {
background: rgba(30, 22, 24, 0.95) !important;
box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6) !important;
}
html.skin-theme-clientpref-pureblack .comments-body.comments-body--page-level {
background: rgba(0, 0, 0, 0.95) !important;
box-shadow: 0 8px 32px rgba(0, 0, 0, 0.8) !important;
}
html.skin-theme-clientpref-night .comments-body .c-item.full {
background: rgba(60, 40, 45, 0.4) !important;
}
html.skin-theme-clientpref-night .comments-body .c-item.reply,
html.skin-theme-clientpref-night .comments-body .c-item.nested-in-parent {
background: rgba(60, 40, 45, 0.65) !important;
border-left-color: rgba(var(--c-night-accent-rgb), 0.4) !important;
}
html.skin-theme-clientpref-night .comments-body textarea,
html.skin-theme-clientpref-night .comments-body #comment {
background: rgba(30, 22, 24, 0.6) !important;
border-color: rgba(var(--c-night-accent-rgb), 0.25) !important;
color: #ddd !important;
}
html.skin-theme-clientpref-night .comments-body .c-form-title {
color: var(--c-night-accent);
}
html.skin-theme-clientpref-night .comments-body .c-user {
color: #999 !important;
}
html.skin-theme-clientpref-night .comments-body .c-user a,
html.skin-theme-clientpref-night .comments-body .c-user a:visited {
color: var(--c-link-night) !important;
}
html.skin-theme-clientpref-night .comments-body .c-user a:hover,
html.skin-theme-clientpref-night .comments-body .c-user a:visited:hover {
color: var(--c-link-night-hover) !important;
}
html.skin-theme-clientpref-night .comments-body .c-user a.new,
html.skin-theme-clientpref-night .comments-body .c-user a.new:visited {
color: var(--c-link-new-night) !important;
}
html.skin-theme-clientpref-night .comments-body .c-actions {
background: rgba(60, 40, 45, 0.5) !important;
border-color: rgba(var(--c-night-accent-rgb), 0.2) !important;
}
html.skin-theme-clientpref-night .comments-body .c-actions a,
html.skin-theme-clientpref-night .comments-body .c-actions > span {
color: var(--c-night-accent) !important;
}
html.skin-theme-clientpref-night .comments-body .c-actions a:hover {
background: var(--c-primary-hover) !important;
color: #fff !important;
}
html.skin-theme-clientpref-night .comments-body .c-actions .comment-delete-link,
html.skin-theme-clientpref-night .comments-body .c-actions .c-delete a {
color: var(--c-danger-night) !important;
}
html.skin-theme-clientpref-night .comments-body .c-actions .comment-delete-link:hover,
html.skin-theme-clientpref-night .comments-body .c-actions .c-delete a:hover {
background: var(--c-danger) !important;
color: #fff !important;
}
html.skin-theme-clientpref-night .comments-body .c-actions .comments-edit {
color: var(--c-night-accent) !important;
}
/* ---- 9.3 主内容区链接色(金色 / 暗红)---- */
.mw-body-content a,
.mw-body-content a:visited,
.mw-parser-output a,
.mw-parser-output a:visited {
color: var(--c-link);
text-decoration: none;
transition: color var(--t-fast);
}
.mw-body-content a:hover,
.mw-body-content a:visited:hover,
.mw-parser-output a:hover,
.mw-parser-output a:visited:hover {
color: var(--c-link-hover);
text-decoration: underline;
}
.mw-body-content a.new,
.mw-body-content a.new:visited,
.mw-parser-output a.new,
.mw-parser-output a.new:visited {
color: var(--c-link-new);
}
.mw-body-content a.new:hover,
.mw-body-content a.new:visited:hover,
.mw-parser-output a.new:hover,
.mw-parser-output a.new:visited:hover {
color: var(--c-link-new);
text-decoration: underline;
}
html.skin-theme-clientpref-night .mw-body-content a,
html.skin-theme-clientpref-night .mw-body-content a:visited,
html.skin-theme-clientpref-night .mw-parser-output a,
html.skin-theme-clientpref-night .mw-parser-output a:visited,
html.skin-theme-clientpref-pureblack .mw-body-content a,
html.skin-theme-clientpref-pureblack .mw-body-content a:visited,
html.skin-theme-clientpref-pureblack .mw-parser-output a,
html.skin-theme-clientpref-pureblack .mw-parser-output a:visited {
color: var(--c-link-night);
}
html.skin-theme-clientpref-night .mw-body-content a:hover,
html.skin-theme-clientpref-night .mw-parser-output a:hover,
html.skin-theme-clientpref-pureblack .mw-body-content a:hover,
html.skin-theme-clientpref-pureblack .mw-parser-output a:hover {
color: var(--c-link-night-hover);
}
html.skin-theme-clientpref-night .mw-body-content a.new,
html.skin-theme-clientpref-night .mw-parser-output a.new,
html.skin-theme-clientpref-pureblack .mw-body-content a.new,
html.skin-theme-clientpref-pureblack .mw-parser-output a.new {
color: var(--c-link-new-night);
}
/* ============================================
10. 申请账户页面(Special:RequestAccount)
============================================ */
form[name="accountrequest"],
form[name="accountrequest"] fieldset,
form[name="accountrequest"] table,
form[name="accountrequest"] input,
form[name="accountrequest"] select,
form[name="accountrequest"] textarea {
max-width: 100%;
box-sizing: border-box;
}
form[name="accountrequest"] table {
width: 100%;
}
@media (max-width: 700px) {
form[name="accountrequest"] table,
form[name="accountrequest"] tbody,
form[name="accountrequest"] tr,
form[name="accountrequest"] td {
display: block;
width: 100%;
box-sizing: border-box;
}
form[name="accountrequest"] tr {
margin-bottom: 0.75rem;
}
form[name="accountrequest"] td:first-child {
font-weight: bold;
padding-bottom: 0.25rem;
}
form[name="accountrequest"] td:empty {
display: none;
}
form[name="accountrequest"] input:not([type="submit"]),
form[name="accountrequest"] select,
form[name="accountrequest"] textarea {
width: 100% !important;
max-width: 100% !important;
box-sizing: border-box;
font-size: 1rem;
}
form[name="accountrequest"] input[type="submit"] {
width: 100%;
padding: 0.75rem 1rem;
font-size: 1rem;
}
form[name="accountrequest"] textarea {
min-height: 6rem;
}
form[name="accountrequest"] div[style*="overflow:scroll"] table,
form[name="accountrequest"] div[style*="overflow:scroll"] tbody,
form[name="accountrequest"] div[style*="overflow:scroll"] tr {
display: table;
width: auto;
}
form[name="accountrequest"] div[style*="overflow:scroll"] td {
display: table-cell;
width: auto;
}
}
/* ============================================
11. 站点头部(Logo + 站点名)
============================================ */
.site-header {
display: flex;
align-items: center;
justify-content: flex-start;
padding: 0.5rem 0;
margin: 0 auto 1rem auto;
width: 100%;
max-width: 100%;
box-sizing: border-box;
flex-shrink: 0;
}
.site-header__brand {
display: inline-flex;
align-items: center;
gap: 6rem;
text-decoration: none;
color: inherit;
transition: opacity var(--t-fast);
}
.site-header__brand:hover {
opacity: 0.85;
}
.site-header__logo {
height: 4rem;
width: auto;
display: block;
flex-shrink: 0;
}
.site-header__name {
font-family: var(--font-family-narrow);
font-size: 2.5rem;
font-weight: normal;
line-height: 1;
color: #fff;
letter-spacing: 0.1em;
text-transform: uppercase;
}
html.citizen-feature-custom-width-clientpref-narrow .site-header {
max-width: 55rem !important;
}
html.citizen-feature-custom-width-clientpref-standard .site-header {
max-width: 80rem !important;
}
html.citizen-feature-custom-width-clientpref-wide .site-header {
max-width: 110rem !important;
}
html.citizen-feature-custom-width-clientpref-full .site-header {
max-width: 100% !important;
}
@media (max-width: 700px) {
.site-header {
padding: 0.25rem 0;
margin-bottom: 0.75rem;
}
.site-header__brand {
gap: 0.75rem;
}
.site-header__logo {
height: 1.75rem;
}
.site-header__name {
font-size: 1.75rem;
}
}
/* ============================================
12. 主容器外的独立侧栏
============================================ */
@media (min-width: 1101px) {
body:not(.anachronism-aside-open) .anachronism-side-column {
opacity: 0;
visibility: hidden;
transform: translateY(-50%) translateX(1.5rem);
pointer-events: none;
transition:
opacity var(--t-slow) ease,
transform var(--t-slow) ease,
visibility 0s var(--t-slow);
}
}
.citizen-body-container {
display: contents !important;
}
@media (min-width: 1101px) {
.anachronism-side-column {
position: fixed;
top: 50%;
left: 24px;
right: auto;
width: 20rem;
max-width: 20rem;
max-height: calc(100vh - 2rem);
overflow-y: auto;
box-sizing: border-box;
z-index: 5;
transform: translateY(-50%);
transition:
opacity var(--t-slow) ease,
transform var(--t-slow) ease,
visibility 0s;
background: rgba(255, 255, 255, 0.97);
border-radius: var(--radius-card);
box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
padding: 1.25rem;
overflow-wrap: break-word;
word-break: break-word;
}
.anachronism-side-column::-webkit-scrollbar {
width: 6px;
}
.anachronism-side-column::-webkit-scrollbar-thumb {
background: rgba(var(--c-primary-rgb), 0.25);
border-radius: 3px;
}
.anachronism-side-column::-webkit-scrollbar-track {
background: transparent;
}
.anachronism-side-column .citizen-page-aside {
display: contents !important;
}
.anachronism-side-column .citizen-page-footer {
display: block !important;
position: static !important;
width: auto !important;
max-width: none !important;
margin: 0.75rem 0 0 0 !important;
padding: 0.75rem 0 0 0 !important;
background: transparent !important;
box-shadow: none !important;
border-radius: 0 !important;
border-top: 1px solid rgba(var(--c-primary-rgb), 0.1);
box-sizing: border-box !important;
}
.anachronism-side-column .citizen-page-aside__heading {
font-size: 0.85rem;
color: #888;
margin-bottom: 0.4rem;
}
.anachronism-side-column .citizen-page-aside__link {
font-size: 0.85rem;
word-break: break-word;
}
.anachronism-side-column .citizen-page-footer #catlinks {
font-size: 0.85rem;
line-height: 1.6;
}
.anachronism-side-column .citizen-page-footer #catlinks ul {
display: flex;
flex-wrap: wrap;
gap: 0.25rem 0.5rem;
padding: 0;
margin: 0.25rem 0 0 0;
list-style: none;
}
.anachronism-side-column .citizen-page-footer #catlinks li {
margin: 0;
}
.anachronism-side-column .citizen-page-footer .page-info {
margin-top: 0.75rem;
padding-top: 0.75rem;
border-top: 1px solid rgba(var(--c-primary-rgb), 0.1);
}
.anachronism-side-column .citizen-page-footer .page-info__item {
display: block;
margin-bottom: 0.5rem;
}
.anachronism-side-column .citizen-page-footer .page-info__label {
font-size: 0.75rem;
color: #888;
margin-bottom: 0.15rem;
}
.anachronism-side-column .citizen-page-footer .page-info__text {
font-size: 0.85rem;
line-height: 1.5;
color: #444;
}
/* ============================================
TOC 修复
============================================ */
.anachronism-side-column .citizen-page-aside__sticky {
position: static !important;
top: auto !important;
display: block !important;
height: auto !important;
max-height: none !important;
overflow: visible !important;
}
.anachronism-side-column #citizen-toc {
display: block !important;
position: static !important;
height: auto !important;
max-height: none !important;
overflow: visible !important;
opacity: 1 !important;
visibility: visible !important;
}
.anachronism-side-column #citizen-toc > .citizen-dropdown-details {
display: none !important;
}
.anachronism-side-column #citizen-page-aside-toc-heading {
margin-top: 1rem;
}
.anachronism-side-column #mw-panel-toc {
display: contents !important;
position: static !important;
opacity: 1 !important;
visibility: visible !important;
}
.anachronism-side-column #mw-panel-toc .citizen-menu__card-content {
display: block !important;
position: static !important;
height: auto !important;
max-height: none !important;
padding: 0 !important;
margin: 0 !important;
overflow: visible !important;
transform: none !important;
background: transparent !important;
box-shadow: none !important;
opacity: 1 !important;
visibility: visible !important;
}
.anachronism-side-column #mw-panel-toc-list {
display: block !important;
position: static !important;
height: auto !important;
max-height: none !important;
overflow: visible !important;
}
.anachronism-side-column #mw-panel-toc .citizen-toc-link,
.anachronism-side-column #mw-panel-toc .citizen-toc-top {
opacity: 1 !important;
height: auto !important;
min-height: 1.75rem !important;
max-height: none !important;
overflow: visible !important;
padding: 0.35rem 0.5rem !important;
line-height: 1.4 !important;
align-items: center !important;
}
.anachronism-side-column #mw-panel-toc .citizen-toc-content,
.anachronism-side-column #mw-panel-toc .citizen-toc-text,
.anachronism-side-column #mw-panel-toc .citizen-toc-numb,
.anachronism-side-column #mw-panel-toc .citizen-toc-heading {
display: inline !important;
height: auto !important;
max-height: none !important;
overflow: visible !important;
line-height: 1.4 !important;
opacity: 1 !important;
}
.anachronism-side-column #mw-panel-toc .citizen-toc-indicator {
opacity: 1 !important;
}
.anachronism-side-column #mw-panel-toc .citizen-toc-list-item {
height: auto !important;
min-height: 0 !important;
max-height: none !important;
overflow: visible !important;
}
.anachronism-side-column #mw-panel-toc .citizen-toc-text {
overflow-wrap: break-word;
word-break: break-word;
}
/* 侧栏内的链接:白色卡片底,用主色系红 */
.anachronism-side-column .citizen-page-aside__link,
.anachronism-side-column .citizen-page-aside__link:visited,
.anachronism-side-column #mw-panel-toc .citizen-toc-link,
.anachronism-side-column #mw-panel-toc .citizen-toc-link:visited {
color: var(--c-primary) !important;
}
.anachronism-side-column .citizen-page-aside__link:hover,
.anachronism-side-column .citizen-page-aside__link:visited:hover,
.anachronism-side-column #mw-panel-toc .citizen-toc-link:hover,
.anachronism-side-column #mw-panel-toc .citizen-toc-link:visited:hover {
color: var(--c-primary-hover) !important;
}
}
/* ---- 12.4 触发按钮:屏幕右侧正中的独立伪 Rail ---- */
.anachronism-aside-toggle {
position: fixed;
top: calc(50vh - 1.5rem);
right: 0;
left: auto;
z-index: 70;
width: 3rem;
height: 3rem;
padding: 0;
border: none;
border-radius: 0.5rem 0 0 0.5rem;
background: var(--c-primary-hover);
color: #fff;
cursor: pointer;
display: flex;
align-items: center;
justify-content: center;
font-size: 1.25rem;
line-height: 1;
box-shadow: -3px 0 12px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(255, 255, 255, 0.08) inset;
transition: background var(--t-normal);
}
.anachronism-aside-toggle:hover {
background: var(--c-primary);
}
body.anachronism-aside-open .anachronism-aside-toggle {
background: var(--c-primary);
}
.anachronism-aside-toggle__icon {
display: inline-block;
transition: transform var(--t-normal);
}
body.anachronism-aside-open .anachronism-aside-toggle__icon {
transform: rotate(180deg);
}
/* ---- 12.5 移动端 ---- */
@media (max-width: 1100px) {
.anachronism-side-column {
position: static;
width: auto;
max-width: none;
max-height: none;
overflow: visible;
background: transparent;
box-shadow: none;
border-radius: 0;
padding: 0;
transform: none;
opacity: 1;
visibility: visible;
pointer-events: auto;
transition: none;
}
.anachronism-side-column .citizen-page-aside,
.anachronism-side-column .citizen-page-footer {
background: transparent !important;
box-shadow: none !important;
border-radius: 0 !important;
padding: 0 !important;
margin: 0 !important;
}
.anachronism-aside-toggle {
display: none !important;
}
}
/* ---- 12.6 夜间模式 ---- */
html.skin-theme-clientpref-night .anachronism-side-column {
background: rgba(30, 22, 24, 0.95) !important;
box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6) !important;
}
html.skin-theme-clientpref-pureblack .anachronism-side-column {
background: rgba(0, 0, 0, 0.95) !important;
box-shadow: 0 8px 32px rgba(0, 0, 0, 0.8) !important;
}
html.skin-theme-clientpref-night .anachronism-side-column .citizen-page-aside__link,
html.skin-theme-clientpref-night .anachronism-side-column .citizen-page-aside__link:visited,
html.skin-theme-clientpref-night .anachronism-side-column #mw-panel-toc .citizen-toc-link,
html.skin-theme-clientpref-night .anachronism-side-column #mw-panel-toc .citizen-toc-link:visited {
color: var(--c-night-accent) !important;
}
html.skin-theme-clientpref-night .anachronism-side-column .citizen-page-aside__link:hover,
html.skin-theme-clientpref-night .anachronism-side-column #mw-panel-toc .citizen-toc-link:hover {
color: #fff !important;
}
html.skin-theme-clientpref-night .anachronism-aside-toggle {
background: var(--c-primary-night);
}
html.skin-theme-clientpref-night .anachronism-aside-toggle:hover,
html.skin-theme-clientpref-night body.anachronism-aside-open .anachronism-aside-toggle {
background: var(--c-primary-hover);
}
/* ============================================
13. Citizen Sticky Header(滚动后浮层)
============================================ */
.citizen-sticky-header-background {
background: rgba(255, 255, 255, 0.25) !important;
-webkit-backdrop-filter: blur(12px);
backdrop-filter: blur(12px);
border-bottom: 1px solid rgba(var(--c-primary-rgb), 0.12) !important;
box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06) !important;
}
.citizen-sticky-header-page-title {
color: var(--c-primary) !important;
font-weight: bold !important;
}
.citizen-sticky-header-page-tagline {
display: none !important;
}
.citizen-sticky-header-backtotop {
color: var(--c-primary) !important;
}
.citizen-sticky-header-backtotop:hover {
background: rgba(var(--c-primary-rgb), 0.08) !important;
color: var(--c-primary-hover) !important;
}
.citizen-sticky-header .citizen-sticky-header-fake-button {
color: var(--c-primary) !important;
background: transparent !important;
border: none !important;
}
.citizen-sticky-header .citizen-sticky-header-fake-button:hover {
background: rgba(var(--c-primary-rgb), 0.08) !important;
color: var(--c-primary-hover) !important;
}
.citizen-sticky-header .citizen-dropdown-summary {
color: var(--c-primary) !important;
}
.citizen-sticky-header .citizen-dropdown-summary:hover {
background: rgba(var(--c-primary-rgb), 0.08) !important;
color: var(--c-primary-hover) !important;
}
.citizen-sticky-header .citizen-menu__card {
background: #fff !important;
border-radius: 0.5rem !important;
box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2) !important;
border: none !important;
}
.citizen-sticky-header .citizen-menu__card .mw-list-item > a,
.citizen-sticky-header .citizen-menu__card .mw-list-item > a:visited {
color: var(--c-link) !important;
}
.citizen-sticky-header .citizen-menu__card .mw-list-item > a:hover,
.citizen-sticky-header .citizen-menu__card .mw-list-item > a:visited:hover {
background: rgba(var(--c-primary-rgb), 0.08) !important;
color: var(--c-link-hover) !important;
}
.citizen-sticky-header .citizen-menu__card .mw-list-item > a.new,
.citizen-sticky-header .citizen-menu__card .mw-list-item > a.new:visited {
color: var(--c-link-new) !important;
}
html.skin-theme-clientpref-night .citizen-sticky-header-background {
background: rgba(30, 22, 24, 0.25) !important;
border-bottom-color: rgba(var(--c-night-accent-rgb), 0.15) !important;
box-shadow: 0 2px 12px rgba(0, 0, 0, 0.4) !important;
}
html.skin-theme-clientpref-pureblack .citizen-sticky-header-background {
background: rgba(0, 0, 0, 0.25) !important;
box-shadow: 0 2px 12px rgba(0, 0, 0, 0.6) !important;
}
html.skin-theme-clientpref-night .citizen-sticky-header-page-title,
html.skin-theme-clientpref-night .citizen-sticky-header-backtotop,
html.skin-theme-clientpref-night .citizen-sticky-header .citizen-sticky-header-fake-button,
html.skin-theme-clientpref-night .citizen-sticky-header .citizen-dropdown-summary {
color: var(--c-night-accent) !important;
}
html.skin-theme-clientpref-night .citizen-sticky-header-backtotop:hover,
html.skin-theme-clientpref-night .citizen-sticky-header .citizen-sticky-header-fake-button:hover,
html.skin-theme-clientpref-night .citizen-sticky-header .citizen-dropdown-summary:hover {
background: rgba(var(--c-night-accent-rgb), 0.12) !important;
color: #fff !important;
}
html.skin-theme-clientpref-night .citizen-sticky-header .citizen-menu__card {
background: #2a2022 !important;
}
html.skin-theme-clientpref-night .citizen-sticky-header .citizen-menu__card .mw-list-item > a,
html.skin-theme-clientpref-night .citizen-sticky-header .citizen-menu__card .mw-list-item > a:visited {
color: var(--c-link-night) !important;
}
html.skin-theme-clientpref-night .citizen-sticky-header .citizen-menu__card .mw-list-item > a:hover,
html.skin-theme-clientpref-night .citizen-sticky-header .citizen-menu__card .mw-list-item > a:visited:hover {
background: rgba(var(--c-night-accent-rgb), 0.12) !important;
color: var(--c-link-night-hover) !important;
}
html.skin-theme-clientpref-night .citizen-sticky-header .citizen-menu__card .mw-list-item > a.new,
html.skin-theme-clientpref-night .citizen-sticky-header .citizen-menu__card .mw-list-item > a.new:visited {
color: var(--c-link-new-night) !important;
}