跳转到内容

MediaWiki:Common.css:修订间差异

来自次元企鹅情报局百科
Admin留言 | 贡献
无编辑摘要
Admin留言 | 贡献
无编辑摘要
第1行: 第1行:
/****************************************************
/****************************************************
  * ✅ 修复首页顶部灰色大框 / padding 异常
  * ✅ 次元企鹅百科 v5.1 UI 主题样式
  * ✅ 适用于 Vector-2022
  * 顶部渐变 + 白卡片 + 企鹅轻萌风
  ****************************************************/
  ****************************************************/


/* ✅(最关键)阻止首页第一段被误解析成 <pre> 并生成灰框 */
/* =============== 顶部 Header 渐变背景 =============== */
body.page-Main_Page pre,
.pg-header {
body.page-Main_Page pre.mw-code {
     width: 100%;
     background: transparent !important;
     background: linear-gradient(180deg, #e9f4ff 0%, #ffffff 80%);
     padding: 0 !important;
     padding: 50px 0 60px;
     margin: 0 !important;
     text-align: center;
    border: none !important;
     border-radius: 0 0 22px 22px;
     box-shadow: none !important;
     box-shadow: 0 4px 12px rgba(0,0,0,0.06);
     white-space: normal !important;
     margin-bottom: 30px;
     overflow-x: visible !important;
}
 
/* ✅ 禁止 Vector-2022 为首页自动加的外层 padding 框 */
body.page-Main_Page .vector-feature-main,
body.page-Main_Page .vector-feature-body,
body.page-Main_Page .vector-main-container,
body.page-Main_Page .vector-content-container,
body.page-Main_Page .vector-sticky-header-container,
body.page-Main_Page .vector-page-toolbar,
body.page-Main_Page .vector-feature-container,
body.page-Main_Page .vector-body,
body.page-Main_Page #content,
body.page-Main_Page .mw-body,
body.page-Main_Page .mw-body-content {
    padding: 0 !important;
    margin: 0 !important;
    background: #ffffff !important;  /* 纯白,不要灰色 */
    border: none !important;
    box-shadow: none !important;
}
 
/* ✅ 最外层包装容器(灰框罪魁祸首) */
body.page-Main_Page .vector-page-container {
    padding: 0 !important;
     margin: 0 !important;
    background: #ffffff !important;
    border: none !important;
    box-shadow: none !important;
}
}


/* ✅ 内容区真正贴到顶部 */
.pg-header__inner {
body.page-Main_Page .mw-parser-output {
     max-width: 900px;
     margin-top: 0 !important;
     margin: 0 auto;
     padding-top: 0 !important;
}
}


 
/* LOGO 卡片 */
 
.pg-header__logo {
/****************************************************
    background: #fff;
* ✅ 以下是 UI 美化部分(企鹅可爱风)
    display: inline-block;
* ✅ 不影响你修复的白底结构
    padding: 14px 28px;
****************************************************/
    border-radius: 18px;
 
    box-shadow: 0 4px 14px rgba(0,0,0,0.08);
/* ===============================
    margin-bottom: 18px;
  ✅ 顶部渐变 Header(冰蓝动漫风)
  =============================== */
.pg-hero {
  width: 100%;
  padding: 64px 20px 72px;
  background: linear-gradient(135deg, #e6f5ff, #f3faff, #eaf6ff);
  text-align: center;
  border-bottom: 1px solid rgba(0,0,0,0.05);
}
}


.pg-hero__logo {
/* 主标题 */
  padding: 20px;
.pg-header__title {
  background: white;
    font-size: 42px;
  display: inline-block;
    font-weight: 800;
  border-radius: 22px;
    color: #195a8d;
  box-shadow: 0 6px 18px rgba(0,0,0,.08);
    margin: 12px 0;
  margin-bottom: 18px;
}
}


.pg-hero__title {
/* 副标题 */
  font-size: 42px;
.pg-header__subtitle {
  font-weight: 800;
    color: #2b3a55;
  color: #1b4d7a;
    font-size: 18px;
    line-height: 1.8;
    max-width: 750px;
    margin: 0 auto;
}
}


.pg-hero__subtitle {
/* 脚印动画 */
  margin-top: 12px;
.pg-header__prints {
  font-size: 17px;
    margin-top: 16px;
  color: #324a63;
    font-size: 20px;
  line-height: 1.9;
    animation: pawFade 3.2s ease-in-out infinite;
}
}


.pg-hero__prints {
@keyframes pawFade {
  margin-top: 12px;
    0%,100% { opacity: 0.2; }
  font-size: 22px;
    50% { opacity: 1; }
}
}






/****************************************************
/* =============== 核心导航卡片 =============== */
* ✅ 核心导航(卡片风)
****************************************************/
.pg-grid {
.pg-grid {
  display: grid;
    display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px,1fr));
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
    gap: 20px;
  padding: 24px 12px;
    max-width: 1100px;
  max-width: 1100px;
    margin: 20px auto;
  margin: 0 auto;
    padding: 0 15px;
}
}


