|
|
(未显示同一用户的6个中间版本) |
第1行: |
第1行: |
| /* 这里放置的CSS将应用于Timeless皮肤 */
| |
| /* 更改Timeless皮肤的默认背景图片 */
| |
| /*
| |
| ============================================================
| |
| HOI4 Theme for MediaWiki Timeless - REINFORCED VERSION
| |
| 使用 !important 强制覆盖默认样式
| |
| ============================================================
| |
| */
| |
|
| |
|
| /* --- 1. 核心颜色与字体变量 --- */
| |
| @import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;700&family=Stalinist+One&display=swap');
| |
|
| |
| :root {
| |
| --hoi4-bg-dark-metal: #2d302b; /* 深色金属背景 */
| |
| --hoi4-bg-dark-panel: #3a3d36; /* 侧边栏和面板背景 */
| |
| --hoi4-bg-paper: #e6d8b1; /* 纸张/内容背景 (沿用你的颜色) */
| |
| --hoi4-text-light: #dcdcdc; /* 亮色文字 (用于深色背景) */
| |
| --hoi4-text-dark: #3c342a; /* 暗色文字 (用于纸张背景) */
| |
| --hoi4-border-color: #555850; /* 边框颜色 */
| |
| --hoi4-border-highlight: #7c7667; /* 边框高光 */
| |
| --hoi4-link-gold: #c8b46a; /* 链接 - 金色 */
| |
| --hoi4-link-gold-hover: #e8d48a; /* 链接悬停 - 亮金色 */
| |
| --hoi4-accent-red: #9f3a3a; /* 警示/未创建页面链接 */
| |
|
| |
| --font-heading: 'Stalinist One', 'Impact', sans-serif; /* 标题字体 */
| |
| --font-body: 'Roboto', sans-serif; /* 正文字体 */
| |
| }
| |
|
| |
| /* --- 2. 整体布局:深色外壳 + 浅色内容 (强制执行) --- */
| |
|
| |
| /* 全局背景 */
| |
| body {
| |
| background-color: var(--hoi4-bg-dark-metal) !important;
| |
| /* 进阶:添加无缝平铺的背景纹理,质感倍增! */
| |
| /* background-image: url('https://www.transparenttextures.com/patterns/dark-metal.png'); */
| |
| color: var(--hoi4-text-light) !important;
| |
| font-family: var(--font-body) !important;
| |
| }
| |
|
| |
| /* 主要内容区域(文章) */
| |
| #content {
| |
| background-color: var(--hoi4-bg-paper) !important;
| |
| color: var(--hoi4-text-dark) !important;
| |
| border: 2px solid var(--hoi4-border-color) !important;
| |
| border-top-color: var(--hoi4-border-highlight) !important;
| |
| border-radius: 0 !important;
| |
| box-shadow: 0 5px 25px rgba(0, 0, 0, 0.7) !important;
| |
| }
| |
|
| |
| /* --- 3. 头部、侧边栏和搜索框 (强制执行) --- */
| |
|
| |
| /* 顶部横幅 */
| |
| #mw-head {
| |
| background: linear-gradient(to bottom, #4a4d46, #3a3d36) !important;
| |
| border-bottom: 2px solid #1a1a1a !important;
| |
| box-shadow: 0 2px 5px rgba(0,0,0,0.5) !important;
| |
| }
| |
|
| |
| /* 侧边栏 (左右通用) */
| |
| #mw-panel, #p-personal, #right-navigation {
| |
| background-color: var(--hoi4-bg-dark-panel) !important;
| |
| border: none !important;
| |
| }
| |
|
| |
| /* 你左侧的自定义Logo徽章 */
| |
| #p-logo {
| |
| background: none !important;
| |
| border: none !important;
| |
| }
| |
| #p-logo a {
| |
| filter: drop-shadow(0 0 8px rgba(255, 255, 220, 0.3)); /* 给Logo一点光晕 */
| |
| }
| |
|
| |
|
| |
| /* 搜索框 */
| |
| #searchInput {
| |
| background-color: #ddd3bc !important;
| |
| border: 1px solid var(--hoi4-border-color) !important;
| |
| border-radius: 0 !important;
| |
| color: var(--hoi4-text-dark) !important;
| |
| }
| |
| #searchButton, #mw-searchButton {
| |
| background-color: var(--hoi4-border-color) !important;
| |
| border: 1px solid var(--hoi4-border-highlight) !important;
| |
| border-radius: 0 !important;
| |
| color: var(--hoi4-text-light) !important;
| |
| font-family: var(--font-heading) !important;
| |
| }
| |
|
| |
| /* --- 4. 字体与排版 (强制执行) --- */
| |
|
| |
| /* 所有标题 */
| |
| h1, h2, h3, h4, h5, h6, #firstHeading, .mw-first-heading {
| |
| font-family: var(--font-heading) !important;
| |
| color: var(--hoi4-text-dark) !important;
| |
| border-bottom: 1px solid #c9be9f !important;
| |
| letter-spacing: 1.5px !important;
| |
| text-transform: uppercase !important;
| |
| padding-bottom: 0.3em !important;
| |
| text-shadow: 1px 1px 0px #fff !important;
| |
| }
| |
| #firstHeading, .mw-first-heading {
| |
| font-size: 2.5em !important;
| |
| border-bottom-width: 2px !important;
| |
| }
| |
|
| |
| /* 侧边栏标题 (快速导航, 常用功能...) */
| |
| #mw-panel .vector-menu-heading h3, #mw-panel h3 {
| |
| font-family: var(--font-heading) !important;
| |
| color: var(--hoi4-link-gold) !important;
| |
| letter-spacing: 1px !important;
| |
| border-bottom: 1px solid var(--hoi4-border-color) !important;
| |
| text-transform: uppercase !important;
| |
| }
| |
|
| |
| /* --- 5. 链接和UI细节 (强制执行) --- */
| |
|
| |
| /* 内容区链接 */
| |
| #content a {
| |
| color: #5a7a9a !important; /* 游戏中的蓝色链接 */
| |
| font-weight: bold !important;
| |
| }
| |
| #content a:hover {
| |
| color: #8ab3d6 !important;
| |
| }
| |
| #content a.new {
| |
| color: var(--hoi4-accent-red) !important;
| |
| }
| |
|
| |
| /* 侧边栏链接 */
| |
| #mw-panel .vector-menu-content a, #p-personal .vector-menu-content a {
| |
| color: var(--hoi4-text-light) !important;
| |
| }
| |
| #mw-panel .vector-menu-content a:hover, #p-personal .vector-menu-content a:hover {
| |
| background-color: rgba(200, 180, 106, 0.1) !important;
| |
| color: var(--hoi4-link-gold-hover) !important;
| |
| }
| |