跳转到内容

MediaWiki:Common.css:修订间差异

来自次元企鹅情报局百科
Admin留言 | 贡献
无编辑摘要
标签已被回退
Admin留言 | 贡献
无编辑摘要
标签手工回退
 
(未显示同一用户的5个中间版本)
第1行: 第1行:
/****************************************************
/****************************************************
  * ✅ 次元企鹅百科 · 首页 v7.1
  * ✅ 次元企鹅百科 v5.8 — 首页 + PV 卡片 + YouTube 模块
  * 冰蓝渐变 + 超轻萌风 + Vector-2022 适配 + 无白框图片
  * 顶部渐变 + 完美去白框 + 轻萌风图片 + PV 网格系统
  * ✅ 完美兼容 frameless(不隐藏图片、不触发白框)
  * Vector-2022 完整适配
  ****************************************************/
  ****************************************************/




/* ==================================================
/* ==================================================
   ✅ 顶部渐变 Banner(与内容区隔离最强兼容)
   ✅ 顶部渐变 Header (保持原样)
   ================================================== */
   ================================================== */


第25行: 第25行:
}
}


 
/* Logo */
/* Logo */
.pg-header__logo {
.pg-header__logo {
     background: none !important;
     background: none !important;
     padding: 0 !important;
     padding: 0 !important;
     margin-bottom: 20px;
     margin-bottom: 18px;
     border-radius: 0 !important;
     border-radius: 0 !important;
     box-shadow: none !important;
     box-shadow: none !important;
第38行: 第37行:
.pg-logo-img {
.pg-logo-img {
     display: inline-block !important;
     display: inline-block !important;
    margin: 0 !important;
     max-width: none !important;
     max-width: none !important;
    width: 180px !important;
     height: auto !important;
     height: auto !important;
     margin: 0 auto !important;
     object-fit: contain !important;
}
}




/* ✅ 标题与副标题文字 */
/* ==================================================
  首页标题与副标题
  ================================================== */
 
.pg-header__title {
.pg-header__title {
     font-size: 28px;
     font-size: 30px;
     font-weight: 800;
     font-weight: 800;
     color: #164d78;
     color: #174d79;
     margin-bottom: 12px;
     margin-bottom: 15px;
}
}


第56行: 第58行:
     font-size: 17px;
     font-size: 17px;
     line-height: 1.9;
     line-height: 1.9;
     color: #44525f;
     color: #3c4654;
     max-width: 760px;
     max-width: 720px;
     margin: 0 auto;
     margin: 0 auto;
}
}
第69行: 第71行:


/* ==================================================
/* ==================================================
   ✅ 核心导航卡片(pg-grid)
   ✅ 首页核心导航卡片
   ================================================== */
   ================================================== */


.pg-grid {
.pg-grid {
     display: grid;
     display: grid;
     grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
     grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
     gap: 20px;
     gap: 20px;
     max-width: 1100px;
     max-width: 1100px;
     margin: 0 auto 30px;
     margin: 20px auto;
     padding: 0 15px;
     padding: 0 15px;
}
}
第83行: 第85行:
.pg-card {
.pg-card {
     background: #ffffff;
     background: #ffffff;
     padding: 22px 18px;
     padding: 20px 18px;
     border-radius: 20px;
     border-radius: 20px;
    box-shadow: 0 4px 14px rgba(0,0,0,0.06);
     text-align: center;
     text-align: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
     transition: .25s ease;
     transition: .25s ease;
    overflow: hidden;
}
}


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


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




第126行: 第111行:
     display: grid;
     display: grid;
     grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
     grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
     gap: 22px;
     gap: 20px;
     max-width: 1100px;
     max-width: 1100px;
     margin: 10px auto 20px;
     margin: 25px auto;
     padding: 0 15px;
     padding: 0 15px;
}
}
第135行: 第120行:
     border-radius: 16px !important;
     border-radius: 16px !important;
     transition: .25s ease;
     transition: .25s ease;
    max-width: none !important;
     width: 100% !important;
     width: 100% !important;
    height: auto !important;
    max-width: none !important;
}
}


第149行: 第133行:
     margin-top: 8px;
     margin-top: 8px;
     font-weight: 700;
     font-weight: 700;
     color: #2c3e50;
     color: #2d3e50;
}
}




