MediaWiki:Common.css:修订间差异
外观
无编辑摘要 |
无编辑摘要 标签:已被回退 |
||
| 第1行: | 第1行: | ||
/**************************************************** | /**************************************************** | ||
* ✅ 次元企鹅百科 | * ✅ 次元企鹅百科 · 首页 v7.1 | ||
* | * 冰蓝渐变 + 超轻萌风 + Vector-2022 适配 + 无白框图片 | ||
* ✅ 完美兼容 frameless(不隐藏图片、不触发白框) | |||
****************************************************/ | ****************************************************/ | ||
/* ================================================== | /* ================================================== | ||
✅ 顶部渐变 | ✅ 顶部渐变 Banner(与内容区隔离最强兼容) | ||
================================================== */ | ================================================== */ | ||
| 第12行: | 第13行: | ||
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行: | 第25行: | ||
} | } | ||
/* ✅ | |||
/* ✅ Logo */ | |||
.pg-header__logo { | .pg-header__logo { | ||
background: none !important; | background: none !important; | ||
padding: 0 !important; | padding: 0 !important; | ||
margin-bottom: | margin-bottom: 20px; | ||
border-radius: 0 !important; | border-radius: 0 !important; | ||
box-shadow: none !important; | box-shadow: none !important; | ||
| 第34行: | 第36行: | ||
} | } | ||
.pg-logo-img { | .pg-logo-img { | ||
display: inline-block !important; | display: inline-block !important; | ||
max-width: none !important; | max-width: none !important; | ||
width: 180px !important; | |||
height: auto !important; | height: auto !important; | ||
margin: 0 auto !important; | |||
} | |||
/* ✅ 标题与副标题文字 */ | |||
.pg-header__title { | |||
font-size: 28px; | |||
font-weight: 800; | |||
color: #164d78; | |||
margin-bottom: 12px; | |||
} | |||
.pg-header__subtitle { | |||
font-size: 17px; | |||
line-height: 1.9; | |||
color: #44525f; | |||
max-width: 760px; | |||
margin: 0 auto; | |||
} | |||
.pg-header__prints { | |||
margin-top: 18px; | |||
font-size: 20px; | |||
opacity: 0.85; | |||
} | } | ||
/* ================================================== | /* ================================================== | ||
✅ | ✅ 核心导航卡片(pg-grid) | ||
================================================== */ | ================================================== */ | ||
.pg-grid { | .pg-grid { | ||
display: grid; | display: grid; | ||
grid-template-columns: repeat(auto-fill, minmax( | grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); | ||
gap: 20px; | gap: 20px; | ||
max-width: 1100px; | max-width: 1100px; | ||
margin: | margin: 0 auto 30px; | ||
padding: 0 15px; | padding: 0 15px; | ||
} | } | ||
| 第59行: | 第83行: | ||
.pg-card { | .pg-card { | ||
background: #ffffff; | background: #ffffff; | ||
padding: | padding: 22px 18px; | ||
border-radius: 20px; | border-radius: 20px; | ||
text-align: center; | text-align: center; | ||
box-shadow: 0 4px 12px rgba(0,0,0,0.06); | |||
transition: .25s ease; | transition: .25s ease; | ||
} | } | ||
.pg-card:hover { | .pg-card:hover { | ||
transform: translateY(-6px); | transform: translateY(-6px); | ||
box-shadow: 0 12px | box-shadow: 0 12px 32px rgba(0,0,0,0.12); | ||
} | |||
.pg-card__icon { | |||
font-size: 34px; | |||
margin-bottom: 12px; | |||
} | |||
.pg-card__title { | |||
font-size: 20px; | |||
font-weight: 800; | |||
color: #1a527c; | |||
} | |||
.pg-card__desc { | |||
font-size: 14.5px; | |||
color: #66737f; | |||
margin-top: 6px; | |||
} | } | ||
.pg- | .pg-card__link { | ||
margin-top: 10px; | |||
font-weight: 700; | |||
color: #007ac6 !important; | |||
} | |||
| 第85行: | 第126行: | ||
display: grid; | display: grid; | ||
grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); | grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); | ||
gap: | gap: 22px; | ||
max-width: 1100px; | max-width: 1100px; | ||
margin: | margin: 10px auto 20px; | ||
padding: 0 15px; | padding: 0 15px; | ||
} | } | ||
| 第94行: | 第135行: | ||
border-radius: 16px !important; | border-radius: 16px !important; | ||
transition: .25s ease; | transition: .25s ease; | ||
width: 100% !important; | |||
height: auto !important; | |||
max-width: none !important; | max-width: none !important; | ||
} | } | ||
| 第107行: | 第149行: | ||
margin-top: 8px; | margin-top: 8px; | ||
font-weight: 700; | font-weight: 700; | ||
color: # | color: #2c3e50; | ||
} | } | ||
/* ================================================== | /* ================================================== | ||
✅ | ✅ 关于本站文本 | ||
================================================== */ | ================================================== */ | ||
.pg-about { | .pg-about { | ||
max-width: 900px; | max-width: 900px; | ||
margin: | margin: 35px auto 70px; | ||
padding: 20px 10px; | padding: 20px 10px; | ||
font-size: 16px; | |||
color: #333; | color: #333; | ||
line-height: 1.9; | line-height: 1.9; | ||
text-align: center; | |||
} | } | ||
| 第127行: | 第170行: | ||
/* ================================================== | /* ================================================== | ||
✅ ✅ ✅ | ✅ ✅ ✅ 首页三层白壳彻底移除(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, | ||
body.page-Main_Page #content, | body.page-Main_Page #content, | ||
body.page-Main_Page .vector-main-container, | body.page-Main_Page .vector-main-container, | ||
body.page-Main_Page .vector-column-view | body.page-Main_Page .vector-column-view, | ||
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, | ||
body.page-Main_Page .vector-body | body.page-Main_Page .vector-body { | ||
background: transparent !important; | background: transparent !important; | ||
border: none !important; | border: none !important; | ||
| 第168行: | 第192行: | ||
/* ================================================== | /* ================================================== | ||
✅ | ✅ ✅ ✅ frameless 图片彻底无白框(重点) | ||
✅ 不隐藏图片,只移除框 | |||
================================================== */ | ================================================== */ | ||
body.page-Main_Page figure, | body.page-Main_Page figure, | ||
body.page-Main_Page .thumb, | body.page-Main_Page .thumb, | ||
| 第180行: | 第204行: | ||
border: none !important; | border: none !important; | ||
padding: 0 !important; | padding: 0 !important; | ||
margin: 0 !important; | margin: 0 auto !important; | ||
box-shadow: none !important; | box-shadow: none !important; | ||
} | } | ||
body.page-Main_Page .mw-file-element { | body.page-Main_Page .mw-file-element { | ||
border: none !important; | |||
background: transparent !important; | |||
box-shadow: none !important; | |||
padding: 0 !important; | |||
margin: 0 auto !important; | |||
max-width: none !important; | max-width: none !important; | ||
height: auto !important; | height: auto !important; | ||
} | } | ||
| 第196行: | 第221行: | ||
/* ================================================== | /* ================================================== | ||
✅ | ✅ 避免图片被裁切或隐藏(兼容所有版本) | ||
================================================== */ | |||
body.page-Main_Page img { | |||
display: block !important; | |||
max-width: 100% !important; | |||
height: auto !important; | |||
opacity: 1 !important; | |||
visibility: visible !important; | |||
} | |||
/* ================================================== | |||
✅ 导航与推荐区域的容器防裁剪 | |||
================================================== */ | ================================================== */ | ||
body.page-Main_Page | body.page-Main_Page .mw-parser-output { | ||
overflow: visible !important; | |||
} | } | ||
/* ================================================== | /* ================================================== | ||
✅ | ✅ 移动端适配(更紧凑、更美观) | ||
================================================== */ | ================================================== */ | ||
@media (max-width: 600px) { | @media (max-width: 600px) { | ||
.pg-header { | .pg-header { | ||
padding: | padding: 40px 0 50px; | ||
} | |||
.pg-header__title { | |||
font-size: 22px; | |||
} | |||
.pg-header__subtitle { | |||
font-size: 15px; | |||
} | } | ||
.pg-grid { | .pg-grid { | ||
grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); | grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); | ||
gap: 14px; | |||
} | |||
.pg-gallery { | |||
grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); | |||
gap: 16px; | gap: 16px; | ||
} | } | ||
} | } | ||
2025年11月7日 (五) 18:29的版本
/****************************************************
* ✅ 次元企鹅百科 · 首页 v7.1
* 冰蓝渐变 + 超轻萌风 + Vector-2022 适配 + 无白框图片
* ✅ 完美兼容 frameless(不隐藏图片、不触发白框)
****************************************************/
/* ==================================================
✅ 顶部渐变 Banner(与内容区隔离最强兼容)
================================================== */
.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 */
.pg-header__logo {
background: none !important;
padding: 0 !important;
margin-bottom: 20px;
border-radius: 0 !important;
box-shadow: none !important;
display: inline-block !important;
}
.pg-logo-img {
display: inline-block !important;
max-width: none !important;
width: 180px !important;
height: auto !important;
margin: 0 auto !important;
}
/* ✅ 标题与副标题文字 */
.pg-header__title {
font-size: 28px;
font-weight: 800;
color: #164d78;
margin-bottom: 12px;
}
.pg-header__subtitle {
font-size: 17px;
line-height: 1.9;
color: #44525f;
max-width: 760px;
margin: 0 auto;
}
.pg-header__prints {
margin-top: 18px;
font-size: 20px;
opacity: 0.85;
}
/* ==================================================
✅ 核心导航卡片(pg-grid)
================================================== */
.pg-grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
gap: 20px;
max-width: 1100px;
margin: 0 auto 30px;
padding: 0 15px;
}
.pg-card {
background: #ffffff;
padding: 22px 18px;
border-radius: 20px;
text-align: center;
box-shadow: 0 4px 12px rgba(0,0,0,0.06);
transition: .25s ease;
}
.pg-card:hover {
transform: translateY(-6px);
box-shadow: 0 12px 32px rgba(0,0,0,0.12);
}
.pg-card__icon {
font-size: 34px;
margin-bottom: 12px;
}
.pg-card__title {
font-size: 20px;
font-weight: 800;
color: #1a527c;
}
.pg-card__desc {
font-size: 14.5px;
color: #66737f;
margin-top: 6px;
}
.pg-card__link {
margin-top: 10px;
font-weight: 700;
color: #007ac6 !important;
}
/* ==================================================
✅ 新番推荐(封面卡片)
================================================== */
.pg-gallery {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
gap: 22px;
max-width: 1100px;
margin: 10px auto 20px;
padding: 0 15px;
}
.pg-cover-img {
border-radius: 16px !important;
transition: .25s ease;
width: 100% !important;
height: auto !important;
max-width: none !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: #2c3e50;
}
/* ==================================================
✅ 关于本站文本
================================================== */
.pg-about {
max-width: 900px;
margin: 35px auto 70px;
padding: 20px 10px;
font-size: 16px;
color: #333;
line-height: 1.9;
text-align: center;
}
/* ==================================================
✅ ✅ ✅ 首页三层白壳彻底移除(Vector-2022)
================================================== */
body.page-Main_Page .vector-page-container,
body.page-Main_Page .vector-page-container-inner,
body.page-Main_Page #content,
body.page-Main_Page .vector-main-container,
body.page-Main_Page .vector-column-view,
body.page-Main_Page .mw-body,
body.page-Main_Page .mw-body-content,
body.page-Main_Page .vector-body {
background: transparent !important;
border: none !important;
box-shadow: none !important;
padding: 0 !important;
margin: 0 !important;
border-radius: 0 !important;
}
/* ==================================================
✅ ✅ ✅ frameless 图片彻底无白框(重点)
✅ 不隐藏图片,只移除框
================================================== */
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 auto !important;
box-shadow: none !important;
}
body.page-Main_Page .mw-file-element {
border: none !important;
background: transparent !important;
box-shadow: none !important;
padding: 0 !important;
margin: 0 auto !important;
max-width: none !important;
height: auto !important;
}
/* ==================================================
✅ 避免图片被裁切或隐藏(兼容所有版本)
================================================== */
body.page-Main_Page img {
display: block !important;
max-width: 100% !important;
height: auto !important;
opacity: 1 !important;
visibility: visible !important;
}
/* ==================================================
✅ 导航与推荐区域的容器防裁剪
================================================== */
body.page-Main_Page .mw-parser-output {
overflow: visible !important;
}
/* ==================================================
✅ 移动端适配(更紧凑、更美观)
================================================== */
@media (max-width: 600px) {
.pg-header {
padding: 40px 0 50px;
}
.pg-header__title {
font-size: 22px;
}
.pg-header__subtitle {
font-size: 15px;
}
.pg-grid {
grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
gap: 14px;
}
.pg-gallery {
grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
gap: 16px;
}
}