MediaWiki:Citizen.css:修订间差异
MediaWiki界面页面
更多操作
无编辑摘要 |
无编辑摘要 |
||
| 第1行: | 第1行: | ||
/** | /** | ||
* Blockland Wiki 极致全能毛玻璃样式 (Citizen | * Blockland Wiki 极致全能毛玻璃样式 (Citizen 整合去重版) | ||
* 风格:纯净去色版 (Pure White/Grey) | * 风格:纯净去色版 (Pure White/Grey) | ||
* | * 功能:1000px宽、极致弹性进场、全填充圆角列表、粉红垃圾桶交互 | ||
*/ | */ | ||
/* --- 1. 全局去蓝配色基础 --- */ | /* --- 1. 全局去蓝配色基础 --- */ | ||
:root { | :root { | ||
--color-surface-0: #fafafa !important; | --color-surface-0: #fafafa !important; | ||
--color-surface-1: #ffffff !important; | --color-surface-1: #ffffff !important; | ||
| 第13行: | 第12行: | ||
--color-base-0: #202122 !important; | --color-base-0: #202122 !important; | ||
--color-heading: #000000 !important; | --color-heading: #000000 !important; | ||
--background-color-interactive-subtle: rgba(0, 0, 0, 0.05) !important; | --background-color-interactive-subtle: rgba(0, 0, 0, 0.05) !important; | ||
--color-primary-opacity-10: rgba(0, 0, 0, 0.05) !important; | --color-primary-opacity-10: rgba(0, 0, 0, 0.05) !important; | ||
} | } | ||
/* --- 2. 通用组件毛玻璃化 | /* --- 2. 通用组件毛玻璃化 --- */ | ||
.citizen-menu__card, | .citizen-menu__card, | ||
#citizen-preferences__card, | #citizen-preferences__card, | ||
| 第24行: | 第22行: | ||
.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.2) !important; | background-color: rgba(255, 255, 255, 0.2) !important; | ||
backdrop-filter: blur(14px) saturate(0%) !important; | backdrop-filter: blur(14px) saturate(0%) !important; | ||
-webkit-backdrop-filter: blur(14px) saturate(0%) !important; | -webkit-backdrop-filter: blur(14px) saturate(0%) !important; | ||
border: 1px solid rgba(0, 0, 0, 0.1) !important; | border: 1px solid rgba(0, 0, 0, 0.1) !important; | ||
| 第32行: | 第29行: | ||
} | } | ||
/* --- 3. | /* --- 3. 搜索面板背景遮罩 --- */ | ||
.citizen-command-palette-backdrop { | .citizen-command-palette-backdrop { | ||
background-color: rgba(0, 0, 0, 0.2) !important; | background-color: rgba(0, 0, 0, 0.2) !important; | ||
| 第41行: | 第38行: | ||
} | } | ||
/* --- 4. 搜索面板主体 ( | /* --- 4. 搜索面板主体 (1000px + 弹性动画) --- */ | ||
.citizen-command-palette { | .citizen-command-palette { | ||
position: fixed !important; | position: fixed !important; | ||
| 第48行: | 第45行: | ||
top: 50% !important; | top: 50% !important; | ||
left: 50% !important; | left: 50% !important; | ||
z-index: 10000 !important; | z-index: 10000 !important; | ||
isolation: isolate !important; | isolation: isolate !important; | ||
background-color: rgba(255, 255, 255, 0.85) !important; | |||
backdrop-filter: blur(25px) saturate(0%) !important; | |||
background-color: rgba(255, 255, 255, 0.85) !important; | |||
backdrop-filter: blur(25px) saturate(0%) !important; | |||
-webkit-backdrop-filter: blur(25px) saturate(0%) !important; | -webkit-backdrop-filter: blur(25px) saturate(0%) !important; | ||
border-radius: 24px !important; | border-radius: 24px !important; | ||
border: 1px solid rgba(255, 255, 255, 0.5) !important; | border: 1px solid rgba(255, 255, 255, 0.5) !important; | ||
box-shadow: 0 40px 100px rgba(0, 0, 0, 0.25) !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; | 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. | /* --- 5. 列表项布局与全填充圆角 --- */ | ||
.citizen-command-palette-list { | |||
padding: 8px 0 !important; /* 左右不留白,方便背景填充 */ | |||
} | |||
.citizen-command-palette-list-item { | |||
margin: 0 12px 6px 12px !important; /* 使用外边距实现侧边呼吸感 */ | |||
border-radius: 12px !important; | |||
overflow: hidden !important; | |||
border: none !important; | |||
display: block !important; | |||
transition: background-color 0.2s ease !important; | |||
} | |||
/* 内部内容容器 */ | |||
.citizen-command-palette-list-item__content { | |||
display: flex !important; | |||
padding: 12px 16px !important; | |||
width: 100% !important; | |||
box-sizing: border-box !important; | |||
background: transparent !important; | |||
color: #202122 !important; | |||
} | |||
/* 隐藏元数据标签 */ | |||
.citizen-command-palette-list-item__metadata { | .citizen-command-palette-list-item__metadata { | ||
display: none !important; /* | display: none !important; | ||
} | |||
/* 选中与悬停:此时背景色会由于 overflow:hidden 完美适配 li 的圆角 */ | |||
.citizen-command-palette-list-item:hover, | |||
.citizen-command-palette-list-item[aria-selected="true"] { | |||
background-color: rgba(0, 0, 0, 0.05) !important; | |||
} | |||
/* --- 6. 垃圾桶按钮:去背景及粉红交互 --- */ | |||
/* 默认状态:彻底透明背景,保持占位 */ | |||
.citizen-command-palette-list-item__actions, | |||
.citizen-command-palette-list-item__action { | |||
background: transparent !important; | |||
background-color: transparent !important; | |||
border: none !important; | |||
box-shadow: none !important; | |||
min-width: 32px !important; | |||
display: flex !important; | |||
justify-content: center !important; | |||
align-items: center !important; | |||
margin-left: auto !important; | |||
} | |||
/* 恢复图标为原来的深色 (Citizen 默认的深蓝黑) */ | |||
.citizen-command-palette-list-item__action svg { | |||
fill: #202122 !important; /* 强制使用深黑色,确保在灰色背景上清晰可见 */ | |||
opacity: 0.85 !important; /* 稍微带点透明,看起来更高级 */ | |||
transition: all 0.2s ease !important; | |||
} | } | ||
/* 悬停状态:浅粉色背景 + 变大红图标 */ | |||
.citizen-command-palette-list-item__action:hover { | |||
background-color: rgba(255, 192, 203, 0.6) !important; /* 稍微加深粉色,更醒目 */ | |||
border-radius: 8px !important; | |||
} | |||
.citizen-command-palette-list-item__action:hover svg { | |||
fill: #d33 !important; /* 悬停时变为明显的警告红 */ | |||
opacity: 1 !important; | |||
transform: scale(1.15) !important; /* 稍微放大,增加点击欲望 */ | |||
} | |||
/* --- 7. 搜索框与底部清理 --- */ | |||
.citizen-command-palette__search, | .citizen-command-palette__search, | ||
.citizen-command-palette__results, | .citizen-command-palette__results, | ||
.citizen-command-palette__footer, | .citizen-command-palette__footer, | ||
.cdx-text-input__input | .cdx-text-input__input { | ||
background: transparent !important; | background: transparent !important; | ||
border: none !important; | border: none !important; | ||
box-shadow: none !important; | box-shadow: none !important; | ||
} | } | ||
/* --- | /* --- 8. 深色模式适配 --- */ | ||
html.skin-theme-clientpref-night .citizen-command-palette { | html.skin-theme-clientpref-night .citizen-command-palette { | ||
background-color: rgba(30, 30, 30, 0.8) !important; | background-color: rgba(30, 30, 30, 0.8) !important; | ||
} | |||
html.skin-theme-clientpref-night .citizen-command-palette-list-item:hover, | |||
html.skin-theme-clientpref-night .citizen-command-palette-list-item[aria-selected="true"] { | |||
background-color: rgba(255, 255, 255, 0.1) !important; | |||
} | } | ||
/* --- 动画定义 --- */ | /* --- 动画定义 --- */ | ||
@keyframes citizen-pop-in { | @keyframes citizen-pop-in { | ||
0% { | 0% { opacity: 0; transform: translate(-50%, -45%) scale(0.85); } | ||
100% { opacity: 1; transform: translate(-50%, -50%) scale(1); } | |||
100% { | |||
} | } | ||
@keyframes citizen-fade-in { | @keyframes citizen-fade-in { | ||
from { opacity: 0; } | from { opacity: 0; } | ||
to { opacity: 1; } | to { opacity: 1; } | ||
} | } | ||
2026年1月29日 (四) 20:29的版本
/**
* 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;
-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;
z-index: 10000 !important;
isolation: isolate !important;
background-color: rgba(255, 255, 255, 0.85) !important;
backdrop-filter: blur(25px) saturate(0%) !important;
-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 {
padding: 8px 0 !important; /* 左右不留白,方便背景填充 */
}
.citizen-command-palette-list-item {
margin: 0 12px 6px 12px !important; /* 使用外边距实现侧边呼吸感 */
border-radius: 12px !important;
overflow: hidden !important;
border: none !important;
display: block !important;
transition: background-color 0.2s ease !important;
}
/* 内部内容容器 */
.citizen-command-palette-list-item__content {
display: flex !important;
padding: 12px 16px !important;
width: 100% !important;
box-sizing: border-box !important;
background: transparent !important;
color: #202122 !important;
}
/* 隐藏元数据标签 */
.citizen-command-palette-list-item__metadata {
display: none !important;
}
/* 选中与悬停:此时背景色会由于 overflow:hidden 完美适配 li 的圆角 */
.citizen-command-palette-list-item:hover,
.citizen-command-palette-list-item[aria-selected="true"] {
background-color: rgba(0, 0, 0, 0.05) !important;
}
/* --- 6. 垃圾桶按钮:去背景及粉红交互 --- */
/* 默认状态:彻底透明背景,保持占位 */
.citizen-command-palette-list-item__actions,
.citizen-command-palette-list-item__action {
background: transparent !important;
background-color: transparent !important;
border: none !important;
box-shadow: none !important;
min-width: 32px !important;
display: flex !important;
justify-content: center !important;
align-items: center !important;
margin-left: auto !important;
}
/* 恢复图标为原来的深色 (Citizen 默认的深蓝黑) */
.citizen-command-palette-list-item__action svg {
fill: #202122 !important; /* 强制使用深黑色,确保在灰色背景上清晰可见 */
opacity: 0.85 !important; /* 稍微带点透明,看起来更高级 */
transition: all 0.2s ease !important;
}
/* 悬停状态:浅粉色背景 + 变大红图标 */
.citizen-command-palette-list-item__action:hover {
background-color: rgba(255, 192, 203, 0.6) !important; /* 稍微加深粉色,更醒目 */
border-radius: 8px !important;
}
.citizen-command-palette-list-item__action:hover svg {
fill: #d33 !important; /* 悬停时变为明显的警告红 */
opacity: 1 !important;
transform: scale(1.15) !important; /* 稍微放大,增加点击欲望 */
}
/* --- 7. 搜索框与底部清理 --- */
.citizen-command-palette__search,
.citizen-command-palette__results,
.citizen-command-palette__footer,
.cdx-text-input__input {
background: transparent !important;
border: none !important;
box-shadow: none !important;
}
/* --- 8. 深色模式适配 --- */
html.skin-theme-clientpref-night .citizen-command-palette {
background-color: rgba(30, 30, 30, 0.8) !important;
}
html.skin-theme-clientpref-night .citizen-command-palette-list-item:hover,
html.skin-theme-clientpref-night .citizen-command-palette-list-item[aria-selected="true"] {
background-color: 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; }
}