跳转到内容

MediaWiki:Common.css:修订间差异

来自次元企鹅情报局百科
Admin留言 | 贡献
无编辑摘要
Admin留言 | 贡献
无编辑摘要
第1行: 第1行:
/* 这里放置的CSS将应用于所有皮肤 */
/* 卡片网格布局 */
/* ===========================================
.beautiful-grid {
  次元企鹅情报局百科 · 蓝白二次元主题
  display: grid;
  作者:ChatGPT 官方主题(为你定制)
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  =========================================== */
  gap: 20px;
 
  margin: 20px 0;
/* 全站基础字体 */
body, #content, .mw-body {
    font-family: "Noto Sans SC", "Microsoft YaHei", "PingFang SC",
                "Helvetica", "Arial", sans-serif !important;
    color: #2b2d42;
}
}


/* 链接颜色(蓝色,带 hover 效果) */
/* 每一项卡片容器 */
a {
.home-card {
    color: #0077b6;
  background: #ffffff;
    text-decoration: none;
  border: 1px solid #e3e8f0;
}
  border-radius: 14px;
a:hover {
  padding: 0;
    color: #0096c7;
  box-shadow: 0 2px 8px rgba(0,0,0,.05);
    text-decoration: underline;
  transition: .25s;
}
 
/* 标题颜色优化 */
h1, h2, h3, h4, h5 {
    color: #1b4d7a !important;
    font-weight: 600;
}
 
/* 页面内容区域卡片化 */
.mw-body {
    background: #ffffff;
    padding: 30px;
    border-radius: 14px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    margin-top: 20px;
}
 
/* 页面底部版权区域淡化背景 */
#footer {
    background: #f8fbff;
    padding: 20px 30px;
    border-top: 1px solid #e0e6f0;
}
 
/* infobox / 表格美化 */
.infobox, table.wikitable {
    border: 1px solid #d0e3f7 !important;
    background: #ffffff;
    border-collapse: separate;
    border-radius: 12px;
    overflow: hidden;
}
table.wikitable th {
    background: #eaf6ff !important;
    color: #003f6b;
    font-weight: bold;
}
 
/* 页面各模块区域标题(蓝色条) */
.mw-heading,
.firstHeading {
    border-left: 6px solid #0096c7;
    padding-left: 10px;
}
 
/* 搜索框圆角 */
#searchInput {
    border-radius: 30px !important;
    padding: 8px 16px !important;
}
 
/* 按钮美化 */
.mw-ui-button,
button,
input[type='submit'],
input[type='button'] {
    background: linear-gradient(90deg, #0077b6, #0096c7);
    border: none;
    color: white !important;
    padding: 6px 16px;
    border-radius: 20px;
}
.mw-ui-button:hover,
button:hover,
input[type='submit']:hover {
    opacity: 0.9;
}
 
/* 侧栏链接 hover */
#mw-panel .portal .body li a:hover {
    color: #0096c7 !important;
}
 
/* 侧边栏标题美化 */
#mw-panel .portal h3 {
    color: #003f6b !important;
    border-bottom: 1px solid #dceeff;
}
}
/* ================================
  首页全屏布局补丁(仅首页)
  ================================ */


/* 让首页内容区域全宽 */
/* Wiki 链接(真正的内容)样式 */
body.page-Mainpage .mw-body,
.home-card > a {
body.page-Main_Page .mw-body {
    max-width: 100% !important;
    width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    background: none !important;
    box-shadow: none !important;
}
 
/* 隐藏首页的侧边栏(仅首页) */
body.page-Mainpage #mw-panel,
body.page-Main_Page #mw-panel {
    display: none !important;
}
 
/* 顶部内容条适配居中 */
body.page-Mainpage .mw-content-container,
body.page-Main_Page .mw-content-container {
    margin-left: 0 !important;
}
 
/* 让内容区紧贴顶部导航栏 */
body.page-Mainpage #content,
body.page-Main_Page #content {
    margin-top: 0 !important;
}
 
/* 让首页的网格更宽松 */
.page-Mainpage .mw-content-ltr,
.page-Main_Page .mw-content-ltr {
    padding: 0 !important;
}
/* ======== 首页容器 ======== */
.home-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 20px 10px 60px;
  font-family: "Microsoft Yahei", Inter, sans-serif;
}
 
