MediaWiki:Common.css:修订间差异
MediaWiki界面页面
更多操作
无编辑摘要 |
无编辑摘要 |
||
| 第1行: | 第1行: | ||
/* ===== 全局背景与字体 ===== */ | |||
body { | |||
color: #e0e0e0; | |||
background: url("/images/1/18/%E4%B8%BB%E9%A1%B5%E8%83%8C%E6%99%AF1980.png") no-repeat fixed center center / cover; | |||
} | } | ||
/* ===== 内容区遮罩 — 深色半透明,让背景图透出 ===== */ | |||
#mw-page-base, | |||
.mw-body, | |||
.mw-body-content { | |||
background: rgba(10, 25, 40, 0.78) !important; | |||
color: #d8e0e8 !important; | |||
} | |||
/* 侧边栏 */ | |||
#mw-panel { | |||
background: rgba(6, 18, 30, 0.82) !important; | |||
color: #c0ccd8 !important; | |||
} | |||
/* 正文段落 */ | |||
.mw-body-content p { | |||
line-height: 1.85 !important; | |||
color: #d8e0e8 !important; | |||
} | |||
/* 粗体文字提亮 */ | |||
.mw-body-content b, | |||
.mw-body-content strong { | |||
color: #f0f4f8 !important; | |||
} | |||
/* ===== 标题层级 ===== */ | |||
/* H1 页面主标题 */ | |||
h1, | |||
.firstHeading { | |||
color: #f0f4f8 !important; | |||
font-weight: 900 !important; | |||
text-shadow: 0 2px 6px rgba(0, 0, 0, 0.6) !important; | |||
} | |||
h2 { | |||
color: #8ad8e8 !important; | |||
font-weight: 800 !important; | |||
font-size: 1.65em !important; | |||
border-bottom: none !important; | |||
padding-bottom: 6px !important; | |||
text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6) !important; | |||
} | |||
h2::after { | |||
content: ''; | |||
display: block; | |||
width: 100%; | |||
height: 3px; | |||
margin-top: 10px; | |||
border-radius: 2px; | |||
background: linear-gradient(90deg, #0a8b94, #1a7a4c, #b8860b); | |||
} | |||
h3 { | |||
color: #90d8a0 !important; | |||
font-weight: 700 !important; | |||
text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5) !important; | |||
} | |||
h4 { | |||
color: #80c8d8 !important; | |||
font-weight: 700 !important; | |||
} | |||
/* ===== 链接颜色 ===== */ | |||
.mw-body-content a:link { | |||
color: #6ad0e8 !important; | |||
} | |||
.mw-body-content a:visited { | |||
color: #5ab8d0 !important; | |||
} | |||
.mw-body-content a:hover { | |||
color: #f4cf78 !important; | |||
text-decoration: underline !important; | |||
} | |||
/* 侧边栏链接 */ | |||
#mw-panel a:link, | |||
#mw-panel a:visited { | |||
color: #a0c8d8 !important; | |||
} | |||
#mw-panel a:hover { | |||
color: #f4cf78 !important; | |||
} | |||
/* ===== TOC 目录 ===== */ | |||
.toc { | |||
background: rgba(10, 30, 50, 0.7) !important; | |||
border: 1px solid rgba(100, 160, 180, 0.25) !important; | |||
border-radius: 10px !important; | |||
padding: 14px 18px !important; | |||
color: #c8d8e0 !important; | |||
} | |||
.toc h2 { | |||
color: #8ad8e8 !important; | |||
font-weight: 700 !important; | |||
} | |||
.toclevel-1 > .toclink::before { | |||
content: '▸ '; | |||
color: #6ad0e8; | |||
} | |||
/* ===== 页脚 ===== */ | |||
#footer { | |||
color: #8898a8 !important; | |||
} | |||
/* ===== 用户原有 CSS 类(调整为深色兼容) ===== */ | |||
.feature-card { | |||
padding: 18px 14px; | |||
border-radius: 12px; | |||
text-align: center; | |||
font-weight: bold; | |||
border-bottom: 3px solid; | |||
} | |||
.feature-card-blue { | |||
background: #082b3a; | |||
color: #c8eef0; | |||
border-bottom-color: #0a8b94; | |||
} | |||
.feature-card-green { | |||
background: #0a2e1f; | |||
color: #b8e6cc; | |||
border-bottom-color: #1a7a4c; | |||
} | |||
.feature-card-orange { | |||
background: #2e1f08; | |||
color: #f0d9a8; | |||
border-bottom-color: #b8860b; | |||
} | |||
.feature-card-red { | |||
background: #2e101f; | |||
color: #e8b8d0; | |||
border-bottom-color: #9b3068; | |||
} | |||
.hot-card { | |||
# | padding: 14px 16px; | ||
border-radius: 8px; | |||
} | font-weight: 600; | ||
text-align: center; | |||
border-bottom: 3px solid; | |||
} | |||
.hot-card-green { | |||
background: #0a2e1f; | |||
color: #b8e6cc; | |||
border-bottom-color: #1a7a4c; | |||
} | |||
.hot-card-red { | |||
background: #2e101f; | |||
color: #e8b8d0; | |||
border-bottom-color: #9b3068; | |||
} | |||
.hot-card-cyan { | |||
background: #082b3a; | |||
color: #c8eef0; | |||
border-bottom-color: #0a8b94; | |||
} | |||
.hot-card-orange { | |||
background: #2e1f08; | |||
color: #f0d9a8; | |||
border-bottom-color: #b8860b; | |||
} | |||
.stat-card { | |||
padding: 20px 16px; | |||
border-radius: 12px; | |||
text-align: center; | |||
font-weight: 700; | |||
border-bottom: 3px solid; | |||
} | |||
.stat-card-blue { | |||
background: #082b3a; | |||
color: #c8eef0; | |||
border-bottom-color: #0a8b94; | |||
} | |||
.stat-card-green { | |||
background: #0a2e1f; | |||
color: #b8e6cc; | |||
border-bottom-color: #1a7a4c; | |||
} | |||
.divider { | |||
border: 0; | |||
border-bottom: 3px solid; | |||
margin: 20px 0; | |||
} | |||
/* ===== 移动端适配 ===== */ | |||
@media (max-width: 560px) { | |||
h2 { | |||
font-size: 1.35em !important; | |||
} | } | ||
h2::after { | |||
height: 2px; | |||
margin-top: 6px; | |||
} | } | ||
} | |||
2026年7月17日 (五) 05:28的版本
/* ===== 全局背景与字体 ===== */
body {
color: #e0e0e0;
background: url("/images/1/18/%E4%B8%BB%E9%A1%B5%E8%83%8C%E6%99%AF1980.png") no-repeat fixed center center / cover;
}
/* ===== 内容区遮罩 — 深色半透明,让背景图透出 ===== */
#mw-page-base,
.mw-body,
.mw-body-content {
background: rgba(10, 25, 40, 0.78) !important;
color: #d8e0e8 !important;
}
/* 侧边栏 */
#mw-panel {
background: rgba(6, 18, 30, 0.82) !important;
color: #c0ccd8 !important;
}
/* 正文段落 */
.mw-body-content p {
line-height: 1.85 !important;
color: #d8e0e8 !important;
}
/* 粗体文字提亮 */
.mw-body-content b,
.mw-body-content strong {
color: #f0f4f8 !important;
}
/* ===== 标题层级 ===== */
/* H1 页面主标题 */
h1,
.firstHeading {
color: #f0f4f8 !important;
font-weight: 900 !important;
text-shadow: 0 2px 6px rgba(0, 0, 0, 0.6) !important;
}
h2 {
color: #8ad8e8 !important;
font-weight: 800 !important;
font-size: 1.65em !important;
border-bottom: none !important;
padding-bottom: 6px !important;
text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6) !important;
}
h2::after {
content: '';
display: block;
width: 100%;
height: 3px;
margin-top: 10px;
border-radius: 2px;
background: linear-gradient(90deg, #0a8b94, #1a7a4c, #b8860b);
}
h3 {
color: #90d8a0 !important;
font-weight: 700 !important;
text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5) !important;
}
h4 {
color: #80c8d8 !important;
font-weight: 700 !important;
}
/* ===== 链接颜色 ===== */
.mw-body-content a:link {
color: #6ad0e8 !important;
}
.mw-body-content a:visited {
color: #5ab8d0 !important;
}
.mw-body-content a:hover {
color: #f4cf78 !important;
text-decoration: underline !important;
}
/* 侧边栏链接 */
#mw-panel a:link,
#mw-panel a:visited {
color: #a0c8d8 !important;
}
#mw-panel a:hover {
color: #f4cf78 !important;
}
/* ===== TOC 目录 ===== */
.toc {
background: rgba(10, 30, 50, 0.7) !important;
border: 1px solid rgba(100, 160, 180, 0.25) !important;
border-radius: 10px !important;
padding: 14px 18px !important;
color: #c8d8e0 !important;
}
.toc h2 {
color: #8ad8e8 !important;
font-weight: 700 !important;
}
.toclevel-1 > .toclink::before {
content: '▸ ';
color: #6ad0e8;
}
/* ===== 页脚 ===== */
#footer {
color: #8898a8 !important;
}
/* ===== 用户原有 CSS 类(调整为深色兼容) ===== */
.feature-card {
padding: 18px 14px;
border-radius: 12px;
text-align: center;
font-weight: bold;
border-bottom: 3px solid;
}
.feature-card-blue {
background: #082b3a;
color: #c8eef0;
border-bottom-color: #0a8b94;
}
.feature-card-green {
background: #0a2e1f;
color: #b8e6cc;
border-bottom-color: #1a7a4c;
}
.feature-card-orange {
background: #2e1f08;
color: #f0d9a8;
border-bottom-color: #b8860b;
}
.feature-card-red {
background: #2e101f;
color: #e8b8d0;
border-bottom-color: #9b3068;
}
.hot-card {
padding: 14px 16px;
border-radius: 8px;
font-weight: 600;
text-align: center;
border-bottom: 3px solid;
}
.hot-card-green {
background: #0a2e1f;
color: #b8e6cc;
border-bottom-color: #1a7a4c;
}
.hot-card-red {
background: #2e101f;
color: #e8b8d0;
border-bottom-color: #9b3068;
}
.hot-card-cyan {
background: #082b3a;
color: #c8eef0;
border-bottom-color: #0a8b94;
}
.hot-card-orange {
background: #2e1f08;
color: #f0d9a8;
border-bottom-color: #b8860b;
}
.stat-card {
padding: 20px 16px;
border-radius: 12px;
text-align: center;
font-weight: 700;
border-bottom: 3px solid;
}
.stat-card-blue {
background: #082b3a;
color: #c8eef0;
border-bottom-color: #0a8b94;
}
.stat-card-green {
background: #0a2e1f;
color: #b8e6cc;
border-bottom-color: #1a7a4c;
}
.divider {
border: 0;
border-bottom: 3px solid;
margin: 20px 0;
}
/* ===== 移动端适配 ===== */
@media (max-width: 560px) {
h2 {
font-size: 1.35em !important;
}
h2::after {
height: 2px;
margin-top: 6px;
}
}