MediaWiki:Common.css:修订间差异
跳转到导航
跳转到搜索
Maintenance script(留言 | 贡献) 黑顶栏淡紫内容区 |
Maintenance script(留言 | 贡献) 玻璃拟态 |
||
| 第1行: | 第1行: | ||
/* ===== 尘月维基 | /* ===== 尘月维基 玻璃拟态外观 ===== */ | ||
:root { | :root { | ||
--wiki-purple: #4b2e83; | --wiki-purple: #4b2e83; | ||
-- | --glass-bg: rgba(255, 255, 255, 0.55); | ||
-- | --glass-border: rgba(255, 255, 255, 0.65); | ||
} | } | ||
/* | /* 全页渐变背景(玻璃底色) */ | ||
body, | |||
.mw-page-container, | |||
#content, | |||
.mw-content-container { | |||
background: linear-gradient(135deg, #e9e3f8 0%, #f4effd 45%, #e4ecfb 100%) !important; | |||
background-attachment: fixed !important; | |||
} | |||
/* 顶栏:深色玻璃 */ | |||
.mw-header, | .mw-header, | ||
.vector-header-container { | .vector-header-container { | ||
background | background: rgba(27, 27, 27, 0.5) !important; | ||
-webkit-backdrop-filter: blur(16px) saturate(160%); | |||
backdrop-filter: blur(16px) saturate(160%); | |||
border-bottom: 1px solid rgba(255, 255, 255, 0.12); | |||
} | } | ||
.vector-header-container a, | .vector-header-container a, | ||
.mw-header a, | .mw-header a, | ||
.vector-header-container .vector-menu-heading { | .vector-header-container .vector-menu-heading { color: #fff !important; } | ||
} | |||
.vector-header-container a:hover { color: #cfc3ec !important; } | .vector-header-container a:hover { color: #cfc3ec !important; } | ||
.vector-search-box .cdx-text-input__input { color: #fff !important; } | .vector-search-box .cdx-text-input__input { color: #fff !important; } | ||
/* | /* 侧栏:白色玻璃 + 默认展开 */ | ||
#mw-panel, | #mw-panel, | ||
.vector-main-menu { | .vector-main-menu, | ||
background: | .vector-main-menu-drawer, | ||
.vector-main-menu-drawer-container { | |||
background: var(--glass-bg) !important; | |||
-webkit-backdrop-filter: blur(18px) saturate(160%); | |||
backdrop-filter: blur(18px) saturate(160%); | |||
border: 1px solid var(--glass-border); | |||
border-radius: 16px; | |||
box-shadow: 0 8px 30px rgba(75, 46, 131, 0.10); | |||
} | } | ||
@media (min-width: 1000px) { | |||
.vector-main-menu-drawer-container, | |||
.vector-menu- | .vector-main-menu-drawer { | ||
transform: none !important; | |||
visibility: visible !important; | |||
position: static !important; | |||
} | |||
} | } | ||
.vector-menu-heading { color: var(--wiki-purple); font-weight: 700; } | |||
/* | /* 顶部欢迎横幅:紫色玻璃 */ | ||
.site-banner { | .site-banner { | ||
display: flex; | display: flex; | ||
| 第44行: | 第57行: | ||
justify-content: space-between; | justify-content: space-between; | ||
gap: 18px; | gap: 18px; | ||
background: linear-gradient(135deg, | background: linear-gradient(135deg, rgba(75, 46, 131, 0.85), rgba(107, 78, 168, 0.68)) !important; | ||
-webkit-backdrop-filter: blur(12px); | |||
backdrop-filter: blur(12px); | |||
color: #fff; | color: #fff; | ||
border-radius: | border: 1px solid rgba(255, 255, 255, 0.28); | ||
padding: | border-radius: 18px; | ||
padding: 22px 28px; | |||
margin-bottom: 20px; | margin-bottom: 20px; | ||
box-shadow: 0 12px 36px rgba(75, 46, 131, 0.28); | |||
} | } | ||
.banner-text { flex: 1 1 auto; } | .banner-text { flex: 1 1 auto; } | ||
| 第61行: | 第78行: | ||
background-position: center; | background-position: center; | ||
border-radius: 50%; | border-radius: 50%; | ||
box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2); | |||
} | } | ||
/* | /* 板块:玻璃卡 + 紫玻璃标题(居中) */ | ||
.block { | .block { | ||
background: | background: var(--glass-bg) !important; | ||
border: 1px solid var(-- | -webkit-backdrop-filter: blur(16px) saturate(150%); | ||
border-radius: | backdrop-filter: blur(16px) saturate(150%); | ||
border: 1px solid var(--glass-border) !important; | |||
border-radius: 18px !important; | |||
overflow: hidden; | overflow: hidden; | ||
margin-bottom: 20px; | margin-bottom: 20px; | ||
box-shadow: 0 8px 30px rgba(75, 46, 131, 0.12); | |||
} | } | ||
.block-title { | .block-title { | ||
background: | background: linear-gradient(135deg, rgba(75, 46, 131, 0.88), rgba(107, 78, 168, 0.72)) !important; | ||
color: #fff; | color: #fff; | ||
text-align: center; | text-align: center; | ||
| 第78行: | 第99行: | ||
font-weight: 700; | font-weight: 700; | ||
letter-spacing: 2px; | letter-spacing: 2px; | ||
padding: | padding: 12px 0; | ||
border-bottom: 1px solid rgba(255, 255, 255, 0.18); | |||
} | } | ||
.block-body { padding: 18px 20px; line-height: 1.85; color: #333; } | |||
/* | /* 两列并排 */ | ||
.card-row { | .card-row { | ||
display: grid; | display: grid; | ||
| 第98行: | 第116行: | ||
} | } | ||
/* | /* 外观/参数设置等默认菜单:彻底隐藏,无入口按钮 */ | ||
#pt-preferences, | #pt-preferences, | ||
#pt-watchlist, | #pt-watchlist, | ||
#pt-mycontris, | #pt-mycontris, | ||
.vector-user-menu #pt-preferences { display: none !important; } | .vector-user-menu #pt-preferences, | ||
.vector-user-menu #pt-watchlist, | |||
.vector-user-menu #pt-mycontris { display: none !important; } | |||
/* 隐藏页脚 MediaWiki | /* 隐藏页脚 MediaWiki 品牌 */ | ||
#footer-poweredby, | #footer-poweredby, | ||
.mw-footer__content .footer-poweredby, | .mw-footer__content .footer-poweredby, | ||
#f-poweredbyimg { display: none !important; } | #f-poweredbyimg { display: none !important; } | ||
2026年10月31日 (六) 13:11的版本
/* ===== 尘月维基 玻璃拟态外观 ===== */
:root {
--wiki-purple: #4b2e83;
--glass-bg: rgba(255, 255, 255, 0.55);
--glass-border: rgba(255, 255, 255, 0.65);
}
/* 全页渐变背景(玻璃底色) */
body,
.mw-page-container,
#content,
.mw-content-container {
background: linear-gradient(135deg, #e9e3f8 0%, #f4effd 45%, #e4ecfb 100%) !important;
background-attachment: fixed !important;
}
/* 顶栏:深色玻璃 */
.mw-header,
.vector-header-container {
background: rgba(27, 27, 27, 0.5) !important;
-webkit-backdrop-filter: blur(16px) saturate(160%);
backdrop-filter: blur(16px) saturate(160%);
border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
.vector-header-container a,
.mw-header a,
.vector-header-container .vector-menu-heading { color: #fff !important; }
.vector-header-container a:hover { color: #cfc3ec !important; }
.vector-search-box .cdx-text-input__input { color: #fff !important; }
/* 侧栏:白色玻璃 + 默认展开 */
#mw-panel,
.vector-main-menu,
.vector-main-menu-drawer,
.vector-main-menu-drawer-container {
background: var(--glass-bg) !important;
-webkit-backdrop-filter: blur(18px) saturate(160%);
backdrop-filter: blur(18px) saturate(160%);
border: 1px solid var(--glass-border);
border-radius: 16px;
box-shadow: 0 8px 30px rgba(75, 46, 131, 0.10);
}
@media (min-width: 1000px) {
.vector-main-menu-drawer-container,
.vector-main-menu-drawer {
transform: none !important;
visibility: visible !important;
position: static !important;
}
}
.vector-menu-heading { color: var(--wiki-purple); font-weight: 700; }
/* 顶部欢迎横幅:紫色玻璃 */
.site-banner {
display: flex;
align-items: center;
justify-content: space-between;
gap: 18px;
background: linear-gradient(135deg, rgba(75, 46, 131, 0.85), rgba(107, 78, 168, 0.68)) !important;
-webkit-backdrop-filter: blur(12px);
backdrop-filter: blur(12px);
color: #fff;
border: 1px solid rgba(255, 255, 255, 0.28);
border-radius: 18px;
padding: 22px 28px;
margin-bottom: 20px;
box-shadow: 0 12px 36px rgba(75, 46, 131, 0.28);
}
.banner-text { flex: 1 1 auto; }
.banner-title { font-size: 28px; font-weight: 800; letter-spacing: 2px; }
.banner-sub { font-size: 14px; opacity: .92; margin-top: 8px; line-height: 1.7; }
.banner-logo {
flex: 0 0 auto;
width: 96px; height: 96px;
background-image: url(/logo.jpg);
background-size: contain;
background-repeat: no-repeat;
background-position: center;
border-radius: 50%;
box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}
/* 板块:玻璃卡 + 紫玻璃标题(居中) */
.block {
background: var(--glass-bg) !important;
-webkit-backdrop-filter: blur(16px) saturate(150%);
backdrop-filter: blur(16px) saturate(150%);
border: 1px solid var(--glass-border) !important;
border-radius: 18px !important;
overflow: hidden;
margin-bottom: 20px;
box-shadow: 0 8px 30px rgba(75, 46, 131, 0.12);
}
.block-title {
background: linear-gradient(135deg, rgba(75, 46, 131, 0.88), rgba(107, 78, 168, 0.72)) !important;
color: #fff;
text-align: center;
font-size: 18px;
font-weight: 700;
letter-spacing: 2px;
padding: 12px 0;
border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}
.block-body { padding: 18px 20px; line-height: 1.85; color: #333; }
/* 两列并排 */
.card-row {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 20px;
margin-bottom: 20px;
}
.card-row .block { margin-bottom: 0; }
@media (max-width: 700px) {
.card-row { grid-template-columns: 1fr; }
}
/* 外观/参数设置等默认菜单:彻底隐藏,无入口按钮 */
#pt-preferences,
#pt-watchlist,
#pt-mycontris,
.vector-user-menu #pt-preferences,
.vector-user-menu #pt-watchlist,
.vector-user-menu #pt-mycontris { display: none !important; }
/* 隐藏页脚 MediaWiki 品牌 */
#footer-poweredby,
.mw-footer__content .footer-poweredby,
#f-poweredbyimg { display: none !important; }