MediaWiki:Citizen.css:修订间差异
MediaWiki界面页面
更多操作
测试 |
小 测试 标签:已被回退 |
||
| 第77行: | 第77行: | ||
} | } | ||
/* | /** | ||
.skin- | * 少女前线 Logo 黄 - 核心色调覆盖 | ||
/* 1. | * 目标色值参考:#FFC90E (OKLCH 约等于 L:0.83 C:0.18 H:75) | ||
--color-progressive-oklch__h: | */ | ||
.skin-citizen { | |||
/* 1. 色调:75 是最接近少前 Logo 那种琥珀金黄的 */ | |||
--color-progressive-oklch__h: 75; | |||
/* 2. | /* 2. 彩度:0.2 左右能保持鲜艳且不溢出 */ | ||
--color-progressive-oklch__c: 0. | --color-progressive-oklch__c: 0.2; | ||
/* 3. | /* 3. 亮度:0.8 是明亮黄色的甜点区 */ | ||
--color-progressive-oklch__l: 0. | --color-progressive-oklch__l: 0.8; | ||
} | |||
/* 针对浅色模式微调,防止黄色在白底上“隐身” */ | |||
.skin-theme-clientpref-day { | |||
*/ | /* 稍微降低亮度,增加对比度 */ | ||
--color- | --color-progressive-oklch__l: 0.78; | ||
--color- | --color-progressive-oklch__c: 0.22; | ||
/* | /* 让背景更干净,衬托黄色 */ | ||
--color-surface-0: #ffffff; | |||
--color- | |||
} | } | ||
| 第106行: | 第107行: | ||
--color-surface-1: #24211e; /* 顶层卡片 */ | --color-surface-1: #24211e; /* 顶层卡片 */ | ||
--color-base: #e6e0d9; /* 文字改用暖白,不刺眼 */ | --color-base: #e6e0d9; /* 文字改用暖白,不刺眼 */ | ||
} | } | ||
2026年5月11日 (一) 02:56的版本
/* ==========================================================================
MsUpload 图标终极修复方案 (Citizen 皮肤专用)
功能:彻底解决重影、多图标平铺、位置偏离、暗色模式适配
========================================================================== */
/* 1. 区域清理:剥夺 MsUpload 按钮内所有层级的默认绘图权,防止重影 */
#msupload-select,
#msupload-select *,
#msupload-select *::before,
#msupload-select *::after {
background-image: none !important;
-webkit-mask-image: none !important;
mask-image: none !important;
content: none !important;
background-color: transparent !important;
}
/* 2. 容器校准:强制按钮外壳 (<a>) 变为绝对居中的容器 */
#msupload-select .oo-ui-buttonElement-button {
display: flex !important;
align-items: center !important; /* 垂直居中 */
justify-content: center !important; /* 水平居中 */
width: 32px !important; /* 工具栏标准宽度 */
height: 32px !important; /* 工具栏标准高度 */
padding: 0 !important; /* 清除可能导致偏移的内边距 */
border: none !important;
cursor: pointer !important;
}
/* 3. 图标重建:在最内层 <span> 上重新渲染唯一的、居中的图标 */
#msupload-select span.oo-ui-icon-upload.oo-ui-iconElement-icon {
display: block !important;
width: 20px !important; /* 标准图标尺寸 */
height: 20px !important;
margin: 0 !important;
position: static !important;
/* 核心渲染:使用系统标准上传图标路径 */
-webkit-mask-image: url(/resources/lib/ooui/themes/wikimediaui/images/icons/upload.svg) !important;
mask-image: url(/resources/lib/ooui/themes/wikimediaui/images/icons/upload.svg) !important;
/* 关键:禁止平铺重复 (解决 4 个图标的问题) */
-webkit-mask-repeat: no-repeat !important;
mask-repeat: no-repeat !important;
-webkit-mask-position: center center !important;
mask-position: center center !important;
-webkit-mask-size: contain !important;
mask-size: contain !important;
/* 颜色适配:跟随文字颜色(Citizen 皮肤逻辑) */
background-color: currentColor !important;
/* 视觉微调:解决“图标有点歪”的问题 */
/* 如果觉得偏上,就调大 1px;如果觉得偏下,就设为 -1px */
transform: translateY(1px);
}
/* 4. 暗色模式适配:确保图标在深色背景下依然清晰 */
.mw-layout-context-dark #msupload-select span.oo-ui-icon-upload.oo-ui-iconElement-icon {
background-color: #f8f9fa !important;
}
.mw-heading2 {margin-top:2rem;}
.mw-heading3 {margin-top:1rem;}
.citizen-footer {margin-top:3rem;}
.wikitable,
.wikitable tr:first-of-type th:first-child,
.wikitable tr:first-of-type td:first-child,
.wikitable tr:last-of-type th:first-child,
.wikitable tr:last-of-type td:first-child,
.wikitable tr:first-of-type th:last-child,
.wikitable tr:first-of-type td:last-child,
.wikitable tr:last-of-type th:last-child,
.wikitable tr:last-of-type td:last-child {
border-radius: 0 !important;
}
/**
* 少女前线 Logo 黄 - 核心色调覆盖
* 目标色值参考:#FFC90E (OKLCH 约等于 L:0.83 C:0.18 H:75)
*/
.skin-citizen {
/* 1. 色调:75 是最接近少前 Logo 那种琥珀金黄的 */
--color-progressive-oklch__h: 75;
/* 2. 彩度:0.2 左右能保持鲜艳且不溢出 */
--color-progressive-oklch__c: 0.2;
/* 3. 亮度:0.8 是明亮黄色的甜点区 */
--color-progressive-oklch__l: 0.8;
}
/* 针对浅色模式微调,防止黄色在白底上“隐身” */
.skin-theme-clientpref-day {
/* 稍微降低亮度,增加对比度 */
--color-progressive-oklch__l: 0.78;
--color-progressive-oklch__c: 0.22;
/* 让背景更干净,衬托黄色 */
--color-surface-0: #ffffff;
}
/* 深色模式:拒绝死黑,改用暗巧克力/炭灰调 */
.skin-theme-clientpref-night {
--color-surface-0: #1a1816; /* 深层背景 */
--color-surface-1: #24211e; /* 顶层卡片 */
--color-base: #e6e0d9; /* 文字改用暖白,不刺眼 */
}