/* ==================================================
/* ==================================================
   ✅ 关于本站文本
   ✅ 关于本站
   ================================================== */
   ================================================== */


.pg-about {
.pg-about {
     max-width: 900px;
     max-width: 900px;
     margin: 35px auto 70px;
     margin: 30px auto 60px;
     padding: 20px 10px;
     padding: 20px 10px;
    color: #333;
     font-size: 16px;
     font-size: 16px;
    color: #333;
     line-height: 1.9;
     line-height: 1.9;
    text-align: center;
}
}




/* ==================================================
/* ==================================================
   ✅ ✅ ✅ 首页三层白壳彻底移除(Vector-2022)
   ✅ 首页去白框(Vector-2022)
   ================================================== */
   ================================================== */


第180行: 第162行:
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,
body.page-Main_Page .client-js .vector-body-before-content {
     background: transparent !important;
     background: transparent !important;
     border: none !important;
     border: none !important;
第188行: 第171行:
     border-radius: 0 !important;
     border-radius: 0 !important;
}
}




/* ==================================================
/* ==================================================
   ✅ ✅ ✅ frameless 图片彻底无白框(重点)
   ✅ 首页图片白框清除
  ✅ 不隐藏图片,只移除框
   ================================================== */
   ================================================== */


第199行: 第180行:
body.page-Main_Page .thumb,
body.page-Main_Page .thumb,
body.page-Main_Page .thumbinner,
body.page-Main_Page .thumbinner,
body.page-Mainorg_Page .mw-file-element,
body.page-Main_Page .tleft,
body.page-Main_Page .tleft,
body.page-Main_Page .tright {
body.page-Main_Page .tright {
第204行: 第186行:
     border: none !important;
     border: none !important;
     padding: 0 !important;
     padding: 0 !important;
     margin: 0 auto !important;
     margin: 0 !important;
     box-shadow: none !important;
     box-shadow: none !important;
}
}


body.page-Main_Page .mw-file-element {
body.page-Main_Page img,
     border: none !important;
body.page-Main_Page .mw-file-element img {
    background: transparent !important;
     display: block !important;
    box-shadow: none !important;
     visibility: visible !important;
     padding: 0 !important;
     opacity: 1 !important;
     margin: 0 auto !important;
     max-width: 100% !important;
     max-width: none !important;
     height: auto !important;
     height: auto !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; }
}




/* ==================================================
/* ==================================================
   ✅ 避免图片被裁切或隐藏(兼容所有版本)
   🔥 新增:PV 卡片系统(方案 A)
   ================================================== */
   ================================================== */


body.page-Main_Page img {
/* PV 网格布局 */
     display: block !important;
.pv-grid {
     max-width: 100% !important;
     display: grid;
    height: auto !important;
     grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
     opacity: 1 !important;
     gap: 22px;
     visibility: visible !important;
     margin: 25px 0;
}
}


/* PV 卡片主体 */
.pv-card {
    background: #ffffff;
    border: 1px solid #e3ebf5;
    border-radius: 14px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.18s ease;
    box-shadow: 0 2px 6px rgba(0,0,0,0.06);
}


.pv-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.10);
}


/* ==================================================
.pv-thumb {
  ✅ 导航与推荐区域的容器防裁剪
    width: 100%;
  ================================================== */
    display: block;
    border-bottom: 1px solid #edf3fa;
}


body.page-Main_Page .mw-parser-output {
.pv-title {
     overflow: visible !important;
    padding: 12px 14px;
    font-size: 15px;
    font-weight: bold;
    color: #2b4a70;
     text-align: center;
}
}


/* PV 播放器框 */
.pv-player {
    margin: 25px 0;
    padding: 15px;
    background: linear-gradient(180deg,#f7fbff 0%,#ffffff 100%);
    border: 1px solid #d8e4f1;
    border-radius: 12px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.06);
}




/* ==================================================
/* ==================================================
   ✅ 移动端适配(更紧凑、更美观)
   🔥 YouTube 弹窗播放器(保留)
   ================================================== */
   ================================================== */


