MediaWiki:Common.css:修订间差异
外观
无编辑摘要 标签:手工回退 |
无编辑摘要 |
||
| 第6行: | 第6行: | ||
/* ================================================== | /* ================================================== | ||
✅ 顶部渐变 Header | ✅ 顶部渐变 Header 样式(基础保持原样) | ||
================================================== */ | ================================================== */ | ||
| 第12行: | 第12行: | ||
width: 100%; | width: 100%; | ||
background: linear-gradient(180deg, #e9f4ff 0%, #ffffff 80%); | background: linear-gradient(180deg, #e9f4ff 0%, #ffffff 80%); | ||
padding: | padding: 55px 0 70px; | ||
text-align: center; | text-align: center; | ||
border-radius: 0 0 | border-radius: 0 0 26px 26px; | ||
box-shadow: none !important; | box-shadow: none !important; | ||
margin-bottom: | margin-bottom: 35px; | ||
} | } | ||
| 第24行: | 第24行: | ||
} | } | ||
/* ✅ | /* ✅ Logo 外层(你现在不用 Logo,这里保留) */ | ||
.pg-header__logo { | .pg-header__logo { | ||
background: none !important; | background: none !important; | ||
| 第34行: | 第34行: | ||
} | } | ||
/* ✅ | /* ✅ 防止 VE 限制 */ | ||
.pg-logo-img { | .pg-logo-img { | ||
display: inline-block !important; | display: inline-block !important; | ||
| 第41行: | 第41行: | ||
height: auto !important; | height: auto !important; | ||
object-fit: contain !important; | object-fit: contain !important; | ||
} | |||
/* ================================================== | |||
✅ ✅ ✅ A 风格 · 官方清新版欢迎文本美化 | |||
================================================== */ | |||
.pg-header__title { | |||
font-size: 30px; | |||
font-weight: 800; | |||
color: #174d79; | |||
margin-bottom: 15px; | |||
} | |||
.pg-header__subtitle { | |||
font-size: 17px; | |||
line-height: 1.9; | |||
color: #3c4654; | |||
max-width: 720px; | |||
margin: 0 auto; | |||
} | |||
.pg-header__prints { | |||
margin-top: 18px; | |||
font-size: 20px; | |||
opacity: 0.85; | |||
} | } | ||
| 第127行: | 第153行: | ||
/* ================================================== | /* ================================================== | ||
✅ ✅ ✅ 首页白背景大框 — | ✅ ✅ ✅ 首页白背景大框 — 完全去除(Vector-2022) | ||
================================================== */ | ================================================== */ | ||
body.page-Main_Page .vector-page-container, | body.page-Main_Page .vector-page-container, | ||
body.page-Main_Page .vector-page-container-inner { | body.page-Main_Page .vector-page-container-inner { | ||
| 第140行: | 第165行: | ||
} | } | ||
body.page-Main_Page #content, | body.page-Main_Page #content, | ||
body.page-Main_Page .vector-main-container, | body.page-Main_Page .vector-main-container, | ||
| 第152行: | 第176行: | ||
} | } | ||
body.page-Main_Page .mw-body, | body.page-Main_Page .mw-body, | ||
body.page-Main_Page .mw-body-content, | body.page-Main_Page .mw-body-content, | ||
| 第162行: | 第185行: | ||
padding: 0 !important; | padding: 0 !important; | ||
margin: 0 !important; | margin: 0 !important; | ||
} | } | ||
| 第168行: | 第190行: | ||
/* ================================================== | /* ================================================== | ||
✅ | ✅ 图片白框彻底清除(不删除图片) | ||
================================================== */ | ================================================== */ | ||
body.page-Main_Page figure, | body.page-Main_Page figure, | ||
body.page-Main_Page .thumb, | body.page-Main_Page .thumb, | ||
| 第184行: | 第205行: | ||
} | } | ||
body.page-Main_Page .mw-file-element { | body.page-Main_Page .mw-file-element { | ||
max-width: none !important; | max-width: none !important; | ||
| 第213行: | 第233行: | ||
@media (max-width: 600px) { | @media (max-width: 600px) { | ||
.pg-header { | .pg-header { | ||
padding: | padding: 40px 0 55px; | ||
} | |||
.pg-header__title { | |||
font-size: 24px; | |||
} | |||
.pg-header__subtitle { | |||
font-size: 15px; | |||
} | } | ||
| 第229行: | 第257行: | ||
} | } | ||
} | } | ||
/* | |||
/* ================================================== | |||
✅ 强制恢复所有图片可见(紧急补丁) | |||
================================================== */ | |||
body.page-Main_Page figure, | body.page-Main_Page figure, | ||
body.page-Main_Page .thumb, | body.page-Main_Page .thumb, | ||
| 第248行: | 第281行: | ||
} | } | ||
body.page-Main_Page img, | body.page-Main_Page img, | ||
body.page-Main_Page .mw-file-element img { | body.page-Main_Page .mw-file-element img { | ||
| 第258行: | 第290行: | ||
} | } | ||
body.page-Main_Page .mw-parser-output, | body.page-Main_Page .mw-parser-output, | ||
body.page-Main_Page .vector-body, | body.page-Main_Page .vector-body, | ||
2025年11月7日 (五) 18:43的版本
/****************************************************
* ✅ 次元企鹅百科 v5.7 — 首页专用最终稳定版
* 顶部渐变 + 完美去白框 + 轻萌风图片 + Vector-2022 适配
****************************************************/
/* ==================================================
✅ 顶部渐变 Header 样式(基础保持原样)
================================================== */
.pg-header {
width: 100%;
background: linear-gradient(180deg, #e9f4ff 0%, #ffffff 80%);
padding: 55px 0 70px;
text-align: center;
border-radius: 0 0 26px 26px;
box-shadow: none !important;
margin-bottom: 35px;
}
.pg-header__inner {
max-width: 900px;
margin: 0 auto;
}
/* ✅ Logo 外层(你现在不用 Logo,这里保留) */
.pg-header__logo {
background: none !important;
padding: 0 !important;
margin-bottom: 18px;
border-radius: 0 !important;
box-shadow: none !important;
display: inline-block !important;
}
/* ✅ 防止 VE 限制 */
.pg-logo-img {
display: inline-block !important;
margin: 0 !important;
max-width: none !important;
height: auto !important;
object-fit: contain !important;
}
/* ==================================================
✅ ✅ ✅ A 风格 · 官方清新版欢迎文本美化
================================================== */
.pg-header__title {
font-size: 30px;
font-weight: 800;
color: #174d79;
margin-bottom: 15px;
}
.pg-header__subtitle {
font-size: 17px;
line-height: 1.9;
color: #3c4654;
max-width: 720px;
margin: 0 auto;
}
.pg-header__prints {
margin-top: 18px;
font-size: 20px;
opacity: 0.85;
}
/* ==================================================
✅ 核心导航
================================================== */
.pg-grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
gap: 20px;
max-width: 1100px;
margin: 20px auto;
padding: 0 15px;
}
.pg-card {
background: #ffffff;
padding: 20px 18px;
border-radius: 20px;
box-shadow: 0 4px 14px rgba(0,0,0,0.06);
text-align: center;
transition: .25s ease;
overflow: hidden;
}
.pg-card:hover {
transform: translateY(-6px);
box-shadow: 0 12px 34px rgba(0,0,0,0.14);
}
.pg-card__icon { font-size: 32px; }
.pg-card__title { font-size: 20px; font-weight: 800; color: #185480; }
.pg-card__desc { margin-top: 6px; color: #67727e; font-size: 14.8px; }
.pg-card__link { margin-top: 10px; color: #007bba !important; font-weight: 700; }
/* ==================================================
✅ 新番推荐(封面卡片)
================================================== */
.pg-gallery {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
gap: 20px;
max-width: 1100px;
margin: 25px auto;
padding: 0 15px;
}
.pg-cover-img {
border-radius: 16px !important;
transition: .25s ease;
max-width: none !important;
width: 100% !important;
}
.pg-cover-img:hover {
transform: scale(1.045);
box-shadow: 0 10px 26px rgba(0,0,0,0.16);
}
.pg-cover__title {
text-align: center;
margin-top: 8px;
font-weight: 700;
color: #2d3e50;
}
/* ==================================================
✅ 关于本站
================================================== */
.pg-about {
max-width: 900px;
margin: 30px auto 60px;
padding: 20px 10px;
color: #333;
font-size: 16px;
line-height: 1.9;
}
/* ==================================================
✅ ✅ ✅ 首页白背景大框 — 完全去除(Vector-2022)
================================================== */
body.page-Main_Page .vector-page-container,
body.page-Main_Page .vector-page-container-inner {
background: transparent !important;
border: none !important;
box-shadow: none !important;
padding: 0 !important;
margin: 0 !important;
}
body.page-Main_Page #content,
body.page-Main_Page .vector-main-container,
body.page-Main_Page .vector-column-view {
background: transparent !important;
border: none !important;
box-shadow: none !important;
padding: 0 !important;
margin: 0 !important;
border-radius: 0 !important;
}
body.page-Main_Page .mw-body,
body.page-Main_Page .mw-body-content,
body.page-Main_Page .vector-body,
body.page-Main_Page .client-js .vector-body-before-content {
background: transparent !important;
border: none !important;
box-shadow: none !important;
padding: 0 !important;
margin: 0 !important;
}
/* ==================================================
✅ 图片白框彻底清除(不删除图片)
================================================== */
body.page-Main_Page figure,
body.page-Main_Page .thumb,
body.page-Main_Page .thumbinner,
body.page-Main_Page .tleft,
body.page-Main_Page .tright {
background: transparent !important;
border: none !important;
padding: 0 !important;
margin: 0 !important;
box-shadow: none !important;
}
body.page-Main_Page .mw-file-element {
max-width: none !important;
width: auto !important;
height: auto !important;
border: none !important;
box-shadow: none !important;
}
/* ==================================================
✅ 首页不把第一段当成 pre
================================================== */
body.page-Main_Page pre {
white-space: normal !important;
background: transparent !important;
padding: 0 !important;
border: none !important;
}
/* ==================================================
✅ 手机端适配补丁
================================================== */
@media (max-width: 600px) {
.pg-header {
padding: 40px 0 55px;
}
.pg-header__title {
font-size: 24px;
}
.pg-header__subtitle {
font-size: 15px;
}
.pg-grid {
grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
gap: 16px;
}
.pg-cover-img {
border-radius: 14px !important;
}
.pg-about {
padding: 10px 6px;
}
}
/* ==================================================
✅ 强制恢复所有图片可见(紧急补丁)
================================================== */
body.page-Main_Page figure,
body.page-Main_Page .thumb,
body.page-Main_Page .thumbinner,
body.page-Main_Page .mw-file-element,
body.page-Main_Page .tleft,
body.page-Main_Page .tright,
body.page-Main_Page .mw-halign-left,
body.page-Main_Page .mw-halign-right {
display: block !important;
visibility: visible !important;
opacity: 1 !important;
background: transparent !important;
border: none !important;
padding: 0 !important;
margin: 0 !important;
box-shadow: none !important;
}
body.page-Main_Page img,
body.page-Main_Page .mw-file-element img {
display: block !important;
visibility: visible !important;
opacity: 1 !important;
max-width: 100% !important;
height: auto !important;
}
body.page-Main_Page .mw-parser-output,
body.page-Main_Page .vector-body,
body.page-Main_Page .mw-body-content {
overflow: visible !important;
}