跳转到内容
主菜单
主菜单
移至侧栏
隐藏
导航
首页
最近更改
随机页面
MediaWiki帮助
特殊页面
新番推荐
搜索
搜索
外观
创建账号
登录
个人工具
创建账号
登录
查看“︁MediaWiki:Common.css”︁的源代码
系统消息
讨论
English
阅读
查看源代码
查看历史
工具
工具
移至侧栏
隐藏
操作
阅读
查看源代码
查看历史
常规
链入页面
相关更改
页面信息
外观
移至侧栏
隐藏
←
MediaWiki:Common.css
因为以下原因,您没有权限编辑该页面:
您请求的操作仅限属于该用户组的用户执行:
用户
此页面为本wiki上的软件提供界面文本,并受到保护以防止滥用。 如欲修改所有wiki的翻译,请访问
translatewiki.net
上的MediaWiki本地化项目。
您无权编辑此CSS页面,因为编辑此页面可能会影响所有访问者。
您可以查看和复制此页面的源代码。
/**************************************************** * ✅ 次元企鹅百科 v5.2 UI 主题样式(最终修正版) * 顶部渐变 + 白卡片 + 企鹅轻萌风 * ✅ 已修复:Vector-2022 首页标题灰背景 / 灰条 ****************************************************/ /* =============== 顶部 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; } /**************************************************** * ✅ 首页外框去灰色(Vector-2022) ****************************************************/ 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; } /**************************************************** * ✅(关键)移除首页标题区域的背景条 + 灰框 * ✅ 修复你刚刚截图的那一条 ****************************************************/ /* 去掉标题背景色 */ body.page-Main_Page .vector-page-titlebar { background: transparent !important; box-shadow: none !important; border-bottom: none !important; } /* 去掉标题栏和内容区之间的 padding */ body.page-Main_Page .vector-page-titlebar { padding: 0 !important; margin-bottom: 0 !important; } /* 去掉标题下那条线 */ body.page-Main_Page .vector-page-titlebar::after { display: none !important; }
返回
MediaWiki:Common.css
。
搜索
搜索
查看“︁MediaWiki:Common.css”︁的源代码
添加话题