跳转到内容

MediaWiki:Common.css:修订间差异

来自次元企鹅情报局百科
Admin留言 | 贡献
无编辑摘要
Admin留言 | 贡献
无编辑摘要
第1行: 第1行:
/****************************************************
/****************************************************
  * 次元企鹅百科 · 分类导航网格(美观卡片样式)
  * ✅ Penguin Cute UI — Final Clean Version
* ✅ 主要内容区加冰蓝柔和框
* ✅ 全站其余 DIV 不加框(避免冲突)
  ****************************************************/
  ****************************************************/


/* 卡片网格布局 */
/* ===== 顶部 Banner(渐变 + LOGO 轻漂浮) ===== */
.beautiful-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin: 20px 0;
  padding: 0;
  box-sizing: border-box;
}
 
/* 卡片容器 */
.home-card {
  background: #ffffff;
  border: 1px solid #e3e8f0;
  border-radius: 14px;
  padding: 0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  transition: all .25s ease;
  overflow: hidden;
}
 
/* 卡片内的链接(真正可点击部分) */
.home-card > a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 22px;
  font-size: 17px;
  font-weight: 600;
  color: #1b4d7a !important;
  text-decoration: none;
  width: 100%;
  height: 100%;
  box-sizing: border-box;
}
 
/* 让图标稳定显示 */
.home-card > a::before {
  font-size: 22px;
  width: 26px;
  text-align: center;
  flex-shrink: 0;
}
 
/* 各卡片图标(自动配对) */
.home-card:nth-child(1) > a::before { content: "📺"; }
.home-card:nth-child(2) > a::before { content: "🧍"; }
.home-card:nth-child(3) > a::before { content: "🎬"; }
.home-card:nth-child(4) > a::before { content: "🌍"; }
.home-card:nth-child(5) > a::before { content: "🎞️"; }
.home-card:nth-child(6) > a::before { content: "📚"; }
 
/* Hover 视觉效果 */
.home-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 14px rgba(0,0,0,.12);
  border-color: #bcd7ff;
  background: #f8fbff;
}
/******** Penguin Cute UI — Common.css ********/
 
/* 顶部 Banner(仅渐变,无外框) */
.pg-hero{
.pg-hero{
   width:100%;
   width:100%;
第90行: 第31行:
   max-width:860px;
   max-width:860px;
   margin:0 auto;
   margin:0 auto;
}
.pg-hero__prints{
  margin-top:14px;
  opacity:.35;
  font-size:20px;
}
}


/* 轻漂浮动画(Logo) */
/* Logo 漂浮动画 */
@keyframes pg-float{
@keyframes pg-float{
   0%,100%{ transform:translateY(0) }
   0%,100%{ transform:translateY(0) }
第103行: 第39行:
}
}


/* 核心导航卡片(圆角软 UI + 轻动效) */
 
/****************************************************
* ✅ 全站去掉默认灰色背景 / 灰框
****************************************************/
.vector-body,
.vector-content,
.mw-body,
.mw-body-content,
.mw-parser-output,
.mw-workspace-container {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}
 
.mw-body,
.mw-body-content {
    padding: 0 !important;
}
 
 
/****************************************************
* ✅ 只给首页主要内容区(第一层 DIV)加柔和冰蓝框
****************************************************/
 
body.page-Main_Page .mw-parser-output > div {
    background: rgba(240, 248, 255, 0.65) !important; /* 冰蓝半透明 */
    border: 1px solid #cfe8ff !important;
    border-radius: 18px !important;
    box-shadow: 0 4px 12px rgba(0, 86, 179, 0.10) !important;
    padding: 25px !important;
    margin: 25px 0 !important;
}
 
/* ✅ 首页标题变好看 */
body.page-Main_Page h1,
body.page-Main_Page h2 {
    color: #174b75 !important;
}
 
 
 
/****************************************************
* ✅ 核心导航 卡片(企鹅可爱软 UI)
****************************************************/
.pg-grid{
.pg-grid{
   display:grid;
   display:grid;
第137行: 第117行:
}
}


/* 新番推荐(纯平图 + 轻标题) */
 
/****************************************************
* ✅ 新番推荐 Gallery
****************************************************/
.pg-gallery{
.pg-gallery{
   display:grid;
   display:grid;
第151行: 第134行:
}
}


/* 关于本站(无框、居中) */
 
/****************************************************
* ✅ 关于本站
****************************************************/
.pg-about{
.pg-about{
   max-width:900px; margin:8px auto 40px; padding:0 2px;
   max-width:900px; margin:8px auto 40px; padding:0 2px;
第157行: 第143行:
}
}


/* 让页面本体更干净(去容器背景/边框痕迹) */
.vector-body, .mw-body, .mw-body-content, .mw-parser-output{
  background:transparent !important;
  box-shadow:none !important;
  border:none !important;
}
.mw-body, .mw-body-content{ padding:0 !important }


/* TOC(目录)扁平化,弱化边界感 */
/****************************************************
* ✅ TOC(目录)扁平化)
****************************************************/
#toc, .toc{
#toc, .toc{
   background:transparent !important;
   background:transparent !important;
