MediaWiki:Citizen.css:修订间差异
MediaWiki界面页面
更多操作
无编辑摘要 |
无编辑摘要 |
||
| 第1行: | 第1行: | ||
/** | /** | ||
* Blockland Wiki 极致全能毛玻璃样式 (Citizen 主题专用) | * Blockland Wiki 极致全能毛玻璃样式 (Citizen 主题专用) | ||
* | * 风格:纯白/浅灰高透版 | ||
*/ | */ | ||
/* 1. | /* 1. 通用组件毛玻璃化 - 统一为超浅灰 */ | ||
.citizen-menu__card, | .citizen-menu__card, | ||
#citizen-preferences__card, | #citizen-preferences__card, | ||
| 第10行: | 第10行: | ||
.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. | background-color: rgba(255, 255, 255, 0.4) !important; /* 增加不透明度确保文字清晰 */ | ||
backdrop-filter: blur( | backdrop-filter: blur(16px) saturate(180%) !important; | ||
-webkit-backdrop-filter: blur( | -webkit-backdrop-filter: blur(16px) saturate(180%) !important; | ||
border: 1px solid rgba(255, 255, 255, 0. | border: 1px solid rgba(255, 255, 255, 0.5) !important; | ||
border-radius: 12px !important; | border-radius: 12px !important; | ||
} | } | ||
/* 2. | /* 2. 搜索框背景遮罩层 - 调淡背景遮罩,突出本体 */ | ||
.citizen-command-palette-backdrop { | .citizen-command-palette-backdrop { | ||
background-color: rgba( | background-color: rgba(255, 255, 255, 0.1) !important; | ||
backdrop-filter: blur( | backdrop-filter: blur(8px) !important; | ||
-webkit-backdrop-filter: blur( | -webkit-backdrop-filter: blur(8px) !important; | ||
z-index: 9999 !important; | z-index: 9999 !important; | ||
animation: citizen-fade-in 0.3s ease forwards; | animation: citizen-fade-in 0.3s ease forwards; | ||
} | } | ||
/* 3. | /* 3. 搜索面板主体 - 核心浅白配色 */ | ||
.citizen-command-palette { | .citizen-command-palette { | ||
position: fixed !important; | position: fixed !important; | ||
| 第38行: | 第37行: | ||
isolation: isolate !important; | isolation: isolate !important; | ||
/* | /* 浅灰色基底 (F9F9F9) 配合高透明 */ | ||
background-color: rgba( | background-color: rgba(249, 249, 249, 0.75) !important; | ||
backdrop-filter: blur( | backdrop-filter: blur(30px) saturate(200%) !important; | ||
-webkit-backdrop-filter: blur( | -webkit-backdrop-filter: blur(30px) saturate(200%) !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.8) !important; | ||
box-shadow: 0 | box-shadow: 0 30px 80px rgba(0, 0, 0, 0.15) !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; | ||
} | } | ||
/* 4. | /* 4. 移除搜索项右侧的元数据标签 */ | ||
.citizen-command-palette-list-item__metadata { | |||
display: none !important; | |||
} | |||
/* 5. 内部元素彻底透明化 */ | |||
.citizen-command-palette__search, | .citizen-command-palette__search, | ||
.citizen-command-palette__results, | .citizen-command-palette__results, | ||
| 第62行: | 第64行: | ||
border: none !important; | border: none !important; | ||
box-shadow: none !important; | box-shadow: none !important; | ||
color: #333 !important; /* 强制文字为深灰/黑,防止在浅色底上看不清 */ | |||
} | } | ||
/* | /* 6. 强制深色模式也保持浅色面板 */ | ||
html.skin-theme-clientpref-night .citizen-command-palette { | html.skin-theme-clientpref-night .citizen-command-palette { | ||
background-color: rgba( | background-color: rgba(255, 255, 255, 0.85) !important; | ||
border: 1px solid rgba(255, 255, 255, | border: 1px solid rgba(255, 255, 255, 1) !important; | ||
} | } | ||
/* --- 动画定义 --- */ | /* --- 动画定义 --- */ | ||
@keyframes citizen-pop-in { | @keyframes citizen-pop-in { | ||
0% { | 0% { | ||
| 第84行: | 第85行: | ||
} | } | ||
@keyframes citizen-fade-in { | @keyframes citizen-fade-in { | ||
from { opacity: 0; } | from { opacity: 0; } | ||
to { opacity: 1; } | to { opacity: 1; } | ||
} | } | ||
2026年1月29日 (四) 20:15的版本
/**
* Blockland Wiki 极致全能毛玻璃样式 (Citizen 主题专用)
* 风格:纯白/浅灰高透版
*/
/* 1. 通用组件毛玻璃化 - 统一为超浅灰 */
.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.4) !important; /* 增加不透明度确保文字清晰 */
backdrop-filter: blur(16px) saturate(180%) !important;
-webkit-backdrop-filter: blur(16px) saturate(180%) !important;
border: 1px solid rgba(255, 255, 255, 0.5) !important;
border-radius: 12px !important;
}
/* 2. 搜索框背景遮罩层 - 调淡背景遮罩,突出本体 */
.citizen-command-palette-backdrop {
background-color: rgba(255, 255, 255, 0.1) !important;
backdrop-filter: blur(8px) !important;
-webkit-backdrop-filter: blur(8px) !important;
z-index: 9999 !important;
animation: citizen-fade-in 0.3s ease forwards;
}
/* 3. 搜索面板主体 - 核心浅白配色 */
.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;
/* 浅灰色基底 (F9F9F9) 配合高透明 */
background-color: rgba(249, 249, 249, 0.75) !important;
backdrop-filter: blur(30px) saturate(200%) !important;
-webkit-backdrop-filter: blur(30px) saturate(200%) !important;
border-radius: 24px !important;
border: 1px solid rgba(255, 255, 255, 0.8) !important;
box-shadow: 0 30px 80px rgba(0, 0, 0, 0.15) !important; /* 阴影也变淡了,更高级 */
animation: citizen-pop-in 0.45s cubic-bezier(0.34, 1.56, 0.64, 1) forwards !important;
transform-origin: center center !important;
}
/* 4. 移除搜索项右侧的元数据标签 */
.citizen-command-palette-list-item__metadata {
display: none !important;
}
/* 5. 内部元素彻底透明化 */
.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: #333 !important; /* 强制文字为深灰/黑,防止在浅色底上看不清 */
}
/* 6. 强制深色模式也保持浅色面板 */
html.skin-theme-clientpref-night .citizen-command-palette {
background-color: rgba(255, 255, 255, 0.85) !important;
border: 1px solid rgba(255, 255, 255, 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; }
}