MediaWiki:Common.css:修订间差异
跳转到导航
跳转到搜索
无编辑摘要 |
无编辑摘要 |
||
第298行: | 第298行: | ||
#mw-panel a:hover { | #mw-panel a:hover { | ||
color: #cff !important; | color: #cff !important; | ||
} | |||
/* 登录用户内容区域强制全宽 */ | |||
body { | |||
max-width: 100% !important; | |||
} | |||
#content, | |||
#mw-content-text, | |||
.vector-body { | |||
margin: 0 auto !important; | |||
max-width: 100% !important; | |||
width: 100% !important; | |||
} | |||
/* 隐藏右边栏 */ | |||
.vector-page-tools-container, | |||
.vector-skin .mw-workspace-container { | |||
width: 100% !important; | |||
max-width: 100% !important; | |||
} | |||
/* 如果你启用了 vector-2022 皮肤,这样也能解决 */ | |||
body.skin-vector-2022 .mw-content-container { | |||
max-width: 100% !important; | |||
} | |||
/* 隐藏左边栏(可选) */ | |||
#mw-panel { | |||
display: none !important; | |||
} | } |
2025年5月28日 (三) 01:36的版本
/* ===== 页面整体布局和字体色调 ===== */
html, body {
background-color: #000 !important;
color: #f0f0f0 !important;
}
.mw-parser-output {
max-width: 100% !important;
width: 100% !important;
padding: 20px;
margin: 0 auto;
font-size: 14px;
line-height: 1.7;
box-sizing: border-box;
}
/* ===== 全站结构背景 ===== */
body.skin-vector #content,
body.skin-vector .mw-body,
body.skin-vector .mw-page-container,
body.skin-vector .mw-content-container,
body.skin-vector .vector-body,
body.skin-vector .vector-page-content {
background-color: #000 !important;
color: #f0f0f0 !important;
}
/* 顶部工具栏 */
.vector-header,
.vector-sticky-header,
.vector-header-container {
background-color: #000 !important;
color: #f0f0f0 !important;
border-bottom: 1px solid #222;
}
/* 搜索栏 */
#p-search input {
background-color: #1a1a1a !important;
color: #fff !important;
border: 1px solid #444 !important;
}
/* 顶部用户菜单 */
.vector-user-menu,
.vector-user-menu a {
color: #ccc !important;
}
.vector-user-menu a:hover {
color: #fff !important;
}
/* 左侧边栏 */
#mw-panel {
background-color: #111 !important;
color: #f0f0f0 !important;
}
#mw-panel a {
color: #ccc !important;
}
#mw-panel a:hover {
color: #fff !important;
}
/* 编辑工具栏背景 */
.vector-menu-content {
background-color: #111 !important;
}
/* 内容块默认背景 */
#content,
#mw-content-text {
background-color: transparent !important;
}
/* ===== 主内容区模块样式 ===== */
/* 所有内容块:统一圆角+暗色背景+间距 */
.mw-parser-output > * {
background-color: #1b1b1b !important;
padding: 20px;
margin-bottom: 24px;
border-radius: 12px;
box-shadow: 0 0 8px rgba(255, 255, 255, 0.05);
}
/* 标题样式 */
.mw-headline {
font-size: 18px;
font-weight: bold;
border-left: 5px solid #888;
padding-left: 10px;
margin-bottom: 12px;
}
/* ===== 表格统一样式 ===== */
.wikitable {
background-color: #111 !important;
border-collapse: collapse;
border: 1px solid #444;
width: 100%;
}
.wikitable th {
background-color: #222 !important;
color: #fff !important;
padding: 6px 10px;
}
.wikitable td {
background-color: #111 !important;
color: #ccc !important;
padding: 6px 10px;
text-align: center;
}
/* 表格小屏支持横向滚动 */
.wikitable-container {
overflow-x: auto;
}
/* ===== 输入表单类 ===== */
input[type="text"],
input[type="number"],
select {
background-color: #2a2a2a !important;
color: #f0f0f0 !important;
border: 1px solid #555 !important;
border-radius: 6px !important;
padding: 6px 10px;
width: 100px;
box-sizing: border-box;
}
/* 按钮样式 */
input[type="button"],
input[type="submit"],
button {
background-color: #333 !important;
color: #fff !important;
border: none;
padding: 6px 12px;
border-radius: 6px;
margin-top: 6px;
cursor: pointer;
}
input[type="button"]:hover,
input[type="submit"]:hover,
button:hover {
background-color: #555 !important;
}
/* ===== 计算器结构自动适配横排 ===== */
.mw-parser-output > div:has(input[type="number"]) {
display: flex;
flex-wrap: wrap;
justify-content: space-between;
gap: 16px;
}
.mw-parser-output > div:has(input[type="number"]) > div {
flex: 1 1 220px;
background-color: #1a1a1a;
color: #f0f0f0;
padding: 16px;
border-radius: 10px;
box-shadow: 0 0 10px rgba(0,0,0,0.2);
box-sizing: border-box;
}
/* ===== 精灵头像框优化(精简版)===== */
/* 单个头像卡片样式 */
.sprite-box {
background-color: #111;
border: 2px solid #444;
border-radius: 8px;
padding: 6px;
width: 90px;
height: 120px;
box-sizing: border-box;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
text-align: center;
color: #ccc;
transition: border-color 0.2s ease, transform 0.15s ease;
}
/* 悬停高亮效果 */
.sprite-box:hover {
border-color: #00ffff;
transform: scale(1.04);
}
/* 精灵图片统一尺寸 */
.sprite-box img {
width: 60px;
height: 60px;
object-fit: cover;
}
/* 精灵名字文字样式 */
.sprite-name {
font-size: 12px;
white-space: nowrap;
margin-top: 4px;
color: #ccc;
}
.sprite-grid {
width: 100%;
max-width: unset;
display: flex;
flex-wrap: wrap;
gap: 12px;
justify-content: flex-start;
padding: 12px;
}
/* 隐藏整个侧边栏 */
#mw-panel {
display: none !important;
}
/* 调整内容区宽度占满整个页面 */
#content,
#mw-content-text,
.vector-body {
margin-left: 0 !important;
}
/* 登录用户也取消左右栏,内容全宽显示 */
body {
max-width: 100% !important;
}
#content,
#mw-content-text,
.vector-body {
margin: 0 auto !important;
max-width: 100% !important;
width: 100% !important;
}
/* 去掉右上角的用户工具栏宽度影响 */
.vector-page-tools-container,
.vector-skin .mw-workspace-container {
max-width: 100% !important;
width: 100% !important;
}
/* 隐藏侧边栏 */
#mw-panel {
display: none !important;
}
/* 搜索框文字改亮色 */
input#searchInput {
background-color: #222 !important;
color: #fff !important;
border: 1px solid #666 !important;
}
/* 搜索按钮 */
input#searchButton {
background-color: #444 !important;
border: 1px solid #666 !important;
}
input#searchButton:hover {
background-color: #666 !important;
}
/* 顶部登录/注册链接颜色 */
#pt-login, #pt-createaccount {
color: #6cf !important; /* 浅蓝色 */
}
/* 鼠标悬浮时更亮一点 */
#pt-login:hover, #pt-createaccount:hover {
color: #9df !important;
}
/* 编辑按钮、查看历史等 tab 标签颜色 */
.vector-menu-tabs .selected a {
background: #222 !important;
color: #fff !important;
border-color: #f9c !important; /* 粉红色边框 */
}
.vector-menu-tabs li a {
color: #f9c !important;
}
.vector-menu-tabs li a:hover {
background-color: #333 !important;
color: #fff !important;
}
/* 侧边栏链接颜色(如果未隐藏侧边栏) */
#mw-panel a {
color: #9cf !important;
}
#mw-panel a:hover {
color: #cff !important;
}
/* 登录用户内容区域强制全宽 */
body {
max-width: 100% !important;
}
#content,
#mw-content-text,
.vector-body {
margin: 0 auto !important;
max-width: 100% !important;
width: 100% !important;
}
/* 隐藏右边栏 */
.vector-page-tools-container,
.vector-skin .mw-workspace-container {
width: 100% !important;
max-width: 100% !important;
}
/* 如果你启用了 vector-2022 皮肤,这样也能解决 */
body.skin-vector-2022 .mw-content-container {
max-width: 100% !important;
}
/* 隐藏左边栏(可选) */
#mw-panel {
display: none !important;
}