第173行: 第154行:
.tocnumber{ color:#0096c7 }
.tocnumber{ color:#0096c7 }


/* 小屏适配 */
/* 小屏适配 */
@media (max-width:680px){
@media (max-width:680px){
   .pg-hero__title{ font-size:32px }
   .pg-hero__title{ font-size:32px }
   .pg-hero__subtitle{ font-size:16px }
   .pg-hero__subtitle{ font-size:16px }
}
/***** 彻底去掉首页周围所有默认边距/灰框/背景  *****/
.mw-body,
.mw-body-content,
.mw-parser-output,
.vector-body,
.vector-content,
.mw-workspace-container {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}
/* 去掉默认 padding(导致你现在看到框的主要原因) */
.mw-body,
.mw-body-content {
    padding: 0 !important;
}
/* 去掉每一段 <p> 默认缩进 & 外边距 */
.mw-parser-output > p {
    margin: 0 !important;
    padding: 0 !important;
}
/* 去掉 <div>、<table> 等自动生成的外框影子 */
.mw-parser-output div,
.mw-parser-output table {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}
/* 去掉编辑界面中的 debug 框 */
.ve-ce-documentNode,
.ve-init-mw-desktopArticleTarget .mw-body {
    background: transparent !important;
}
/* ===== 首页内容背景框(企鹅可爱风)===== */
.mw-parser-output > div {
    background: rgba(240, 248, 255, 0.65) !important; /* 冰蓝半透明 */
    border: 1px solid #cfe8ff !important;            /* 柔和浅蓝边框 */
    border-radius: 18px !important;                  /* 大圆角 */
    box-shadow: 0 4px 12px rgba(0, 86, 179, 0.10) !important; /* 蓝色柔光阴影 */
    padding: 25px !important;                        /* 内间距 */
    margin: 25px 0 !important;                        /* 上下留白 */
}
/* 首页欢迎标题更突出 */
.mw-parser-output h1,
.mw-parser-output h2 {
    color: #174b75 !important;
}
}

2025年11月6日 (四) 17:15的版本

/****************************************************
 * ✅ Penguin Cute UI — Final Clean Version
 * ✅ 主要内容区加冰蓝柔和框
 * ✅ 全站其余 DIV 不加框(避免冲突)
 ****************************************************/

/* ===== 顶部 Banner(渐变 + LOGO 轻漂浮) ===== */
.pg-hero{
  width:100%;
  padding:64px 20px 72px;
  background:linear-gradient(145deg,#e6f3ff,#f7fbff);
  text-align:center;
  box-sizing:border-box;
  position:relative;
}
.pg-hero__logo{
  margin:0 0 18px;
  animation:pg-float 6s ease-in-out infinite;
}
.pg-hero__title{
  font-size:44px;
  font-weight:800;
  color:#1b4d7a;
  letter-spacing:.5px;
  margin-bottom:10px;
}
.pg-hero__subtitle{
  font-size:18px;
  color:#2b2d42;
  line-height:1.85;
  max-width:860px;
  margin:0 auto;
}

/* Logo 漂浮动画 */
@keyframes pg-float{
  0%,100%{ transform:translateY(0) }
  50%{ transform:translateY(-6px) }
}


/****************************************************
 * ✅ 全站去掉默认灰色背景 / 灰框
 ****************************************************/
.vector-body,
.vector-content,
.mw-body,
.mw-body-content,
.mw-parser-output,
.mw-workspace-container {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

.mw-body,
.mw-body-content {
    padding: 0 !important;
}


/****************************************************
 * ✅ 只给首页主要内容区(第一层 DIV)加柔和冰蓝框
 ****************************************************/

body.page-Main_Page .mw-parser-output > div {
    background: rgba(240, 248, 255, 0.65) !important; /* 冰蓝半透明 */
    border: 1px solid #cfe8ff !important;
    border-radius: 18px !important;
    box-shadow: 0 4px 12px rgba(0, 86, 179, 0.10) !important;
    padding: 25px !important;
    margin: 25px 0 !important;
}

/* ✅ 首页标题变好看 */
body.page-Main_Page h1, 
body.page-Main_Page h2 {
    color: #174b75 !important;
}



/****************************************************
 * ✅ 核心导航 卡片(企鹅可爱软 UI)
 ****************************************************/
.pg-grid{
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(240px,1fr));
  gap:20px;
  padding:12px 2px 26px;
  max-width:1100px;
  margin:0 auto;
}
.pg-card{
  background:#ffffff;
  border-radius:20px;
  padding:18px 18px 16px;
  box-shadow:0 6px 18px rgba(0,0,0,.06);
  transition:.2s ease;
  text-align:center;
}
.pg-card:hover{
  transform:translateY(-4px);
  box-shadow:0 10px 24px rgba(0,0,0,.10);
}
.pg-card__icon{
  font-size:28px; margin-bottom:8px
}
.pg-card__title{
  font-size:19px; font-weight:800; color:#1b4d7a
}
.pg-card__desc{
  margin:6px 0 10px; color:#54606f; font-size:14.5px
}
.pg-card__link a, .pg-card__link{
  color:#0a78b5 !important; text-decoration:none; font-weight:700
}


/****************************************************
 * ✅ 新番推荐 Gallery
 ****************************************************/
.pg-gallery{
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(210px,1fr));
  gap:18px;
  max-width:1100px;
  margin:0 auto 6px;
  padding:8px 2px 26px;
}
.pg-cover{ text-align:center }
.pg-cover__title{
  margin-top:8px; font-size:16px; font-weight:700; color:#2b2d42
}


/****************************************************
 * ✅ 关于本站
 ****************************************************/
.pg-about{
  max-width:900px; margin:8px auto 40px; padding:0 2px;
  font-size:16px; line-height:1.9; color:#333
}


/****************************************************
 * ✅ TOC(目录)扁平化)
 ****************************************************/
#toc, .toc{
  background:transparent !important;
  border:none !important;
  box-shadow:none !important;
}
.tocnumber{ color:#0096c7 }

/* ✅ 小屏适配 */
@media (max-width:680px){
  .pg-hero__title{ font-size:32px }
  .pg-hero__subtitle{ font-size:16px }
}