MediaWiki:Common.css:修订间差异
外观
无编辑摘要 |
无编辑摘要 |
||
| 第135行: | 第135行: | ||
.page-Main_Page .mw-content-ltr { | .page-Main_Page .mw-content-ltr { | ||
padding: 0 !important; | padding: 0 !important; | ||
} | |||
/* ======== 首页容器 ======== */ | |||
.home-container { | |||
max-width: 1100px; | |||
margin: 0 auto; | |||
padding: 20px 10px 60px; | |||
font-family: "Microsoft Yahei", Inter, sans-serif; | |||
} | |||
/* ======== 顶部 Banner ======== */ | |||
.home-banner { | |||
width: 100%; | |||
height: 260px; | |||
border-radius: 16px; | |||
background: linear-gradient(135deg, #d8ecff, #edf7ff); | |||
display: flex; | |||
align-items: center; | |||
justify-content: center; | |||
margin-bottom: 40px; | |||
position: relative; | |||
overflow: hidden; | |||
} | |||
.home-banner-text h1 { | |||
font-size: 40px; | |||
font-weight: 700; | |||
margin: 0; | |||
color: #2b2d42; | |||
} | |||
.home-banner-text p { | |||
font-size: 18px; | |||
color: #4a4e69; | |||
margin-top: 10px; | |||
} | |||
/* ======== 区块标题 ======== */ | |||
.home-section-title { | |||
font-size: 26px; | |||
font-weight: 600; | |||
margin: 35px 0 15px; | |||
color: #1d3557; | |||
border-left: 6px solid #74c0fc; | |||
padding-left: 12px; | |||
} | |||
/* ======== 分类卡片 ======== */ | |||
.home-grid { | |||
display: grid; | |||
grid-template-columns: repeat(3, 1fr); | |||
gap: 16px; | |||
} | |||
.home-card { | |||
background: #fff; | |||
padding: 20px; | |||
text-align: center; | |||
border-radius: 12px; | |||
font-size: 20px; | |||
font-weight: 600; | |||
color: #264653; | |||
border: 1px solid #e6e6e6; | |||
transition: 0.25s; | |||
cursor: pointer; | |||
} | |||
.home-card:hover { | |||
transform: translateY(-4px); | |||
box-shadow: 0 6px 20px rgba(0,0,0,0.08); | |||
} | |||
/* ======== 最近更新 ======== */ | |||
.home-updates { | |||
background: #f8fbff; | |||
padding: 20px; | |||
border-radius: 12px; | |||
border: 1px solid #e9f3ff; | |||
} | |||
/* ======== 关于本站 ======== */ | |||
.home-about { | |||
background: #ffffff; | |||
padding: 20px 24px; | |||
border-radius: 12px; | |||
line-height: 1.8; | |||
font-size: 16px; | |||
color: #2b2d42; | |||
border: 1px solid #e7e7e7; | |||
margin-bottom: 60px; | |||
} | } | ||
2025年11月6日 (四) 13:49的版本
/* 这里放置的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;
}
/* ======== 首页容器 ======== */
.home-container {
max-width: 1100px;
margin: 0 auto;
padding: 20px 10px 60px;
font-family: "Microsoft Yahei", Inter, sans-serif;
}
/* ======== 顶部 Banner ======== */
.home-banner {
width: 100%;
height: 260px;
border-radius: 16px;
background: linear-gradient(135deg, #d8ecff, #edf7ff);
display: flex;
align-items: center;
justify-content: center;
margin-bottom: 40px;
position: relative;
overflow: hidden;
}
.home-banner-text h1 {
font-size: 40px;
font-weight: 700;
margin: 0;
color: #2b2d42;
}
.home-banner-text p {
font-size: 18px;
color: #4a4e69;
margin-top: 10px;
}
/* ======== 区块标题 ======== */
.home-section-title {
font-size: 26px;
font-weight: 600;
margin: 35px 0 15px;
color: #1d3557;
border-left: 6px solid #74c0fc;
padding-left: 12px;
}
/* ======== 分类卡片 ======== */
.home-grid {
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 16px;
}
.home-card {
background: #fff;
padding: 20px;
text-align: center;
border-radius: 12px;
font-size: 20px;
font-weight: 600;
color: #264653;
border: 1px solid #e6e6e6;
transition: 0.25s;
cursor: pointer;
}
.home-card:hover {
transform: translateY(-4px);
box-shadow: 0 6px 20px rgba(0,0,0,0.08);
}
/* ======== 最近更新 ======== */
.home-updates {
background: #f8fbff;
padding: 20px;
border-radius: 12px;
border: 1px solid #e9f3ff;
}
/* ======== 关于本站 ======== */
.home-about {
background: #ffffff;
padding: 20px 24px;
border-radius: 12px;
line-height: 1.8;
font-size: 16px;
color: #2b2d42;
border: 1px solid #e7e7e7;
margin-bottom: 60px;
}