跳转到内容
打开/关闭搜索
搜索
打开/关闭菜单
1
条目
1
用户
147
编辑
Anachronism
导航
首页
最近更改
随机页面
MediaWiki帮助
特殊页面
打开/关闭外观设置菜单
无法加载外观设置。请检查您的网络连接并重试。
重试
打开/关闭个人菜单
未登录
未登录用户的IP地址会在进行任意编辑后公开展示。
user-interface-preferences
个人工具
登录
查看“︁MediaWiki:Citizen.css”︁的源代码
MediaWiki界面页面
查看
阅读
查看源代码
查看历史
相关页面
系统消息
讨论
更多操作
更多
工具
链入页面
相关更改
页面信息
←
MediaWiki:Citizen.css
因为以下原因,您没有权限编辑该页面:
您请求的操作仅限属于该用户组的用户执行:
旅人
此页面为本wiki上的软件提供界面文本,并受到保护以防止滥用。如欲修改所有wiki的翻译,请访问
translatewiki.net
上的MediaWiki本地化项目。
您无权编辑此CSS页面,因为编辑此页面可能会影响所有访问者。
您可以查看和复制此页面的源代码。
/* ============================================ Citizen原生组件禁用 ============================================ */ /* ===== 隐藏 Citizen 原生抽屉菜单 ===== */ body .citizen-drawer, body header.citizen-header .citizen-drawer, body .citizen-drawer.citizen-header__item, body #citizen-drawer__card { display: none !important; visibility: hidden !important; width: 0 !important; height: 0 !important; overflow: hidden !important; pointer-events: none !important; } /* ============================================ 侧边工具栏Rail ============================================ */ /* 按钮容器:左上角垂直排列 */ .rail-container { position: fixed; top: 5rem; right: 0; z-index: 1000; display: flex; flex-direction: column; gap: 0.25rem; transition: transform 0.3s 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: #56000d; 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 0.2s, transform 0.2s; padding: 0; } .rail-button:hover { background: #8b1a2b; transform: translateX(-2px); } .rail-button.is-active { background: #8b1a2b; 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 0.3s 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: #56000d; 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; } /* 面板内容里的 wikitext 渲染结果 */ .rail-panel__content .mw-parser-output h3 { font-size: 1rem; color: #56000d; border-left: 3px solid #56000d; 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 { display: block; padding: 0.5rem 0.75rem; color: #333; text-decoration: none; border-radius: 0.4rem; transition: background 0.15s, color 0.15s; } .rail-panel__content .mw-parser-output a:hover { background: rgba(86, 0, 13, 0.08); color: #56000d; } /* 遮罩 */ .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 0.3s; } body.rail-open .rail-overlay { opacity: 1; pointer-events: auto; } /* 移动端适配 */ @media (max-width: 700px) { .rail-panel { width: 80vw; } .rail-container { top: 4rem; } body.rail-open .rail-container { transform: translateX(-80vw+0.5rem); } } /* ============================================ ` 页脚FOOTER ============================================ */ /* ========== Footer 整体:暗红渐变 + 与上方内容留空隙 ========== */ .citizen-footer { margin-top: 4rem; padding: 3rem 1.5rem 2rem; background: linear-gradient(180deg, #2a0006 0%, #56000d 100%); color: rgba(255, 255, 255, 0.85); border-top: none; } .citizen-footer__container { max-width: 87.5rem; margin: 0 auto; padding: 0; } /* ========== Footer 上半区:居中布局 ========== */ .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; } /* ========== 站点标题 + Logo ========== */ .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; } /* ========== 站点描述 ========== */ .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 { display: none; } /* 如果整个 footer-places 里没有任何其他链接,也一并隐藏,避免留空白 */ #footer-places { display: none; } /* ========== Footer 下半区:tagline 居中 ========== */ .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; } /* 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; } /* 2. 应用为全局默认字体 */ :root { --font-family-base: 'LXGW WenKai Medium', system-ui, sans-serif; } /* 3. 确保正文内容也使用该字体(覆盖性更强) */ html, body, .mw-body, .mw-parser-output { font-family: 'LXGW WenKai Medium', system-ui, sans-serif; }
返回
MediaWiki:Citizen.css
。
查看“︁MediaWiki:Citizen.css”︁的源代码
MediaWiki界面页面