MediaWiki:Common.css:修订间差异
外观
创建页面,内容为“→这里放置的CSS将应用于所有皮肤: →=========================================== 次元企鹅情报局百科 · 蓝白二次元主题 作者:ChatGPT 官方主题(为你定制) ===========================================: →全站基础字体: body, #content, .mw-body { font-family: "Noto Sans SC", "Microsoft YaHei", "PingFang SC", "Helvetica", "Arial", sans-serif !important; color: #2b2d42; } /* 链…” |
无编辑摘要 |
||
| 第97行: | 第97行: | ||
color: #003f6b !important; | color: #003f6b !important; | ||
border-bottom: 1px solid #dceeff; | border-bottom: 1px solid #dceeff; | ||
} | |||
/* ================================ | |||
首页全屏布局补丁(仅首页) | |||
================================ */ | |||
/* 让首页内容区域全宽 */ | |||
body.page-Mainpage .mw-body, | |||
body.page-Main_Page .mw-body { | |||
max-width: 100% !important; | |||
width: 100% !important; | |||
padding: 0 !important; | |||
margin: 0 !important; | |||
background: none !important; | |||
box-shadow: none !important; | |||
} | |||
/* 隐藏首页的侧边栏(仅首页) */ | |||
body.page-Mainpage #mw-panel, | |||
body.page-Main_Page #mw-panel { | |||
display: none !important; | |||
} | |||
/* 顶部内容条适配居中 */ | |||
body.page-Mainpage .mw-content-container, | |||
body.page-Main_Page .mw-content-container { | |||
margin-left: 0 !important; | |||
} | |||
/* 让内容区紧贴顶部导航栏 */ | |||
body.page-Mainpage #content, | |||
body.page-Main_Page #content { | |||
margin-top: 0 !important; | |||
} | |||
/* 让首页的网格更宽松 */ | |||
.page-Mainpage .mw-content-ltr, | |||
.page-Main_Page .mw-content-ltr { | |||
padding: 0 !important; | |||
} | } | ||
2025年11月6日 (四) 13:21的版本
/* 这里放置的CSS将应用于所有皮肤 */
/* ===========================================
次元企鹅情报局百科 · 蓝白二次元主题
作者:ChatGPT 官方主题(为你定制)
=========================================== */
/* 全站基础字体 */
body, #content, .mw-body {
font-family: "Noto Sans SC", "Microsoft YaHei", "PingFang SC",
"Helvetica", "Arial", sans-serif !important;
color: #2b2d42;
}
/* 链接颜色(蓝色,带 hover 效果) */
a {
color: #0077b6;
text-decoration: none;
}
a:hover {
color: #0096c7;
text-decoration: underline;
}
/* 标题颜色优化 */
h1, h2, h3, h4, h5 {
color: #1b4d7a !important;
font-weight: 600;
}
/* 页面内容区域卡片化 */
.mw-body {
background: #ffffff;
padding: 30px;
border-radius: 14px;
box-shadow: 0 4px 20px rgba(0,0,0,0.06);
margin-top: 20px;
}
/* 页面底部版权区域淡化背景 */
#footer {
background: #f8fbff;
padding: 20px 30px;
border-top: 1px solid #e0e6f0;
}
/* infobox / 表格美化 */
.infobox, table.wikitable {
border: 1px solid #d0e3f7 !important;
background: #ffffff;
border-collapse: separate;
border-radius: 12px;
overflow: hidden;
}
table.wikitable th {
background: #eaf6ff !important;
color: #003f6b;
font-weight: bold;
}
/* 页面各模块区域标题(蓝色条) */
.mw-heading,
.firstHeading {
border-left: 6px solid #0096c7;
padding-left: 10px;
}
/* 搜索框圆角 */
#searchInput {
border-radius: 30px !important;
padding: 8px 16px !important;
}
/* 按钮美化 */
.mw-ui-button,
button,
input[type='submit'],
input[type='button'] {
background: linear-gradient(90deg, #0077b6, #0096c7);
border: none;
color: white !important;
padding: 6px 16px;
border-radius: 20px;
}
.mw-ui-button:hover,
button:hover,
input[type='submit']:hover {
opacity: 0.9;
}
/* 侧栏链接 hover */
#mw-panel .portal .body li a:hover {
color: #0096c7 !important;
}
/* 侧边栏标题美化 */
#mw-panel .portal h3 {
color: #003f6b !important;
border-bottom: 1px solid #dceeff;
}
/* ================================
首页全屏布局补丁(仅首页)
================================ */
/* 让首页内容区域全宽 */
body.page-Mainpage .mw-body,
body.page-Main_Page .mw-body {
max-width: 100% !important;
width: 100% !important;
padding: 0 !important;
margin: 0 !important;
background: none !important;
box-shadow: none !important;
}
/* 隐藏首页的侧边栏(仅首页) */
body.page-Mainpage #mw-panel,
body.page-Main_Page #mw-panel {
display: none !important;
}
/* 顶部内容条适配居中 */
body.page-Mainpage .mw-content-container,
body.page-Main_Page .mw-content-container {
margin-left: 0 !important;
}
/* 让内容区紧贴顶部导航栏 */
body.page-Mainpage #content,
body.page-Main_Page #content {
margin-top: 0 !important;
}
/* 让首页的网格更宽松 */
.page-Mainpage .mw-content-ltr,
.page-Main_Page .mw-content-ltr {
padding: 0 !important;
}