MediaWiki:Citizen.css:修订间差异
MediaWiki界面页面
更多操作
无编辑摘要 |
无编辑摘要 |
||
| 第1行: | 第1行: | ||
/** | /** | ||
* Blockland Wiki 极致全能毛玻璃样式 (Citizen 主题专用) | * Blockland Wiki 极致全能毛玻璃样式 (Citizen 主题专用) | ||
* | * 风格:纯净去色版 (Pure White/Grey) | ||
* 功能:1000px宽、极致弹性进场动画、去蓝饱和度处理 | |||
*/ | */ | ||
/* 1. 通用组件毛玻璃化 - | /* --- 1. 全局去蓝配色基础 --- */ | ||
:root { | |||
/* 强制覆盖背景色为纯白/浅灰,不带任何蓝色偏移 */ | |||
--color-surface-0: #fafafa !important; | |||
--color-surface-1: #ffffff !important; | |||
--color-surface-search: #ffffff !important; | |||
--color-base-0: #202122 !important; | |||
--color-heading: #000000 !important; | |||
/* 链接色保持,但交互层改用中性灰 */ | |||
--background-color-interactive-subtle: rgba(0, 0, 0, 0.05) !important; | |||
--color-primary-opacity-10: rgba(0, 0, 0, 0.05) !important; | |||
} | |||
/* --- 2. 通用组件毛玻璃化 (去蓝增强版) --- */ | |||
.citizen-menu__card, | .citizen-menu__card, | ||
#citizen-preferences__card, | #citizen-preferences__card, | ||
| 第10行: | 第24行: | ||
.page-actions-more__card, | .page-actions-more__card, | ||
.citizen-dropdown .citizen-menu__card { | .citizen-dropdown .citizen-menu__card { | ||
background-color: rgba(255, 255, 255, 0. | /* 使用纯白色背景 + 极高饱和度修正 */ | ||
backdrop-filter: blur( | background-color: rgba(255, 255, 255, 0.2) !important; | ||
-webkit-backdrop-filter: blur( | backdrop-filter: blur(14px) saturate(0%) !important; /* saturate(0%) 彻底消除透出的背景色 */ | ||
border: 1px solid rgba( | -webkit-backdrop-filter: blur(14px) saturate(0%) !important; | ||
border: 1px solid rgba(0, 0, 0, 0.1) !important; | |||
border-radius: 12px !important; | border-radius: 12px !important; | ||
} | } | ||
/* | /* --- 3. 搜索框背景遮罩层 --- */ | ||
.citizen-command-palette-backdrop { | .citizen-command-palette-backdrop { | ||
background-color: rgba( | background-color: rgba(0, 0, 0, 0.2) !important; | ||
backdrop-filter: blur(8px) !important; | backdrop-filter: blur(8px) !important; | ||
-webkit-backdrop-filter: blur(8px) !important; | -webkit-backdrop-filter: blur(8px) !important; | ||
| 第26行: | 第41行: | ||
} | } | ||
/* | /* --- 4. 搜索面板主体 (保持 1000px 与 极致动画) --- */ | ||
.citizen-command-palette { | .citizen-command-palette { | ||
position: fixed !important; | position: fixed !important; | ||
| 第37行: | 第52行: | ||
isolation: isolate !important; | isolation: isolate !important; | ||
/* | /* 样式美化:使用第二段代码的纯白配色逻辑 */ | ||
background-color: rgba( | background-color: rgba(255, 255, 255, 0.85) !important; /* 提高不透明度以压住底色 */ | ||
backdrop-filter: blur( | backdrop-filter: blur(25px) saturate(0%) !important; /* 关键:saturate(0%) 确保完全去蓝 */ | ||
-webkit-backdrop-filter: blur( | -webkit-backdrop-filter: blur(25px) saturate(0%) !important; | ||
border-radius: 24px !important; | border-radius: 24px !important; | ||
border: 1px solid rgba(255, 255, 255, 0. | border: 1px solid rgba(255, 255, 255, 0.5) !important; | ||
box-shadow: 0 | box-shadow: 0 40px 100px rgba(0, 0, 0, 0.25) !important; | ||
/* 恢复第一段代码的高级进场动画 */ | |||
animation: citizen-pop-in 0.45s cubic-bezier(0.34, 1.56, 0.64, 1) forwards !important; | animation: citizen-pop-in 0.45s cubic-bezier(0.34, 1.56, 0.64, 1) forwards !important; | ||
transform-origin: center center !important; | transform-origin: center center !important; | ||
} | } | ||
/* | /* --- 5. 内部元素清理 --- */ | ||
.citizen-command-palette-list-item__metadata { | .citizen-command-palette-list-item__metadata { | ||
display: none !important; | display: none !important; /* 隐藏元数据标签 */ | ||
} | } | ||
.citizen-command-palette__search, | .citizen-command-palette__search, | ||
.citizen-command-palette__results, | .citizen-command-palette__results, | ||
| 第64行: | 第80行: | ||
border: none !important; | border: none !important; | ||
box-shadow: none !important; | box-shadow: none !important; | ||
color: # | color: #202122 !important; /* 确保文字是深灰色 */ | ||
} | } | ||
/* 6. | /* --- 6. 深色模式适配 (Pure Dark) --- */ | ||
html.skin-theme-clientpref-night .citizen-command-palette { | html.skin-theme-clientpref-night .citizen-command-palette { | ||
background-color: rgba( | background-color: rgba(30, 30, 30, 0.8) !important; | ||
border: 1px solid rgba(255, 255, 255, 1) !important; | backdrop-filter: blur(25px) saturate(0%) !important; | ||
border: 1px solid rgba(255, 255, 255, 0.1) !important; | |||
} | } | ||
2026年1月29日 (四) 20:18的版本
/**
* Blockland Wiki 极致全能毛玻璃样式 (Citizen 主题专用)
* 风格:纯净去色版 (Pure White/Grey)
* 功能:1000px宽、极致弹性进场动画、去蓝饱和度处理
*/
/* --- 1. 全局去蓝配色基础 --- */
:root {
/* 强制覆盖背景色为纯白/浅灰,不带任何蓝色偏移 */
--color-surface-0: #fafafa !important;
--color-surface-1: #ffffff !important;
--color-surface-search: #ffffff !important;
--color-base-0: #202122 !important;
--color-heading: #000000 !important;
/* 链接色保持,但交互层改用中性灰 */
--background-color-interactive-subtle: rgba(0, 0, 0, 0.05) !important;
--color-primary-opacity-10: rgba(0, 0, 0, 0.05) !important;
}
/* --- 2. 通用组件毛玻璃化 (去蓝增强版) --- */
.citizen-menu__card,
#citizen-preferences__card,
.citizen-sticky-header-background,
.page-actions-more__card,
.citizen-dropdown .citizen-menu__card {
/* 使用纯白色背景 + 极高饱和度修正 */
background-color: rgba(255, 255, 255, 0.2) !important;
backdrop-filter: blur(14px) saturate(0%) !important; /* saturate(0%) 彻底消除透出的背景色 */
-webkit-backdrop-filter: blur(14px) saturate(0%) !important;
border: 1px solid rgba(0, 0, 0, 0.1) !important;
border-radius: 12px !important;
}
/* --- 3. 搜索框背景遮罩层 --- */
.citizen-command-palette-backdrop {
background-color: rgba(0, 0, 0, 0.2) !important;
backdrop-filter: blur(8px) !important;
-webkit-backdrop-filter: blur(8px) !important;
z-index: 9999 !important;
animation: citizen-fade-in 0.3s ease forwards;
}
/* --- 4. 搜索面板主体 (保持 1000px 与 极致动画) --- */
.citizen-command-palette {
position: fixed !important;
width: 1000px !important;
max-width: 92vw !important;
top: 50% !important;
left: 50% !important;
margin: 0 !important;
z-index: 10000 !important;
isolation: isolate !important;
/* 样式美化:使用第二段代码的纯白配色逻辑 */
background-color: rgba(255, 255, 255, 0.85) !important; /* 提高不透明度以压住底色 */
backdrop-filter: blur(25px) saturate(0%) !important; /* 关键:saturate(0%) 确保完全去蓝 */
-webkit-backdrop-filter: blur(25px) saturate(0%) !important;
border-radius: 24px !important;
border: 1px solid rgba(255, 255, 255, 0.5) !important;
box-shadow: 0 40px 100px rgba(0, 0, 0, 0.25) !important;
/* 恢复第一段代码的高级进场动画 */
animation: citizen-pop-in 0.45s cubic-bezier(0.34, 1.56, 0.64, 1) forwards !important;
transform-origin: center center !important;
}
/* --- 5. 内部元素清理 --- */
.citizen-command-palette-list-item__metadata {
display: none !important; /* 隐藏元数据标签 */
}
.citizen-command-palette__search,
.citizen-command-palette__results,
.citizen-command-palette__footer,
.cdx-text-input__input,
.citizen-command-palette-list,
.citizen-command-palette-list-item__content {
background: transparent !important;
border: none !important;
box-shadow: none !important;
color: #202122 !important; /* 确保文字是深灰色 */
}
/* --- 6. 深色模式适配 (Pure Dark) --- */
html.skin-theme-clientpref-night .citizen-command-palette {
background-color: rgba(30, 30, 30, 0.8) !important;
backdrop-filter: blur(25px) saturate(0%) !important;
border: 1px solid rgba(255, 255, 255, 0.1) !important;
}
/* --- 动画定义 --- */
@keyframes citizen-pop-in {
0% {
opacity: 0;
transform: translate(-50%, -45%) scale(0.85);
}
100% {
opacity: 1;
transform: translate(-50%, -50%) scale(1);
}
}
@keyframes citizen-fade-in {
from { opacity: 0; }
to { opacity: 1; }
}