MediaWiki:Common.css
跳转到导航
跳转到搜索
注意:在发布之后,您可能需要清除浏览器缓存才能看到所作出的变更的影响。
- Firefox或Safari:按住Shift的同时单击刷新,或按Ctrl-F5或Ctrl-R(Mac为⌘-R)
- Google Chrome:按Ctrl-Shift-R(Mac为⌘-Shift-R)
- Internet Explorer或Edge:按住Ctrl的同时单击刷新,或按Ctrl-F5
- Opera:按 Ctrl-F5。
/* ===== 侧边栏容器 ===== */
#mw-panel {
background-color: #f6f6f6 !important;
border-right: 1px solid #d0d0d0 !important;
padding-top: 0 !important;
}
/* 侧边栏标题(少前百科/GFWIKI更新等) */
#mw-panel .portal h3,
#mw-panel .portal .portal-title {
color: #222222 !important;
font-weight: 600 !important;
font-size: 16px !important;
padding: 14px 20px 8px 20px !important;
border-bottom: 1px solid #d8d8d8 !important;
margin-bottom: 4px !important;
background: none !important;
}
/* 侧边栏分组标题(如"游戏图鉴信息""游戏系统信息"等) */
#mw-panel .portal .portal-body label,
#mw-panel .portal .portal-body .portal-title {
color: #333333 !important;
font-size: 12px !important;
font-weight: 700 !important;
text-transform: uppercase !important;
letter-spacing: 0.5px !important;
padding: 8px 20px 4px 20px !important;
background: none !important;
}
/* ===== 侧边栏导航链接 ===== */
#mw-panel .portal .portal-body li a {
display: block !important;
padding: 4px 20px 4px 24px !important;
color: #0645ad !important;
font-size: 14px !important;
text-decoration: none !important;
}
/* 链接悬停 */
#mw-panel .portal .portal-body li a:hover {
background-color: #e8e8e8 !important;
color: #0645ad !important;
text-decoration: underline !important;
}
/* ===== 侧边栏分割线 ===== */
#mw-panel .portal {
border-bottom: 1px solid #d8d8d8 !important;
padding-bottom: 4px !important;
margin-bottom: 2px !important;
}
#mw-panel .portal:last-child {
border-bottom: none !important;
}
/* ===== 侧边栏滚动条 ===== */
#mw-panel::-webkit-scrollbar {
width: 4px !important;
}
#mw-panel::-webkit-scrollbar-track {
background: #f6f6f6 !important;
}
#mw-panel::-webkit-scrollbar-thumb {
background: #cccccc !important;
border-radius: 6px !important;
}
#mw-panel {
scrollbar-width: thin !important;
scrollbar-color: #cccccc #f6f6f6 !important;
}
/* ===== 右侧主内容区适配 ===== */
#mw-content-wrapper {
background-color: #ffffff !important;
}
#mw-content {
background-color: #ffffff !important;
color: #222222 !important;
}
#mw-content h1,
#mw-content h2,
#mw-content h3,
#mw-content h4 {
color: #222222 !important;
}
#mw-content p,
#mw-content li {
color: #222222 !important;
line-height: 1.7 !important;
}
/* ===== 顶部个人工具栏 ===== */
#p-personal li a {
color: #0645ad !important;
}
#p-personal li a:hover {
color: #0645ad !important;
text-decoration: underline !important;
}
/* ===== 搜索框适配 ===== */
#searchInput {
background-color: #ffffff !important;
color: #222222 !important;
border: 1px solid #cccccc !important;
}
#searchInput:focus {
border-color: #0645ad !important;
outline: none !important;
}
/* ===== 页面底部 ===== */
#footer {
background-color: #f6f6f6 !important;
color: #666666 !important;
border-top: 1px solid #d0d0d0 !important;
}
#footer a {
color: #0645ad !important;
}
#footer a:hover {
color: #0645ad !important;
text-decoration: underline !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;
}