MediaWiki:Citizen.css:修订间差异
MediaWiki界面页面
更多操作
无编辑摘要 |
无编辑摘要 |
||
| (未显示同一用户的18个中间版本) | |||
| 第7行: | 第7行: | ||
--color-progressive-hsl__s: 75%; | --color-progressive-hsl__s: 75%; | ||
--color-progressive-hsl__l: 40%; | --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 { | .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: 1px solid var(--background-color-progressive); | ||
border-radius: 12px; | border-radius: 12px; | ||
overflow: hidden; | overflow: hidden; | ||
margin: 1em | margin-bottom: 1em; | ||
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05); | box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05); | ||
} | } | ||
| 第24行: | 第35行: | ||
.pvzhe-info-card-row { | .pvzhe-info-card-row { | ||
min-height: 40px; | min-height: 40px; | ||
display: flex; | |||
width: 100%; | |||
align-items: center; | |||
} | } | ||
.pvzhe-info-card-title { | .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- | .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- | .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) { | .pvzhe-info-card-attr:nth-child(odd) { | ||
background: var(--color-surface-1); | |||
} | } | ||
.pvzhe-info-card-attr:nth-child(even) { | .pvzhe-info-card-attr:nth-child(even) { | ||
background: var(--color-surface-0); | |||
} | } | ||
.pvzhe-info-card-float-right { | .pvzhe-info-card-float-right { | ||
float: right; | |||
clear: right; | |||
} | } | ||
| 第57行: | 第91行: | ||
width: 120px; | width: 120px; | ||
padding: 8px; | padding: 8px; | ||
border-radius: 6px; | border-radius: 6px; | ||
text-align: center; | text-align: center; | ||
background: var(--color-surface- | background: var(--color-surface-4); | ||
box-shadow: 0 1px 3px var(--shadow-color); | box-shadow: 0 1px 3px var(--shadow-color); | ||
} | } | ||
2026年4月17日 (五) 03: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;
}