@media (max-width: 600px) {
.pg-yt-overlay {
    .pg-header {
  position: fixed; inset: 0; background: rgba(0,0,0,.6);
        padding: 40px 0 50px;
  display: none; align-items: center; justify-content: center; z-index: 9999;
    }
}
    .pg-header__title {
.pg-yt-overlay.active { display: flex; }
        font-size: 22px;
 
    }
.pg-yt-modal {
    .pg-header__subtitle {
  width: min(92vw, 960px); aspect-ratio: 16/9; background: #000;
        font-size: 15px;
  border-radius: 12px; overflow: hidden; position: relative;
    }
  box-shadow: 0 10px 40px rgba(0,0,0,.4);
    .pg-grid {
}
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
 
        gap: 14px;
.pg-yt-close {
    }
  position: absolute; top: -44px; right: 0;
    .pg-gallery {
  background: rgba(0,0,0,.65); color: #fff; border: 0; cursor: pointer;
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  padding: 8px 12px; border-radius: 8px; font-size: 14px;
        gap: 16px;
}
    }
 
.pg-yt-thumb__img {
  width: 100%; aspect-ratio: 16/9; object-fit: cover; border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0,0,0,.15);
}
}
.pg-yt-thumb__title { color: #333; text-align: left; font-size: 14px; }
.pg-yt-thumb:hover .pg-yt-thumb__img { filter: brightness(0.92); }

2025年11月25日 (二) 15:17的最新版本

/****************************************************
 * ✅ 次元企鹅百科 v5.8 — 首页 + PV 卡片 + YouTube 模块
 * 顶部渐变 + 完美去白框 + 轻萌风图片 + PV 网格系统
 * 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 */
.pg-header__logo {
    background: none !important;
    padding: 0 !important;
    margin-bottom: 18px;
    border-radius: 0 !important;
    box-shadow: none !important;
    display: inline-block !important;
}

.pg-logo-img {
    display: inline-block !important;
    margin: 0 !important;
    max-width: none !important;
    height: auto !important;
    object-fit: contain !important;
}


/* ==================================================
   ✅ 首页标题与副标题
   ================================================== */

.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,
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,
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;
    border-radius: 0 !important;
}


/* ==================================================
   ✅ 首页图片白框清除
   ================================================== */

body.page-Main_Page figure,
body.page-Main_Page .thumb,
body.page-Main_Page .thumbinner,
body.page-Mainorg_Page .mw-file-element,
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 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;
}


/* ==================================================
   ✅ 手机端适配
   ================================================== */

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


/* ==================================================
   🔥 新增:PV 卡片系统(方案 A)
   ================================================== */

/* PV 网格布局 */
.pv-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 22px;
    margin: 25px 0;
}

/* PV 卡片主体 */
.pv-card {
    background: #ffffff;
    border: 1px solid #e3ebf5;
    border-radius: 14px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.18s ease;
    box-shadow: 0 2px 6px rgba(0,0,0,0.06);
}

.pv-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.10);
}

.pv-thumb {
    width: 100%;
    display: block;
    border-bottom: 1px solid #edf3fa;
}

.pv-title {
    padding: 12px 14px;
    font-size: 15px;
    font-weight: bold;
    color: #2b4a70;
    text-align: center;
}

/* PV 播放器框 */
.pv-player {
    margin: 25px 0;
    padding: 15px;
    background: linear-gradient(180deg,#f7fbff 0%,#ffffff 100%);
    border: 1px solid #d8e4f1;
    border-radius: 12px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.06);
}


/* ==================================================
   🔥 YouTube 弹窗播放器(保留)
   ================================================== */

.pg-yt-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,.6);
  display: none; align-items: center; justify-content: center; z-index: 9999;
}
.pg-yt-overlay.active { display: flex; }

.pg-yt-modal {
  width: min(92vw, 960px); aspect-ratio: 16/9; background: #000;
  border-radius: 12px; overflow: hidden; position: relative; 
  box-shadow: 0 10px 40px rgba(0,0,0,.4);
}

.pg-yt-close {
  position: absolute; top: -44px; right: 0;
  background: rgba(0,0,0,.65); color: #fff; border: 0; cursor: pointer;
  padding: 8px 12px; border-radius: 8px; font-size: 14px;
}

.pg-yt-thumb__img {
  width: 100%; aspect-ratio: 16/9; object-fit: cover; border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0,0,0,.15);
}

.pg-yt-thumb__title { color: #333; text-align: left; font-size: 14px; }
.pg-yt-thumb:hover .pg-yt-thumb__img { filter: brightness(0.92); }