MediaWiki:Citizen.css
MediaWiki界面页面
更多操作
注意:在发布之后,您可能需要清除浏览器缓存才能看到所作出的更改的影响。
- Firefox或Safari:按住Shift的同时单击刷新,或按Ctrl-F5或Ctrl-R(Mac为⌘-R)
- Google Chrome:按Ctrl-Shift-R(Mac为⌘-Shift-R)
- Edge:按住Ctrl的同时单击刷新,或按Ctrl-F5。
/* =========================================
* 国漫TV · 三栏卡片流架构 (Citizen 皮肤深度重构版)
* ========================================= */
/* --- 0. 全局呼吸感底色与宽度限制 --- */
body {
background-color: #f4f2f7 !important; /* 紫金体系的极淡灰紫底色 */
}
/* 限制最大屏幕宽度,禁止全屏拉伸,强制两侧完美留白 */
.citizen-page-container {
max-width: 1440px !important;
margin: 0 auto !important;
padding: 0 40px !important;
}
/* --- 1. 左/中/右 三栏物理切割与防粘连 (仅宽屏生效) --- */
@media screen and (min-width: 1200px) {
/* 中间内容区:强制向右推移,为左侧 Infobox 腾出物理真空区 */
.citizen-body {
margin-left: 350px !important; /* 彻底分离,留出绝佳呼吸感 */
}
/* 左侧栏:利用负边距将 Infobox 从内容区抽离到左侧真空区 */
.mw-parser-output table.infobox {
float: left !important;
margin-left: -350px !important; /* 牵引至左侧 */
width: 310px !important;
margin-top: 0 !important;
clear: none !important;
}
/* 右侧栏:确保目录(TOC)与中间内容区有足够间距 */
.citizen-page-sidebar {
margin-left: 40px !important;
width: 280px !important;
}
}
/* --- 2. 内容区段落独立卡片化 (纯白背景) --- */
/* 直接接管 Citizen 原生的 section 容器 */
.citizen-section {
background-color: #ffffff !important;
border-radius: 12px !important;
padding: 35px 40px !important;
margin-bottom: 30px !important; /* 卡片之间的垂直间距 */
box-shadow: 0 8px 24px rgba(26, 22, 37, 0.04) !important;
border: 1px solid #e6e2ed !important;
}
/* 左侧 Infobox 卡片化装潢 */
.mw-parser-output table.infobox {
background-color: #ffffff !important;
border-radius: 12px !important;
padding: 20px !important;
box-shadow: 0 8px 24px rgba(26, 22, 37, 0.04) !important;
border: 1px solid #e6e2ed !important;
border-collapse: separate !important;
}
/* 右侧 TOC 目录卡片化装潢 */
.citizen-toc-card {
background-color: #ffffff !important;
border-radius: 12px !important;
padding: 20px !important;
box-shadow: 0 8px 24px rgba(26, 22, 37, 0.04) !important;
border: 1px solid #e6e2ed !important;
}
/* 抹除原生 Citizen 破坏卡片沉浸感的元素 */
.citizen-section-heading {
border-bottom: none !important;
}
.citizen-section-indicator {
display: none !important; /* 隐藏原生折叠图标,保持卡片纯净 */
}
/* --- 3. 顶部导航栏 (Header) 商业化重构 --- */
.citizen-header {
background-color: #ffffff !important;
box-shadow: 0 2px 12px rgba(26, 22, 37, 0.06) !important;
border-bottom: none !important;
height: 72px !important;
padding: 0 40px !important;
}
/* 顶部搜索框:微拟物凹陷与焦点反馈 */
.citizen-search-box {
background-color: #f4f2f7 !important;
border-radius: 20px !important;
border: 1px solid transparent !important;
transition: all 0.3s ease !important;
}
.citizen-search-box:focus-within {
background-color: #ffffff !important;
border-color: #5e35b1 !important; /* 呼应紫金主题色 */
box-shadow: 0 0 0 3px rgba(94, 53, 177, 0.1) !important;
}
/* --- 4. 底部页脚 (Footer) 极简版式重构 --- */
.citizen-footer {
background-color: #ffffff !important;
border-top: 1px solid #e6e2ed !important;
margin-top: 80px !important;
padding: 50px 0 !important;
}
.citizen-footer__container {
max-width: 1440px !important;
margin: 0 auto !important;
display: flex !important;
flex-direction: column !important;
align-items: center !important;
text-align: center !important;
}
.citizen-footer__siteinfo {
margin-bottom: 24px !important;
}
/* 页脚链接横向排布 */
#footer-places ul {
display: flex !important;
gap: 30px !important;
justify-content: center !important;
list-style: none !important;
padding: 0 !important;
}
#footer-places a {
color: #5e35b1 !important;
font-weight: 500 !important;
text-decoration: none !important;
}
#footer-places a:hover {
color: #ffb300 !important; /* 悬停变为琥珀金 */
}
/* 隐藏无关紧要的 MediaWiki 原生图标,提升品牌感 */
#footer-poweredbyico {
display: none !important;
}