打开/关闭搜索
搜索
打开/关闭菜单
236
885
35
2810
植物大战僵尸杂交版Wiki
导航
首页
最近更改
随机页面
MediaWiki帮助
特殊页面
上传文件
打开/关闭外观设置菜单
notifications
打开/关闭个人菜单
未登录
未登录用户的IP地址会在进行任意编辑后公开展示。
user-interface-preferences
个人工具
创建账号
登录
查看“︁MediaWiki:Citizen.css”︁的源代码
MediaWiki界面页面
查看
阅读
查看源代码
查看历史
associated-pages
系统消息
讨论
更多操作
←
MediaWiki:Citizen.css
因为以下原因,您没有权限编辑该页面:
您请求的操作仅限属于该用户组的用户执行:
用户
此页面为本wiki上的软件提供界面文本,并受到保护以防止滥用。 如欲修改所有wiki的翻译,请访问
translatewiki.net
上的MediaWiki本地化项目。
您无权编辑此CSS页面,因为编辑此页面可能会影响所有访问者。
您可以查看和复制此页面的源代码。
/* 这里所有CSS都会加载给Citizen皮肤的用户 */ :root { --color-progressive-oklch__h: 150; --color-progressive-oklch__c: 0.18; --color-progressive-oklch__l: 45%; --color-progressive-hsl__h: 150; --color-progressive-hsl__s: 75%; --color-progressive-hsl__l: 40%; --content-width: calc(100vw - var(--padding-page) * 2); } /* 原有样式修改 */ .mw-editsection { float: unset; display: unset; opacity: 0.5; } .mw-editsection:hover, .mw-editsection:active { opacity: 1; } /* 植物大战僵尸信息卡片核心样式 */ .pvzhe-info-card { --width: calc(min(450px, 100vw) - var(--padding-page) * 2); width: var(--width); max-width: var(--width); border: 1px solid var(--background-color-progressive); border-radius: 12px; overflow: hidden; margin-bottom: 1em; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05); } .pvzhe-info-card-row { min-height: 40px; display: flex; width: 100%; align-items: center; } .pvzhe-info-card-title { background: var(--background-color-progressive); color: var(--color-inverted-fixed,#fff); justify-content: center; padding: 0 12px; } .pvzhe-info-card-image { justify-content: center; padding: 20px; line-height: normal; } .pvzhe-info-card-attr .label { flex: 0 0 120px; padding: 0 1rem; text-align: center; display: flex; align-items: center; justify-content: center; font-weight: bold; min-height: 40px; white-space: nowrap; } .pvzhe-info-card-attr .value { flex: 1 1 auto; padding: 0 12px; text-align: left; word-break: break-all; white-space: normal; align-self: center; line-height: 1.5; } .pvzhe-info-card-attr:nth-child(odd) { background: var(--color-surface-1); } .pvzhe-info-card-attr:nth-child(even) { background: var(--color-surface-0); } .pvzhe-info-card-float-right { float: right; clear: right; } /* 图鉴卡片样式 */ .pvzhe-card { width: 120px; padding: 8px; border-radius: 6px; text-align: center; background: var(--color-surface-4); box-shadow: 0 1px 3px var(--shadow-color); } .pvzhe-card-image { margin-bottom: 6px; display: flex; justify-content: center; align-items: center; overflow: hidden; width: 104px; height: 104px; color: var(--color-subtle); font-size: 12px; } .pvzhe-card-name { font-size: 14px; font-weight: 500; color: var(--color-text); } .pvzhe-card-container { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-start; margin: 10px 0; } /* ============================================== 植物大战僵尸杂交版Wiki - 双模式背景图设置 浅色模式:TreasureIslandFrontlawn.jpg (白天) 深色模式:TreasureIslandFrontlawnNight.jpg (夜晚) ============================================== */ /* 浅色模式背景 (白天宝藏岛前草坪) */ .skin-citizen-light body { background-image: url("https://new.pvzhe.wiki/w/images/TreasureIslandFrontlawn.jpg") !important; background-position: center top !important; /* 从顶部居中显示,保留更多地面细节 */ background-repeat: no-repeat !important; background-attachment: fixed !important; /* 背景固定,滚动时内容浮动在上方 */ background-size: cover !important; /* 铺满整个屏幕,保持比例 */ } /* 深色模式背景 (夜晚宝藏岛前草坪) */ .skin-citizen-dark body { background-image: url("https://new.pvzhe.wiki/w/images/TreasureIslandFrontlawnNight.jpg") !important; background-position: center top !important; background-repeat: no-repeat !important; background-attachment: fixed !important; background-size: cover !important; } /* ------------------------------------------------- 让内容区域半透明,露出背景图 (可选效果) 如果觉得影响阅读,可以删除或调整透明度数值 ------------------------------------------------- */ /* 浅色模式下的内容区背景 (半透明白色毛玻璃) */ .skin-citizen-light .mw-body, .skin-citizen-light .citizen-header { background-color: rgba(255, 255, 255, 0.82) !important; backdrop-filter: blur(2px); /* 轻微模糊,突出文字 */ } /* 深色模式下的内容区背景 (半透明深色毛玻璃) */ .skin-citizen-dark .mw-body, .skin-citizen-dark .citizen-header { background-color: rgba(0, 0, 0, 0.75) !important; backdrop-filter: blur(2px); } /* 针对卡片等特殊元素也做半透明处理,使其融合背景 */ .skin-citizen-light .pvzhe-info-card, .skin-citizen-dark .pvzhe-info-card { background-color: rgba(var(--color-surface-rgb, 255,255,255), 0.9); }
返回
MediaWiki:Citizen.css
。
查看“︁MediaWiki:Citizen.css”︁的源代码
MediaWiki界面页面