查看“︁MediaWiki:Common.css”︁的源代码
来自勿忘草与永远的少女
←
MediaWiki:Common.css
跳到导航
跳到搜索
因为以下原因,您没有权限编辑该页面:
您请求的操作仅限属于该用户组的用户执行:
用户
此页面为本wiki上的软件提供界面文本,并受到保护以防止滥用。 如欲修改所有wiki的翻译,请访问
translatewiki.net
上的MediaWiki本地化项目。
您无权编辑此CSS页面,因为编辑此页面可能会影响所有访问者。
您可以查看和复制此页面的源代码。
/* ========== 隐藏页面主标题 ========== */ .firstHeading, #firstHeading, .mw-page-title-main, h1.firstHeading { display: none !important; } /* 调整内容区域上边距,弥补标题隐藏后的空白 */ .mw-body, content { padding-top: 0 !important; } /* ========== 自定义浏览器和内容区域背景 ========== */ /* 1. 整个页面的背景(浏览器背景) */ html, body { background: url('/wikibg/1.jpg') fixed center center no-repeat !important; background-size: cover !important; min-height: 100vh; } /* 2. 主内容区域的背景(白色半透明,让背景图片透出来) */ .mw-body, #content, .mw-body-content { background: url('/wikibg/1.jpg')fixed center center no-repeat !important; } /* 3. 侧边栏背景(如果启用) */ #mw-panel, .vector-menu-portal { background: rgba(0, 0, 0, 0.6) !important; backdrop-filter: blur(5px); border-radius: 8px; margin: 10px !important; padding: 10px !important; } /* 4. 侧边栏文字颜色(深色背景时使用) */ #mw-panel .vector-menu-heading, #mw-panel .vector-menu-content li a { color: white !important; } /* 5. 内容区域文字颜色(可选) */ .mw-body-content { color: #333 !important; } /* 6. 内容区域链接颜色 */ .mw-body-content a { color: #3366cc !important; } .mw-body-content a:visited { color: #6633cc !important; } /* 7. 表格样式优化(适配半透明背景) */ .wikitable, .mw-datatable { background: rgba(255, 255, 255, 0.95) !important; } /* ========== 固定顶部导航栏 ========== */ .fixed-top-nav { position: fixed; top: 0; left: 0; right: 0; background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%); box-shadow: 0 2px 10px rgba(0,0,0,0.3); z-index: 1000; padding: 8px 20px; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; backdrop-filter: blur(10px); background-color: rgba(26, 26, 46, 0.95); } /* Logo 区域 */ .fixed-top-nav .nav-logo { display: flex; align-items: center; text-decoration: none; transition: transform 0.2s ease; } .fixed-top-nav .nav-logo:hover { transform: scale(1.03); } .fixed-top-nav .nav-logo img { max-height: 45px; width: auto; margin-right: 12px; } .fixed-top-nav .nav-logo span { color: white; font-size: 20px; font-weight: bold; letter-spacing: 1px; background: linear-gradient(135deg, #fff, #a0a0ff); -webkit-background-clip: text; background-clip: text; color: transparent; } /* 导航链接容器 */ .fixed-top-nav .nav-links { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; } /* 导航链接样式(卡片风格) */ .fixed-top-nav .nav-link { background: rgba(255,255,255,0.12); backdrop-filter: blur(5px); padding: 8px 18px; border-radius: 30px; text-decoration: none; color: white; font-weight: 500; font-size: 14px; transition: all 0.25s ease; display: inline-flex; align-items: center; gap: 6px; border: 1px solid rgba(255,255,255,0.2); } .fixed-top-nav .nav-link:hover { background: rgba(255,255,255,0.25); transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,0,0,0.2); color: white; text-decoration: none; } /* 调整页面主体,避免被导航栏遮挡 */ body { padding-top: 65px !important; } /* 移动端适配 */ @media (max-width: 768px) { .fixed-top-nav { flex-direction: column; padding: 8px 15px; } .fixed-top-nav .nav-logo { margin-bottom: 8px; } .fixed-top-nav .nav-logo img { max-height: 35px; } .fixed-top-nav .nav-logo span { font-size: 16px; } .fixed-top-nav .nav-links { justify-content: center; gap: 8px; } .fixed-top-nav .nav-link { padding: 5px 12px; font-size: 12px; } body { padding-top: 85px !important; } } /* 可选:滚动时增强效果 */ .fixed-top-nav.scrolled { background: rgba(26, 26, 46, 0.98); padding: 5px 20px; transition: all 0.3s ease; } /* 强制隐藏 Vector 皮肤的 Logo */ .mw-logo, #p-logo, #p-logo a, .mw-logo-container, .mw-logo-wordmark { display: none !important; visibility: hidden !important; width: 0 !important; height: 0 !important; overflow: hidden !important; position: absolute !important; top: -9999px !important; left: -9999px !important; } /* 如果使用 Vector 2022 皮肤 */ .vector-logo-container, .vector-logo-wordmark { display: none !important; } .wiki-main { max-width: 1200px; margin: 0 auto; } .notice { background: #eef2f8; } .left-column table { border-collapse: collapse; } .left-column th, .left-column td { padding: 8px 12px; border: 1px solid #ddd; } /* 隐藏左侧导航栏中的默认 Logo */ #p-logo { display: none !important; } /* 同时隐藏左侧导航栏(如果需要完全移除侧边栏) */ /* #mw-panel { display: none !important; } */ /* 调整主内容区域宽度,补偿隐藏侧边栏后的空间 */ /* .mw-body { margin-left: 0 !important; } */
返回
MediaWiki:Common.css
。
导航菜单
页面操作
系统消息
讨论
阅读
查看源代码
历史
页面操作
系统消息
讨论
更多
工具
个人工具
登录
工具
链入页面
相关更改
特殊页面
页面信息
Cargo数据
搜索