MediaWiki:Common.css
MediaWiki界面页面
更多操作
注意:在发布之后,您可能需要清除浏览器缓存才能看到所作出的更改的影响。
- Firefox或Safari:按住Shift的同时单击刷新,或按Ctrl-F5或Ctrl-R(Mac为⌘-R)
- Google Chrome:按Ctrl-Shift-R(Mac为⌘-Shift-R)
- Edge:按住Ctrl的同时单击刷新,或按Ctrl-F5。
/* 江中缘Wiki - 深色主题 */
/* 基础样式 */
body {
background-color: #1a1a1a !important;
color: #e0e0e0 !important;
}
/* 内容区域 */
.mw-body, .mw-body-content {
background-color: #2d2d2d !important;
color: #e0e0e0 !important;
}
/* 标题 */
h1, h2, h3, h4, h5, h6 {
color: #ffffff !important;
border-bottom-color: #444 !important;
}
/* 链接 */
a {
color: #64b5f6 !important;
}
a:hover {
color: #90caf9 !important;
}
/* 表格 */
.wikitable {
background-color: #3d3d3d !important;
color: #e0e0e0 !important;
border-color: #555 !important;
}
.wikitable th {
background-color: #444 !important;
color: #fff !important;
}
/* 侧边栏 */
.mw-portlet, .vector-menu-portal {
background-color: #2d2d2d !important;
}
/* 导航栏 */
.vector-menu-tabs, .vector-menu-dropdown {
background-color: #333 !important;
}
/* 页脚 */
.footer-box, #footer {
background-color: #2d2d2d !important;
}
/* 代码块 */
.mw-code {
background-color: #3d3d3d !important;
color: #e0e0e0 !important;
}
/* 搜索框 */
input[type="search"], input[type="text"] {
background-color: #3d3d3d !important;
color: #e0e0e0 !important;
border-color: #555 !important;
}
/* 按钮 */
.oo-ui-inputWidget-input, .mw-htmlform-submit {
background-color: #444 !important;
color: #e0e0e0 !important;
border-color: #555 !important;
}
/* 游戏资讯 tab 切换 */
.game-info-tabs {
display: flex;
gap: 0;
margin-bottom: 0;
}
.game-info-tabs label {
padding: 10px 20px;
cursor: pointer;
border-radius: 8px 8px 0 0;
margin: 0 2px;
font-weight: bold;
transition: opacity 0.2s;
border-bottom: 4px solid transparent;
}
.game-info-tabs label:hover {
opacity: 0.85;
}
.game-info-content {
background: rgba(255,255,255,0.92);
border-radius: 0 0 8px 8px;
padding: 15px;
min-height: 100px;
}
.game-info-content > div {
display: none;
}
.game-info-content > div:target {
display: block;
}
/* 默认显示第一个 */
#content-basic:target ~ .game-info-content #content-basic,
.game-info-content > div:first-child {
display: block;
}