MediaWiki:Common.css:修订间差异
跳转到导航
跳转到搜索
无编辑摘要 |
无编辑摘要 |
||
| 第1行: | 第1行: | ||
/* ===== | /* ============================================================ | ||
暗色主题 - 少前百科 GFwiki | |||
基于第一张截图样式仿制 | |||
============================================================ */ | |||
/* ----- 全局暗色背景 ----- */ | |||
body { | |||
background-color: #0d1117 !important; | |||
color: #e6edf3 !important; | |||
} | |||
/* ----- 侧边栏主容器 ----- */ | |||
#mw-panel { | #mw-panel { | ||
background-color: # | background-color: #161b22 !important; | ||
border-right: 1px solid # | border-right: 1px solid #30363d !important; | ||
padding-top: 0 !important; | padding-top: 0 !important; | ||
} | } | ||
/* | /* ----- 侧边栏顶部标题(少前百科) ----- */ | ||
#mw-panel .portal h3, | #mw-panel .portal:first-child h3, | ||
#mw-panel .portal .portal-title { | #mw-panel .portal:first-child .portal-title { | ||
color: # | color: #ffffff !important; | ||
font-size: 20px !important; | |||
font-weight: 600 !important; | font-weight: 600 !important; | ||
padding: 18px 20px 12px 20px !important; | |||
padding: | border-bottom: 1px solid #30363d !important; | ||
border-bottom: 1px solid # | margin-bottom: 6px !important; | ||
margin-bottom: | |||
background: none !important; | background: none !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: #58a6ff !important; | ||
font-size: 12px !important; | font-size: 12px !important; | ||
font-weight: 700 !important; | font-weight: 700 !important; | ||
text-transform: uppercase !important; | text-transform: uppercase !important; | ||
letter-spacing: 0. | letter-spacing: 0.8px !important; | ||
padding: | padding: 10px 20px 4px 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: 5px 20px 5px 24px !important; | ||
color: # | color: #c9d1d9 !important; | ||
font-size: 14px !important; | font-size: 14px !important; | ||
text-decoration: none !important; | text-decoration: none !important; | ||
border-left: 2px solid transparent !important; | |||
transition: all 0.15s ease !important; | |||
} | } | ||
/* | /* ----- 侧边栏链接(悬停) ----- */ | ||
#mw-panel .portal .portal-body li a:hover { | #mw-panel .portal .portal-body li a:hover { | ||
background-color: # | background-color: #21262d !important; | ||
color: # | color: #f0f6fc !important; | ||
text-decoration: | border-left-color: #58a6ff !important; | ||
text-decoration: none !important; | |||
} | |||
/* ----- 侧边栏链接(当前选中/激活) ----- */ | |||
#mw-panel .portal .portal-body li.selected a, | |||
#mw-panel .portal .portal-body li a:active { | |||
background-color: #1c2333 !important; | |||
color: #ffffff !important; | |||
border-left-color: #58a6ff !important; | |||
font-weight: 500 !important; | |||
} | } | ||
/* | /* ----- 侧边栏分割线 ----- */ | ||
#mw-panel .portal { | #mw-panel .portal { | ||
border-bottom: 1px solid # | border-bottom: 1px solid #21262d !important; | ||
padding-bottom: | padding-bottom: 6px !important; | ||
margin-bottom: 2px !important; | margin-bottom: 2px !important; | ||
} | } | ||
| 第57行: | 第80行: | ||
} | } | ||
/* | /* ----- 底部特殊链接(登录/随机页面/复制短链接等) ----- */ | ||
#mw-panel .portal:last-child .portal-body li a { | |||
color: #8b949e !important; | |||
font-size: 13px !important; | |||
} | |||
#mw-panel .portal:last-child .portal-body li a:hover { | |||
color: #f0f6fc !important; | |||
background-color: #21262d !important; | |||
border-left-color: #58a6ff !important; | |||
} | |||
/* ----- 侧边栏滚动条(暗色) ----- */ | |||
#mw-panel::-webkit-scrollbar { | #mw-panel::-webkit-scrollbar { | ||
width: | width: 5px !important; | ||
} | } | ||
#mw-panel::-webkit-scrollbar-track { | #mw-panel::-webkit-scrollbar-track { | ||
background: # | background: #161b22 !important; | ||
} | } | ||
#mw-panel::-webkit-scrollbar-thumb { | #mw-panel::-webkit-scrollbar-thumb { | ||
background: # | background: #30363d !important; | ||
border-radius: | border-radius: 8px !important; | ||
} | |||
#mw-panel::-webkit-scrollbar-thumb:hover { | |||
background: #484f58 !important; | |||
} | } | ||
#mw-panel { | #mw-panel { | ||
scrollbar-width: thin !important; | scrollbar-width: thin !important; | ||
scrollbar-color: # | scrollbar-color: #30363d #161b22 !important; | ||
} | } | ||
/* | /* ----- 右侧主内容区 ----- */ | ||
#mw-content-wrapper { | #mw-content-wrapper { | ||
background-color: # | background-color: #0d1117 !important; | ||
} | } | ||
#mw-content { | #mw-content { | ||
background-color: # | background-color: #0d1117 !important; | ||
color: # | color: #e6edf3 !important; | ||
} | } | ||
| 第88行: | 第126行: | ||
#mw-content h3, | #mw-content h3, | ||
#mw-content h4 { | #mw-content h4 { | ||
color: # | color: #f0f6fc !important; | ||
} | } | ||
#mw-content p, | #mw-content p, | ||
#mw-content li { | #mw-content li { | ||
color: # | color: #c9d1d9 !important; | ||
line-height: 1. | line-height: 1.8 !important; | ||
} | |||
/* ----- 顶部个人工具栏(登录/查看源代码等) ----- */ | |||
#p-personal { | |||
background-color: transparent !important; | |||
} | } | ||
#p-personal li a { | #p-personal li a { | ||
color: # | color: #8b949e !important; | ||
font-size: 13px !important; | |||
} | } | ||
#p-personal li a:hover { | #p-personal li a:hover { | ||
color: # | color: #f0f6fc !important; | ||
text-decoration: | text-decoration: none !important; | ||
} | } | ||
/* | /* ----- 搜索框(暗色) ----- */ | ||
#searchInput { | #searchInput { | ||
background-color: # | background-color: #0d1117 !important; | ||
color: # | color: #e6edf3 !important; | ||
border: 1px solid # | border: 1px solid #30363d !important; | ||
border-radius: 6px !important; | |||
padding: 6px 10px !important; | |||
font-size: 14px !important; | |||
} | } | ||
#searchInput:focus { | #searchInput:focus { | ||
border-color: # | border-color: #58a6ff !important; | ||
outline: none !important; | outline: none !important; | ||
box-shadow: 0 0 0 3px rgba(88, 166, 255, 0.15) !important; | |||
} | } | ||
/* | /* ----- 页面底部 ----- */ | ||
#footer { | #footer { | ||
background-color: # | background-color: #0d1117 !important; | ||
color: # | color: #8b949e !important; | ||
border-top: 1px solid # | border-top: 1px solid #21262d !important; | ||
} | } | ||
#footer a { | #footer a { | ||
color: # | color: #58a6ff !important; | ||
} | } | ||
#footer a:hover { | #footer a:hover { | ||
color: # | color: #79c0ff !important; | ||
text-decoration: underline !important; | |||
} | |||
/* ----- 内容区链接(通用) ----- */ | |||
#mw-content a { | |||
color: #58a6ff !important; | |||
} | |||
#mw-content a:hover { | |||
color: #79c0ff !important; | |||
text-decoration: underline !important; | text-decoration: underline !important; | ||
} | } | ||
/* ----- 表格暗色适配 ----- */ | |||
.wikitable { | |||
background-color: #161b22 !important; | |||
border-color: #30363d !important; | |||
color: #e6edf3 !important; | |||
} | |||
.wikitable th { | |||
background-color: #21262d !important; | |||
color: #f0f6fc !important; | |||
border-color: #30363d !important; | |||
} | |||
.wikitable td { | |||
border-color: #30363d !important; | |||
} | |||
.wikitable tr:hover td { | |||
background-color: #1c2128 !important; | |||
} | |||
/* ----- 信息框/提示框适配 ----- */ | |||
.mw-message-box { | |||
background-color: #161b22 !important; | |||
border-color: #30363d !important; | |||
color: #e6edf3 !important; | |||
} | |||
/* ============================================================ */ | |||
| 第146行: | 第237行: | ||
/* */ | /* */ | ||
/* ======================================================================== */ | /* ======================================================================== */ | ||
2026年8月27日 (四) 12:39的版本
/* ============================================================
暗色主题 - 少前百科 GFwiki
基于第一张截图样式仿制
============================================================ */
/* ----- 全局暗色背景 ----- */
body {
background-color: #0d1117 !important;
color: #e6edf3 !important;
}
/* ----- 侧边栏主容器 ----- */
#mw-panel {
background-color: #161b22 !important;
border-right: 1px solid #30363d !important;
padding-top: 0 !important;
}
/* ----- 侧边栏顶部标题(少前百科) ----- */
#mw-panel .portal:first-child h3,
#mw-panel .portal:first-child .portal-title {
color: #ffffff !important;
font-size: 20px !important;
font-weight: 600 !important;
padding: 18px 20px 12px 20px !important;
border-bottom: 1px solid #30363d !important;
margin-bottom: 6px !important;
background: none !important;
}
/* ----- 侧边栏分组标题(游戏图鉴信息 / 游戏系统信息 等) ----- */
#mw-panel .portal .portal-body label,
#mw-panel .portal .portal-body .portal-title {
color: #58a6ff !important;
font-size: 12px !important;
font-weight: 700 !important;
text-transform: uppercase !important;
letter-spacing: 0.8px !important;
padding: 10px 20px 4px 20px !important;
background: none !important;
}
/* ----- 侧边栏链接(普通) ----- */
#mw-panel .portal .portal-body li a {
display: block !important;
padding: 5px 20px 5px 24px !important;
color: #c9d1d9 !important;
font-size: 14px !important;
text-decoration: none !important;
border-left: 2px solid transparent !important;
transition: all 0.15s ease !important;
}
/* ----- 侧边栏链接(悬停) ----- */
#mw-panel .portal .portal-body li a:hover {
background-color: #21262d !important;
color: #f0f6fc !important;
border-left-color: #58a6ff !important;
text-decoration: none !important;
}
/* ----- 侧边栏链接(当前选中/激活) ----- */
#mw-panel .portal .portal-body li.selected a,
#mw-panel .portal .portal-body li a:active {
background-color: #1c2333 !important;
color: #ffffff !important;
border-left-color: #58a6ff !important;
font-weight: 500 !important;
}
/* ----- 侧边栏分割线 ----- */
#mw-panel .portal {
border-bottom: 1px solid #21262d !important;
padding-bottom: 6px !important;
margin-bottom: 2px !important;
}
#mw-panel .portal:last-child {
border-bottom: none !important;
}
/* ----- 底部特殊链接(登录/随机页面/复制短链接等) ----- */
#mw-panel .portal:last-child .portal-body li a {
color: #8b949e !important;
font-size: 13px !important;
}
#mw-panel .portal:last-child .portal-body li a:hover {
color: #f0f6fc !important;
background-color: #21262d !important;
border-left-color: #58a6ff !important;
}
/* ----- 侧边栏滚动条(暗色) ----- */
#mw-panel::-webkit-scrollbar {
width: 5px !important;
}
#mw-panel::-webkit-scrollbar-track {
background: #161b22 !important;
}
#mw-panel::-webkit-scrollbar-thumb {
background: #30363d !important;
border-radius: 8px !important;
}
#mw-panel::-webkit-scrollbar-thumb:hover {
background: #484f58 !important;
}
#mw-panel {
scrollbar-width: thin !important;
scrollbar-color: #30363d #161b22 !important;
}
/* ----- 右侧主内容区 ----- */
#mw-content-wrapper {
background-color: #0d1117 !important;
}
#mw-content {
background-color: #0d1117 !important;
color: #e6edf3 !important;
}
#mw-content h1,
#mw-content h2,
#mw-content h3,
#mw-content h4 {
color: #f0f6fc !important;
}
#mw-content p,
#mw-content li {
color: #c9d1d9 !important;
line-height: 1.8 !important;
}
/* ----- 顶部个人工具栏(登录/查看源代码等) ----- */
#p-personal {
background-color: transparent !important;
}
#p-personal li a {
color: #8b949e !important;
font-size: 13px !important;
}
#p-personal li a:hover {
color: #f0f6fc !important;
text-decoration: none !important;
}
/* ----- 搜索框(暗色) ----- */
#searchInput {
background-color: #0d1117 !important;
color: #e6edf3 !important;
border: 1px solid #30363d !important;
border-radius: 6px !important;
padding: 6px 10px !important;
font-size: 14px !important;
}
#searchInput:focus {
border-color: #58a6ff !important;
outline: none !important;
box-shadow: 0 0 0 3px rgba(88, 166, 255, 0.15) !important;
}
/* ----- 页面底部 ----- */
#footer {
background-color: #0d1117 !important;
color: #8b949e !important;
border-top: 1px solid #21262d !important;
}
#footer a {
color: #58a6ff !important;
}
#footer a:hover {
color: #79c0ff !important;
text-decoration: underline !important;
}
/* ----- 内容区链接(通用) ----- */
#mw-content a {
color: #58a6ff !important;
}
#mw-content a:hover {
color: #79c0ff !important;
text-decoration: underline !important;
}
/* ----- 表格暗色适配 ----- */
.wikitable {
background-color: #161b22 !important;
border-color: #30363d !important;
color: #e6edf3 !important;
}
.wikitable th {
background-color: #21262d !important;
color: #f0f6fc !important;
border-color: #30363d !important;
}
.wikitable td {
border-color: #30363d !important;
}
.wikitable tr:hover td {
background-color: #1c2128 !important;
}
/* ----- 信息框/提示框适配 ----- */
.mw-message-box {
background-color: #161b22 !important;
border-color: #30363d !important;
color: #e6edf3 !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;
}