MediaWiki:Common.css:修订间差异
跳转到导航
跳转到搜索
无编辑摘要 |
无编辑摘要 |
||
| 第2行: | 第2行: | ||
body { | body { | ||
background-color: #0d0f14 !important; | background-color: #0d0f14 !important; | ||
color: # | color: #e8edf3 !important; | ||
} | } | ||
/* ===== 侧边栏容器 ===== */ | /* ===== 侧边栏容器 ===== */ | ||
#mw-panel { | #mw-panel { | ||
background-color: # | background-color: #1a1e24 !important; | ||
border-right: 1px solid #2a2f36 !important; | border-right: 1px solid #2a2f36 !important; | ||
box-shadow: 2px 0 12px rgba(0, 0, 0, 0.6) !important; | box-shadow: 2px 0 12px rgba(0, 0, 0, 0.6) !important; | ||
| 第13行: | 第13行: | ||
} | } | ||
/* 侧边栏标题(少前百科) */ | /* 侧边栏标题(少前百科)- 使用亮白色 */ | ||
#mw-panel .portal h3, | #mw-panel .portal h3, | ||
#mw-panel .portal .portal-title { | #mw-panel .portal .portal-title { | ||
color: # | color: #ffffff !important; | ||
font-weight: | font-weight: 500 !important; | ||
font-size: | font-size: 20px !important; | ||
padding: | padding: 18px 20px 12px 20px !important; | ||
border-bottom: 1px solid # | border-bottom: 1px solid #2a2f36 !important; | ||
margin-bottom: | margin-bottom: 4px !important; | ||
background: none !important; | background: none !important; | ||
letter-spacing: 0.5px !important; | |||
} | } | ||
/* | /* 侧边栏分组标题 - 使用亮青色,醒目 */ | ||
#mw-panel .portal .portal-body label, | #mw-panel .portal .portal-body label, | ||
#mw-panel .portal .portal-body .portal-title { | #mw-panel .portal .portal-body .portal-title { | ||
color: # | color: #7ec8e3 !important; | ||
font-size: | font-size: 13px !important; | ||
font-weight: | font-weight: 700 !important; | ||
text-transform: uppercase !important; | text-transform: uppercase !important; | ||
letter-spacing: | letter-spacing: 1px !important; | ||
padding: | padding: 10px 20px 6px 20px !important; | ||
background: none !important; | background: none !important; | ||
} | } | ||
/* ===== 侧边栏导航链接 ===== */ | /* ===== 侧边栏导航链接 - 使用高亮灰色 ===== */ | ||
#mw-panel .portal .portal-body li a { | #mw-panel .portal .portal-body li a { | ||
display: block !important; | display: block !important; | ||
padding: | padding: 6px 20px 6px 24px !important; | ||
color: # | color: #d0d8e0 !important; | ||
font-size: | font-size: 15px !important; | ||
font-weight: 400 !important; | |||
border-left: 3px solid transparent !important; | border-left: 3px solid transparent !important; | ||
transition: background | transition: background 0.15s, border-color 0.15s, color 0.15s !important; | ||
text-decoration: none !important; | text-decoration: none !important; | ||
} | } | ||
/* 链接悬停 */ | /* 链接悬停 - 明显高亮 */ | ||
#mw-panel .portal .portal-body li a:hover { | #mw-panel .portal .portal-body li a:hover { | ||
background-color: # | background-color: #2a313a !important; | ||
border-left-color: # | border-left-color: #5b9aff !important; | ||
color: # | color: #ffffff !important; | ||
text-decoration: none !important; | text-decoration: none !important; | ||
} | } | ||
/* 当前激活/选中项 */ | /* 当前激活/选中项 - 最亮高亮 */ | ||
#mw-panel .portal .portal-body li a:active, | #mw-panel .portal .portal-body li a:active, | ||
#mw-panel .portal .portal-body li.selected a, | #mw-panel .portal .portal-body li.selected a, | ||
#mw-panel .portal .portal-body li a.selected { | #mw-panel .portal .portal-body li a.selected { | ||
background-color: # | background-color: #232b35 !important; | ||
border-left-color: # | border-left-color: #5b9aff !important; | ||
color: #ffffff !important; | color: #ffffff !important; | ||
font-weight: 500 !important; | |||
} | } | ||
| 第72行: | 第75行: | ||
} | } | ||
/* 去掉最后一个 portal | /* 去掉最后一个 portal 的分割线 */ | ||
#mw-panel .portal:last-child { | #mw-panel .portal:last-child { | ||
border-bottom: none !important; | border-bottom: none !important; | ||
| 第79行: | 第82行: | ||
/* ===== 侧边栏底部工具链接 ===== */ | /* ===== 侧边栏底部工具链接 ===== */ | ||
#mw-panel .portal:last-child .portal-body li a { | #mw-panel .portal:last-child .portal-body li a { | ||
font-size: | font-size: 14px !important; | ||
color: # | color: #a0b0c0 !important; | ||
} | } | ||
#mw-panel .portal:last-child .portal-body li a:hover { | #mw-panel .portal:last-child .portal-body li a:hover { | ||
color: # | color: #ffffff !important; | ||
} | } | ||
| 第92行: | 第95行: | ||
} | } | ||
#mw-panel::-webkit-scrollbar-track { | #mw-panel::-webkit-scrollbar-track { | ||
background: # | background: #1a1e24 !important; | ||
} | } | ||
#mw-panel::-webkit-scrollbar-thumb { | #mw-panel::-webkit-scrollbar-thumb { | ||
| 第99行: | 第102行: | ||
} | } | ||
#mw-panel { | #mw-panel { | ||
scrollbar-width: thin !important; | scrollbar-width: thin !important; | ||
scrollbar-color: #3a414b # | scrollbar-color: #3a414b #1a1e24 !important; | ||
} | } | ||
| 第112行: | 第114行: | ||
#mw-content { | #mw-content { | ||
background-color: #0d0f14 !important; | background-color: #0d0f14 !important; | ||
color: # | color: #e0e6ee !important; | ||
} | } | ||
| 第119行: | 第121行: | ||
#mw-content h3, | #mw-content h3, | ||
#mw-content h4 { | #mw-content h4 { | ||
color: # | color: #f0f4fa !important; | ||
} | } | ||
#mw-content p, | #mw-content p, | ||
#mw-content li { | #mw-content li { | ||
color: # | color: #d0d8e0 !important; | ||
line-height: 1.7 !important; | |||
} | } | ||
/* ===== 顶部个人工具栏 ===== */ | /* ===== 顶部个人工具栏 ===== */ | ||
#p-personal li a { | #p-personal li a { | ||
color: # | color: #a0b0c0 !important; | ||
font-size: 14px !important; | |||
} | } | ||
#p-personal li a:hover { | #p-personal li a:hover { | ||
color: # | color: #ffffff !important; | ||
} | } | ||
| 第138行: | 第142行: | ||
#searchInput { | #searchInput { | ||
background-color: #1e242b !important; | background-color: #1e242b !important; | ||
color: # | color: #e8edf3 !important; | ||
border: 1px solid #2a2f36 !important; | border: 1px solid #2a2f36 !important; | ||
font-size: 14px !important; | |||
} | } | ||
#searchInput:focus { | #searchInput:focus { | ||
border-color: # | border-color: #5b9aff !important; | ||
outline: none !important; | outline: none !important; | ||
background-color: #252c36 !important; | |||
} | } | ||
| 第149行: | 第155行: | ||
#footer { | #footer { | ||
background-color: #0d0f14 !important; | background-color: #0d0f14 !important; | ||
color: # | color: #6a7a8a !important; | ||
border-top: 1px solid #282e36 !important; | border-top: 1px solid #282e36 !important; | ||
} | } | ||
#footer a { | #footer a { | ||
color: # | color: #a0b0c0 !important; | ||
} | } | ||
#footer a:hover { | #footer a:hover { | ||
color: # | color: #ffffff !important; | ||
} | } | ||
| 第174行: | 第180行: | ||
/* */ | /* */ | ||
/* ======================================================================== */ | /* ======================================================================== */ | ||
2026年8月27日 (四) 12:36的版本
/* ===== 暗色主题全局 ===== */
body {
background-color: #0d0f14 !important;
color: #e8edf3 !important;
}
/* ===== 侧边栏容器 ===== */
#mw-panel {
background-color: #1a1e24 !important;
border-right: 1px solid #2a2f36 !important;
box-shadow: 2px 0 12px rgba(0, 0, 0, 0.6) !important;
padding-top: 0 !important;
}
/* 侧边栏标题(少前百科)- 使用亮白色 */
#mw-panel .portal h3,
#mw-panel .portal .portal-title {
color: #ffffff !important;
font-weight: 500 !important;
font-size: 20px !important;
padding: 18px 20px 12px 20px !important;
border-bottom: 1px solid #2a2f36 !important;
margin-bottom: 4px !important;
background: none !important;
letter-spacing: 0.5px !important;
}
/* 侧边栏分组标题 - 使用亮青色,醒目 */
#mw-panel .portal .portal-body label,
#mw-panel .portal .portal-body .portal-title {
color: #7ec8e3 !important;
font-size: 13px !important;
font-weight: 700 !important;
text-transform: uppercase !important;
letter-spacing: 1px !important;
padding: 10px 20px 6px 20px !important;
background: none !important;
}
/* ===== 侧边栏导航链接 - 使用高亮灰色 ===== */
#mw-panel .portal .portal-body li a {
display: block !important;
padding: 6px 20px 6px 24px !important;
color: #d0d8e0 !important;
font-size: 15px !important;
font-weight: 400 !important;
border-left: 3px solid transparent !important;
transition: background 0.15s, border-color 0.15s, color 0.15s !important;
text-decoration: none !important;
}
/* 链接悬停 - 明显高亮 */
#mw-panel .portal .portal-body li a:hover {
background-color: #2a313a !important;
border-left-color: #5b9aff !important;
color: #ffffff !important;
text-decoration: none !important;
}
/* 当前激活/选中项 - 最亮高亮 */
#mw-panel .portal .portal-body li a:active,
#mw-panel .portal .portal-body li.selected a,
#mw-panel .portal .portal-body li a.selected {
background-color: #232b35 !important;
border-left-color: #5b9aff !important;
color: #ffffff !important;
font-weight: 500 !important;
}
/* ===== 侧边栏分割线 ===== */
#mw-panel .portal {
border-bottom: 1px solid #282e36 !important;
padding-bottom: 4px !important;
margin-bottom: 2px !important;
}
/* 去掉最后一个 portal 的分割线 */
#mw-panel .portal:last-child {
border-bottom: none !important;
}
/* ===== 侧边栏底部工具链接 ===== */
#mw-panel .portal:last-child .portal-body li a {
font-size: 14px !important;
color: #a0b0c0 !important;
}
#mw-panel .portal:last-child .portal-body li a:hover {
color: #ffffff !important;
}
/* ===== 侧边栏滚动条 ===== */
#mw-panel::-webkit-scrollbar {
width: 4px !important;
}
#mw-panel::-webkit-scrollbar-track {
background: #1a1e24 !important;
}
#mw-panel::-webkit-scrollbar-thumb {
background: #3a414b !important;
border-radius: 6px !important;
}
#mw-panel {
scrollbar-width: thin !important;
scrollbar-color: #3a414b #1a1e24 !important;
}
/* ===== 右侧主内容区适配 ===== */
#mw-content-wrapper {
background-color: #0d0f14 !important;
}
#mw-content {
background-color: #0d0f14 !important;
color: #e0e6ee !important;
}
#mw-content h1,
#mw-content h2,
#mw-content h3,
#mw-content h4 {
color: #f0f4fa !important;
}
#mw-content p,
#mw-content li {
color: #d0d8e0 !important;
line-height: 1.7 !important;
}
/* ===== 顶部个人工具栏 ===== */
#p-personal li a {
color: #a0b0c0 !important;
font-size: 14px !important;
}
#p-personal li a:hover {
color: #ffffff !important;
}
/* ===== 搜索框暗色适配 ===== */
#searchInput {
background-color: #1e242b !important;
color: #e8edf3 !important;
border: 1px solid #2a2f36 !important;
font-size: 14px !important;
}
#searchInput:focus {
border-color: #5b9aff !important;
outline: none !important;
background-color: #252c36 !important;
}
/* ===== 页面底部 ===== */
#footer {
background-color: #0d0f14 !important;
color: #6a7a8a !important;
border-top: 1px solid #282e36 !important;
}
#footer a {
color: #a0b0c0 !important;
}
#footer a:hover {
color: #ffffff !important;
}
/* ======================================================================== */
/* */
/* ██████╗ ███████╗██╗ ██████╗ ██████╗ ███████╗██████╗ █████╗ ████████╗ */
/* ██╔══██╗██╔════╝██║ ██╔═══██╗██╔══██╗██╔════╝██╔══██╗██╔══██╗╚══██╔══╝ */
/* ██████╔╝█████╗ ██║ ██║ ██║██████╔╝█████╗ ██████╔╝███████║ ██║ */
/* ██╔══██╗██╔══╝ ██║ ██║ ██║██╔══██╗██╔══╝ ██╔══██╗██╔══██║ ██║ */
/* ██████╔╝███████╗███████╗╚██████╔╝██║ ██║███████╗██║ ██║██║ ██║ ██║ */
/* ╚═════╝ ╚══════╝╚══════╝ ╚═════╝ ╚═╝ ╚═╝╚══════╝╚═╝ ╚═╝╚═╝ ╚═╝ ╚═╝ */
/* */
/* ====================== 分 隔 线 · 以 下 为 新 代 码 ====================== */
/* */
/* ======================================================================== */
/* --- 通用信息卡片样式 (基于 CSS 变量) --- */
/* 1. 卡片外层容器 */
.mw-card-box {
width: 100%;
background-color: #f8f9fa;
border: 1px solid #a2a9b1;
padding: 0;
border-spacing: 0;
}
/* 2. 标题区 (颜色跟随变量) */
.mw-card-header {
background-color: #f4f8fc;
color: #000;
font-weight: bold;
padding: 12px 18px;
text-align: left;
border-bottom: 3px solid var(--theme-color, #0077FF);
font-size: 1.2em;
}
/* 3. 基础数据区 */
.mw-card-body {
padding: 15px 18px;
background-color: #ffffff;
}
/* 4. 数据区内部弹性布局 */
.mw-card-flex {
display: flex;
justify-content: space-between;
align-items: flex-start;
flex-wrap: wrap;
gap: 15px 30px;
}
.mw-card-col {
flex: 1;
line-height: 1.7;
min-width: 120px;
}
/* 5. 右上角图标区 */
.mw-card-icon-box {
flex: 0 0 auto;
background-color: var(--theme-color, #0077FF);
padding: 4px 8px;
border-radius: 3px;
display: flex;
align-items: center;
}
/* 6. 内容区分割线 */
.mw-card-divider {
padding: 0;
border-bottom: 1px solid #eaecf0;
}
/* 7. 图片/截图展示区 */
.mw-card-image-frame {
text-align: center;
padding: 15px;
background-color: var(--theme-bg, #f2f7fb);
border: 1px solid var(--theme-color, #0077FF);
margin: 0;
}
.mw-card-image-frame img {
max-width: 100%;
height: auto;
}
.mw-card-caption {
color: #666;
margin-top: 6px;
display: block;
}
/* 8. 底部附加信息区 */
.mw-card-footer {
padding: 15px 18px;
background-color: #ffffff;
line-height: 1.8;
}
/* 9. 游戏代码 INI 展示区 */
.mw-card-code {
padding: 15px 18px;
background-color: #ffffff;
}
.mw-card-code-divider {
padding: 0;
border-bottom: 1px solid #eaecf0;
margin-bottom: 15px;
}