MediaWiki:Citizen.css:修订间差异
MediaWiki界面页面
更多操作
无编辑摘要 |
无编辑摘要 |
||
| 第1行: | 第1行: | ||
/* | /** | ||
* Blockland Wiki 极致全能毛玻璃样式 (Citizen 主题专用) | |||
* 移植自 Gemini 用户脚本 V20 修复版 | |||
*/ | |||
/* 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.15) !important; | |||
backdrop-filter: blur(14px) saturate(180%) !important; | |||
-webkit-backdrop-filter: blur(14px) saturate(180%) !important; | |||
border: 1px solid rgba(255, 255, 255, 0.3) !important; | |||
border-radius: 12px !important; | |||
} | } | ||
/* 2. | /* 2. 搜索框遮罩层优化 */ | ||
.citizen-command-palette-backdrop { | |||
background-color: rgba(0, 0, 0, 0.1) !important; | |||
backdrop-filter: blur(10px) !important; | |||
-webkit-backdrop-filter: blur(10px) !important; | |||
z-index: 9999 !important; | |||
} | |||
/* 3. 搜索框主体 (Command Palette) 弹性缩放与毛玻璃 */ | |||
.citizen-command-palette { | .citizen-command-palette { | ||
position: fixed !important; | |||
width: 1000px !important; | width: 1000px !important; | ||
max-width: 95vw !important; | max-width: 95vw !important; | ||
top: 50% !important; | |||
left: 50% !important; | |||
margin: 0 !important; | |||
z-index: 10000 !important; | |||
isolation: isolate !important; | |||
/* | /* 居中定位 */ | ||
transform: translate(-50%, -50%) !important; | |||
border: 1px solid rgba( | /* 毛玻璃与背景 */ | ||
box-shadow: 0 | background-color: rgba(255, 255, 255, 0.65) !important; | ||
backdrop-filter: blur(20px) saturate(180%) !important; | |||
-webkit-backdrop-filter: blur(20px) saturate(180%) !important; | |||
border-radius: 20px !important; | |||
border: 1px solid rgba(255, 255, 255, 0.4) !important; | |||
box-shadow: 0 30px 70px rgba(0, 0, 0, 0.3) !important; | |||
/* | /* 进场动画 */ | ||
animation: citizen-glass-pop 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) forwards; | |||
} | } | ||
/* | /* 4. 搜索框内部元素透明化 */ | ||
.citizen-command-palette__search, | |||
.citizen-command-palette__results, | |||
.citizen-command-palette__footer, | |||
.citizen-command- | .cdx-text-input__input, | ||
color: | .citizen-command-palette-list, | ||
.citizen-command-palette-list-item__content { | |||
background: transparent !important; | |||
background-color: transparent !important; | |||
border: none !important; | |||
box-shadow: none !important; | |||
} | } | ||
/* | /* 5. 深色模式适配 */ | ||
. | html.skin-theme-clientpref-night .citizen-command-palette { | ||
.citizen-command- | background-color: rgba(30, 30, 35, 0.75) !important; | ||
background-color: rgba( | |||
} | } | ||
/* | /* 6. 定义弹出动画 (替代 JS 的 class 切换) */ | ||
@keyframes citizen-glass-pop { | |||
from { | |||
opacity: 0; | |||
transform: translate(-50%, -50%) scale(0.9); | |||
} | |||
to { | |||
opacity: 1; | |||
transform: translate(-50%, -50%) scale(1); | |||
} | |||
} | } | ||
2026年1月29日 (四) 20:05的版本
/**
* Blockland Wiki 极致全能毛玻璃样式 (Citizen 主题专用)
* 移植自 Gemini 用户脚本 V20 修复版
*/
/* 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.15) !important;
backdrop-filter: blur(14px) saturate(180%) !important;
-webkit-backdrop-filter: blur(14px) saturate(180%) !important;
border: 1px solid rgba(255, 255, 255, 0.3) !important;
border-radius: 12px !important;
}
/* 2. 搜索框遮罩层优化 */
.citizen-command-palette-backdrop {
background-color: rgba(0, 0, 0, 0.1) !important;
backdrop-filter: blur(10px) !important;
-webkit-backdrop-filter: blur(10px) !important;
z-index: 9999 !important;
}
/* 3. 搜索框主体 (Command Palette) 弹性缩放与毛玻璃 */
.citizen-command-palette {
position: fixed !important;
width: 1000px !important;
max-width: 95vw !important;
top: 50% !important;
left: 50% !important;
margin: 0 !important;
z-index: 10000 !important;
isolation: isolate !important;
/* 居中定位 */
transform: translate(-50%, -50%) !important;
/* 毛玻璃与背景 */
background-color: rgba(255, 255, 255, 0.65) !important;
backdrop-filter: blur(20px) saturate(180%) !important;
-webkit-backdrop-filter: blur(20px) saturate(180%) !important;
border-radius: 20px !important;
border: 1px solid rgba(255, 255, 255, 0.4) !important;
box-shadow: 0 30px 70px rgba(0, 0, 0, 0.3) !important;
/* 进场动画 */
animation: citizen-glass-pop 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}
/* 4. 搜索框内部元素透明化 */
.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;
background-color: transparent !important;
border: none !important;
box-shadow: none !important;
}
/* 5. 深色模式适配 */
html.skin-theme-clientpref-night .citizen-command-palette {
background-color: rgba(30, 30, 35, 0.75) !important;
}
/* 6. 定义弹出动画 (替代 JS 的 class 切换) */
@keyframes citizen-glass-pop {
from {
opacity: 0;
transform: translate(-50%, -50%) scale(0.9);
}
to {
opacity: 1;
transform: translate(-50%, -50%) scale(1);
}
}