.pg-card {
.pg-card {
  background: #ffffff;
    background: #ffffff;
  border-radius: 20px;
    padding: 20px 18px;
  padding: 20px;
    border-radius: 20px;
  text-align: center;
    box-shadow: 0 4px 14px rgba(0,0,0,0.06);
  box-shadow: 0 4px 14px rgba(0,0,0,.06);
    text-align: center;
  transition: .25s;
    transition: .25s ease;
}
}


.pg-card:hover {
.pg-card:hover {
  transform: translateY(-4px);
    transform: translateY(-6px);
  box-shadow: 0 8px 24px rgba(0,0,0,.12);
    box-shadow: 0 10px 32px rgba(0,0,0,0.12);
}
}


.pg-card__icon {
.pg-card__icon { font-size: 32px; }
  font-size: 30px;
.pg-card__title { font-size: 20px; font-weight: 800; color: #185480; }
  margin-bottom: 8px;
.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-card__title {
  font-size: 20px;
  font-weight: 800;
  color: #1c4c7c;
}


.pg-card__desc {
  margin: 6px 0 12px;
  color: #5c6a78;
}


.pg-card__link {
/* =============== 新番推荐区 =============== */
  font-weight: bold;
.pg-gallery {
  color: #007ecc !important;
    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;
* ✅ 新番推荐 Gallery(平图专业风)
****************************************************/
.pg-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill,minmax(200px,1fr));
  gap: 22px;
  padding: 12px;
  max-width: 1100px;
  margin: 0 auto 20px;
}
}


.pg-cover {
.pg-cover img:hover {
  text-align: center;
    transform: scale(1.04);
    box-shadow: 0 8px 22px rgba(0,0,0,0.15);
}
}


.pg-cover__title {
.pg-cover__title {
  margin-top: 8px;
    text-align: center;
  font-weight: 700;
    margin-top: 8px;
  font-size: 16px;
    font-weight: 700;
  color: #34495e;
    color: #2d3e50;
}
}






/****************************************************
/* =============== 关于本站 =============== */
* ✅ 关于本站
****************************************************/
.pg-about {
.pg-about {
  max-width: 900px;
    max-width: 900px;
  margin: 20px auto 50px;
    margin: 30px auto 60px;
  padding: 0 12px;
    padding: 20px 10px;
  font-size: 16px;
    color: #333;
  line-height: 1.9;
    font-size: 16px;
  color: #34495e;
    line-height: 1.9;
}
}






/****************************************************
/* =============== 首页外框去灰色 =============== */
* ✅ 手机端适配
body.page-Main_Page .vector-feature-main,
****************************************************/
body.page-Main_Page .vector-feature-body,
@media(max-width:600px){
body.page-Main_Page .vector-main-container,
  .pg-hero__title { font-size: 30px; }
body.page-Main_Page #content,
  .pg-hero__subtitle { font-size: 15px; }
body.page-Main_Page .mw-body,
body.page-Main_Page .mw-body-content {
    background: transparent !important;
    padding: 0 !important;
    margin: 0 !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;
}
}

2025年11月7日 (五) 16:29的版本

/****************************************************
 * ✅ 次元企鹅百科 v5.1 UI 主题样式
 * 顶部渐变 + 白卡片 + 企鹅轻萌风
 ****************************************************/

/* =============== 顶部 Header 渐变背景 =============== */
.pg-header {
    width: 100%;
    background: linear-gradient(180deg, #e9f4ff 0%, #ffffff 80%);
    padding: 50px 0 60px;
    text-align: center;
    border-radius: 0 0 22px 22px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
    margin-bottom: 30px;
}

.pg-header__inner {
    max-width: 900px;
    margin: 0 auto;
}

/* LOGO 卡片 */
.pg-header__logo {
    background: #fff;
    display: inline-block;
    padding: 14px 28px;
    border-radius: 18px;
    box-shadow: 0 4px 14px rgba(0,0,0,0.08);
    margin-bottom: 18px;
}

/* 主标题 */
.pg-header__title {
    font-size: 42px;
    font-weight: 800;
    color: #195a8d;
    margin: 12px 0;
}

/* 副标题 */
.pg-header__subtitle {
    color: #2b3a55;
    font-size: 18px;
    line-height: 1.8;
    max-width: 750px;
    margin: 0 auto;
}

/* 脚印动画 */
.pg-header__prints {
    margin-top: 16px;
    font-size: 20px;
    animation: pawFade 3.2s ease-in-out infinite;
}

@keyframes pawFade {
    0%,100% { opacity: 0.2; }
    50% { opacity: 1; }
}



/* =============== 核心导航卡片 =============== */
.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;
}

.pg-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 10px 32px rgba(0,0,0,0.12);
}

.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;
}

.pg-cover img:hover {
    transform: scale(1.04);
    box-shadow: 0 8px 22px rgba(0,0,0,0.15);
}

.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;
}



/* =============== 首页外框去灰色 =============== */
body.page-Main_Page .vector-feature-main,
body.page-Main_Page .vector-feature-body,
body.page-Main_Page .vector-main-container,
body.page-Main_Page #content,
body.page-Main_Page .mw-body,
body.page-Main_Page .mw-body-content {
    background: transparent !important;
    padding: 0 !important;
    margin: 0 !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;
}