打开/关闭菜单
236
885
35
2810
植物大战僵尸杂交版Wiki
打开/关闭外观设置菜单
打开/关闭个人菜单
未登录
未登录用户的IP地址会在进行任意编辑后公开展示。

MediaWiki:Citizen.css:修订间差异

MediaWiki界面页面
无编辑摘要
标签已被回退
无编辑摘要
标签已被回退
第122行: 第122行:
     margin: 10px 0;
     margin: 10px 0;
}
}
/* ==============================================
/* 浅色模式背景 */
  植物大战僵尸杂交版Wiki - 双模式背景图设置
  浅色模式:TreasureIslandFrontlawn.jpg (白天)
  深色模式:TreasureIslandFrontlawnNight.jpg (夜晚)
  ============================================== */
 
/* 浅色模式背景 (白天宝藏岛前草坪) */
.skin-citizen-light body {
.skin-citizen-light body {
     background-image: url("https://new.pvzhe.wiki/w/images/TreasureIslandFrontlawn.jpg") !important;
     background-image: url("/Special:FilePath/TreasureIslandFrontlawn.jpg") !important;
     background-position: center top !important;    /* 从顶部居中显示,保留更多地面细节 */
     background-size: cover !important;
    background-repeat: no-repeat !important;
     background-attachment: fixed !important;
     background-attachment: fixed !important;       /* 背景固定,滚动时内容浮动在上方 */
     background-position: center top !important;
     background-size: cover !important;             /* 铺满整个屏幕,保持比例 */
}
}


/* 深色模式背景 (夜晚宝藏岛前草坪) */
/* 深色模式背景 */
.skin-citizen-dark body {
.skin-citizen-dark body {
     background-image: url("https://new.pvzhe.wiki/w/images/TreasureIslandFrontlawnNight.jpg") !important;
     background-image: url("/Special:FilePath/TreasureIslandFrontlawnNight.jpg") !important;
    background-size: cover !important;
    background-attachment: fixed !important;
     background-position: center top !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);
}
}

2026年5月17日 (日) 10:29的版本

/* 这里所有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;
}
/* 浅色模式背景 */
.skin-citizen-light body {
    background-image: url("/Special:FilePath/TreasureIslandFrontlawn.jpg") !important;
    background-size: cover !important;
    background-attachment: fixed !important;
    background-position: center top !important;
}

/* 深色模式背景 */
.skin-citizen-dark body {
    background-image: url("/Special:FilePath/TreasureIslandFrontlawnNight.jpg") !important;
    background-size: cover !important;
    background-attachment: fixed !important;
    background-position: center top !important;
}