/* ======== 顶部 Banner ======== */
.home-banner {
  width: 100%;
  height: 260px;
  border-radius: 16px;
  background: linear-gradient(135deg, #d8ecff, #edf7ff);
   display: flex;
   display: flex;
   align-items: center;
   align-items: center;
   justify-content: center;
   gap: 10px;
   margin-bottom: 40px;
   padding: 18px 20px;
  position: relative;
   font-size: 17px;
  overflow: hidden;
}
 
.home-banner-text h1 {
  font-size: 40px;
  font-weight: 700;
  margin: 0;
  color: #2b2d42;
}
 
.home-banner-text p {
  font-size: 18px;
  color: #4a4e69;
  margin-top: 10px;
}
 
/* ======== 区块标题 ======== */
.home-section-title {
   font-size: 26px;
   font-weight: 600;
   font-weight: 600;
   margin: 35px 0 15px;
   color: #1b4d7a;
   color: #1d3557;
   text-decoration: none;
   border-left: 6px solid #74c0fc;
   width: 100%;
   padding-left: 12px;
   height: 100%;
}
}


/* ======== 分类卡片 ======== */
/* 图标:自动生成(可修改)*/
.home-grid {
.home-card:nth-child(1) > a::before { content: "📺"; font-size: 20px; }
  display: grid;
.home-card:nth-child(2) > a::before { content: "🧍"; font-size: 20px; }
  grid-template-columns: repeat(3, 1fr);
.home-card:nth-child(3) > a::before { content: "🎬"; font-size: 20px; }
  gap: 16px;
.home-card:nth-child(4) > a::before { content: "🌍"; font-size: 20px; }
}
.home-card:nth-child(5) > a::before { content: "🎞️"; font-size: 20px; }
 
.home-card:nth-child(6) > a::before { content: "📚"; font-size: 20px; }
.home-card {
  background: #fff;
  padding: 20px;
  text-align: center;
  border-radius: 12px;
  font-size: 20px;
  font-weight: 600;
  color: #264653;
  border: 1px solid #e6e6e6;
  transition: 0.25s;
  cursor: pointer;
}


/* 卡片 hover 效果 */
.home-card:hover {
.home-card:hover {
   transform: translateY(-4px);
   transform: translateY(-3px);
   box-shadow: 0 6px 20px rgba(0,0,0,0.08);
   box-shadow: 0 6px 14px rgba(0,0,0,.12);
}
  border-color: #bcd7ff;
 
/* ======== 最近更新 ======== */
.home-updates {
   background: #f8fbff;
   background: #f8fbff;
  padding: 20px;
  border-radius: 12px;
  border: 1px solid #e9f3ff;
}
/* ======== 关于本站 ======== */
.home-about {
  background: #ffffff;
  padding: 20px 24px;
  border-radius: 12px;
  line-height: 1.8;
  font-size: 16px;
  color: #2b2d42;
  border: 1px solid #e7e7e7;
  margin-bottom: 60px;
}
}

2025年11月6日 (四) 14:29的版本

/* 卡片网格布局 */
.beautiful-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin: 20px 0;
}

/* 每一项卡片容器 */
.home-card {
  background: #ffffff;
  border: 1px solid #e3e8f0;
  border-radius: 14px;
  padding: 0;
  box-shadow: 0 2px 8px rgba(0,0,0,.05);
  transition: .25s;
}

/* Wiki 链接(真正的内容)样式 */
.home-card > a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 18px 20px;
  font-size: 17px;
  font-weight: 600;
  color: #1b4d7a;
  text-decoration: none;
  width: 100%;
  height: 100%;
}

/* 图标:自动生成(可修改)*/
.home-card:nth-child(1) > a::before { content: "📺"; font-size: 20px; }
.home-card:nth-child(2) > a::before { content: "🧍"; font-size: 20px; }
.home-card:nth-child(3) > a::before { content: "🎬"; font-size: 20px; }
.home-card:nth-child(4) > a::before { content: "🌍"; font-size: 20px; }
.home-card:nth-child(5) > a::before { content: "🎞️"; font-size: 20px; }
.home-card:nth-child(6) > a::before { content: "📚"; font-size: 20px; }

/* 卡片 hover 效果 */
.home-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 14px rgba(0,0,0,.12);
  border-color: #bcd7ff;
  background: #f8fbff;
}