MediaWiki:Citizen.css:修订间差异
MediaWiki界面页面
更多操作
无编辑摘要 |
无编辑摘要 |
||
| 第1行: | 第1行: | ||
/* === | /* === 彻底纯白化 (Wikipedia 风格) === */ | ||
:root { | :root { | ||
/* 1. 把所有层级的背景都强行设为白色 */ | |||
--background-color-surface: #ffffff !important; /* | --background-color-base: #ffffff !important; /* 网页底层 */ | ||
--background-color-overlay: #ffffff !important; /* | --background-color-surface: #ffffff !important; /* 内容层 */ | ||
--background-color-overlay: #ffffff !important; /* 弹窗层 */ | |||
/* | /* 2. 修正文字颜色为深黑 */ | ||
--color-base: #202122 !important; | --color-base: #202122 !important; | ||
/* | /* 3. (关键) 去掉卡片的所有阴影和边框,让它变“平” */ | ||
--border- | --box-shadow-card: none !important; | ||
--border-radius-base: 0 !important; /* 去掉圆角 */ | |||
} | } | ||
/* | /* 暴力清除 Citizen 的背景色和间距,模拟 Vector 皮肤 */ | ||
body, .citizen-page { | |||
background-color: #ffffff !important; | |||
} | |||
/* | /* 修正侧边栏,让它和主内容融为一体,只有极细的分割线 */ | ||
.citizen-drawer, .mw-header, .mw-footer { | |||
. | |||
. | |||
.mw-footer { | |||
background-color: #ffffff !important; | background-color: #ffffff !important; | ||
/* | border-right: 1px solid #eee !important; | ||
box-shadow: | box-shadow: none !important; | ||
} | |||
/* 修正首页特有的间距问题 */ | |||
.page-Main_Page .mw-body { | |||
padding-top: 10px !important; | |||
box-shadow: none !important; | |||
} | } | ||
/* | /* 既然背景全白了,让链接颜色深一点,显眼一点 */ | ||
a { color: #3366cc; } | |||
/* === 首页 (Main Page) 专用样式 === */ | /* === 首页 (Main Page) 专用样式 === */ | ||
2026年1月29日 (四) 14:19的版本
/* === 彻底纯白化 (Wikipedia 风格) === */
:root {
/* 1. 把所有层级的背景都强行设为白色 */
--background-color-base: #ffffff !important; /* 网页底层 */
--background-color-surface: #ffffff !important; /* 内容层 */
--background-color-overlay: #ffffff !important; /* 弹窗层 */
/* 2. 修正文字颜色为深黑 */
--color-base: #202122 !important;
/* 3. (关键) 去掉卡片的所有阴影和边框,让它变“平” */
--box-shadow-card: none !important;
--border-radius-base: 0 !important; /* 去掉圆角 */
}
/* 暴力清除 Citizen 的背景色和间距,模拟 Vector 皮肤 */
body, .citizen-page {
background-color: #ffffff !important;
}
/* 修正侧边栏,让它和主内容融为一体,只有极细的分割线 */
.citizen-drawer, .mw-header, .mw-footer {
background-color: #ffffff !important;
border-right: 1px solid #eee !important;
box-shadow: none !important;
}
/* 修正首页特有的间距问题 */
.page-Main_Page .mw-body {
padding-top: 10px !important;
box-shadow: none !important;
}
/* 既然背景全白了,让链接颜色深一点,显眼一点 */
a { color: #3366cc; }
/* === 首页 (Main Page) 专用样式 === */
/* 1. 隐藏首页原本那个丑丑的 "Main Page" 标题 */
body.page-Main_Page .mw-body-header {
display: none !important;
}
/* 2. 首页整体容器:两栏布局 */
.home-container {
display: flex;
flex-wrap: wrap;
gap: 20px;
margin-top: 20px;
}
/* 左侧内容区 (占 66%) */
.home-main {
flex: 2;
min-width: 300px;
}
/* 右侧社群区 (占 33%) */
.home-sidebar {
flex: 1;
min-width: 280px;
}
/* 3. 通用卡片样式:纯白底色,细边框,这就是你要的“干净感” */
.home-card {
background-color: #ffffff; /* 强制纯白 */
border: 1px solid #eaecf0; /* 极细的灰线 */
border-radius: 8px; /* 圆角 */
padding: 20px;
margin-bottom: 20px;
box-shadow: 0 1px 3px rgba(0,0,0,0.02); /* 几乎看不见的阴影,增加层次 */
}
/* 卡片标题栏 */
.home-card-header {
border-bottom: 2px solid #3366cc; /* 经典的 Wiki 蓝 */
margin-bottom: 15px;
padding-bottom: 5px;
font-size: 1.2em;
font-weight: bold;
color: #202122;
display: flex;
justify-content: space-between;
align-items: center;
}
/* 4. 欢迎横幅 (Hero Banner) */
.home-banner {
background: linear-gradient(135deg, #3366cc 0%, #2a4b8d 100%); /* 蓝色渐变 */
color: white;
padding: 30px;
border-radius: 8px;
margin-bottom: 20px;
text-align: center;
}
.home-banner h1 {
color: white !important;
font-family: serif; /* 看起来更有书卷气 */
margin: 0;
font-size: 2.5em;
}
.home-banner p {
font-size: 1.1em;
opacity: 0.9;
}
/* 5. 社群公告列表样式 */
.news-list {
list-style: none;
padding: 0;
margin: 0;
}
.news-list li {
padding: 8px 0;
border-bottom: 1px dashed #eee;
font-size: 0.95em;
}
.news-list li:last-child {
border-bottom: none;
}
.date-tag {
background: #f0f2f5;
color: #54595d;
padding: 2px 6px;
border-radius: 4px;
font-size: 0.8em;
margin-right: 5px;
}