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,
html,
body {
background: linear-gradient(135deg, #d9c9f3 0%, #efe9fc 45%, #cfe1f9 100%) !important;
background-attachment: fixed !important;
background-repeat: no-repeat !important;
min-height: 100%;
}
 
/* 所有中间容器透明,让渐变透上来(否则白底盖住玻璃) */
.mw-page-container,
.mw-page-container,
.mw-page-container-inner,
.mw-body,
.mw-body-content,
#content,
#content,
.mw-content-container {
.mw-content-container,
background: linear-gradient(135deg, #e9e3f8 0%, #f4effd 45%, #e4ecfb 100%) !important;
.mw-article-container,
background-attachment: fixed !important;
.vector-page-titlebar,
.mw-body-header {
background: transparent !important;
box-shadow: none !important;
}
}


第18行: 第30行:
.mw-header,
.mw-header,
.vector-header-container {
.vector-header-container {
background: rgba(27, 27, 27, 0.5) !important;
background: rgba(27, 27, 27, 0.55) !important;
-webkit-backdrop-filter: blur(16px) saturate(160%);
-webkit-backdrop-filter: blur(18px) saturate(170%);
backdrop-filter: blur(16px) saturate(160%);
backdrop-filter: blur(18px) saturate(170%);
border-bottom: 1px solid rgba(255, 255, 255, 0.12);
border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}
}
.vector-header-container a,
.vector-header-container a,
第34行: 第46行:
.vector-main-menu-drawer,
.vector-main-menu-drawer,
.vector-main-menu-drawer-container {
.vector-main-menu-drawer-container {
background: var(--glass-bg) !important;
background: rgba(255, 255, 255, 0.5) !important;
-webkit-backdrop-filter: blur(18px) saturate(160%);
-webkit-backdrop-filter: blur(20px) saturate(160%);
backdrop-filter: blur(18px) saturate(160%);
backdrop-filter: blur(20px) saturate(160%);
border: 1px solid var(--glass-border);
border: 1px solid rgba(255, 255, 255, 0.7);
border-radius: 16px;
border-radius: 16px;
box-shadow: 0 8px 30px rgba(75, 46, 131, 0.10);
box-shadow: 0 8px 30px rgba(75, 46, 131, 0.12);
}
}
@media (min-width: 1000px) {
@media (min-width: 1000px) {
第51行: 第63行:
.vector-menu-heading { color: var(--wiki-purple); font-weight: 700; }
.vector-menu-heading { color: var(--wiki-purple); font-weight: 700; }


/* 顶部欢迎横幅:紫色玻璃 */
/* 横幅:紫色玻璃 */
.site-banner {
.site-banner {
display: flex;
display: flex;
第57行: 第69行:
justify-content: space-between;
justify-content: space-between;
gap: 18px;
gap: 18px;
background: linear-gradient(135deg, rgba(75, 46, 131, 0.85), rgba(107, 78, 168, 0.68)) !important;
background: linear-gradient(135deg, rgba(75, 46, 131, 0.86), rgba(107, 78, 168, 0.7)) !important;
-webkit-backdrop-filter: blur(12px);
-webkit-backdrop-filter: blur(14px);
backdrop-filter: blur(12px);
backdrop-filter: blur(14px);
color: #fff;
color: #fff;
border: 1px solid rgba(255, 255, 255, 0.28);
border: 1px solid rgba(255, 255, 255, 0.3);
border-radius: 18px;
border-radius: 20px;
padding: 22px 28px;
padding: 22px 28px;
margin-bottom: 20px;
margin-bottom: 20px;
box-shadow: 0 12px 36px rgba(75, 46, 131, 0.28);
box-shadow: 0 14px 40px rgba(75, 46, 131, 0.3);
}
}
.banner-text { flex: 1 1 auto; }
.banner-text { flex: 1 1 auto; }
第81行: 第93行:
}
}


/* 板块:玻璃卡 + 紫玻璃标题(居中) */
/* 板块卡片:玻璃拟态(半透明 + 模糊 + 高光边框 + 柔影) */
.block {
.block {
background: var(--glass-bg) !important;
background: rgba(255, 255, 255, 0.4) !important;
-webkit-backdrop-filter: blur(16px) saturate(150%);
-webkit-backdrop-filter: blur(20px) saturate(180%);
backdrop-filter: blur(16px) saturate(150%);
backdrop-filter: blur(20px) saturate(180%);
border: 1px solid var(--glass-border) !important;
border: 1px solid rgba(255, 255, 255, 0.75) !important;
border-radius: 18px !important;
border-radius: 20px !important;
overflow: hidden;
overflow: hidden;
margin-bottom: 20px;
margin-bottom: 20px;
box-shadow: 0 8px 30px rgba(75, 46, 131, 0.12);
box-shadow: 0 12px 38px rgba(75, 46, 131, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.6);
}
}
.block-title {
.block-title {
background: linear-gradient(135deg, rgba(75, 46, 131, 0.88), rgba(107, 78, 168, 0.72)) !important;
background: linear-gradient(135deg, rgba(75, 46, 131, 0.9), rgba(107, 78, 168, 0.75)) !important;
color: #fff;
color: #fff;
text-align: center;
text-align: center;
第100行: 第112行:
letter-spacing: 2px;
letter-spacing: 2px;
padding: 12px 0;
padding: 12px 0;
border-bottom: 1px solid rgba(255, 255, 255, 0.18);
border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}
}
.block-body { padding: 18px 20px; line-height: 1.85; color: #333; }
.block-body { padding: 18px 20px; line-height: 1.85; color: #2b2b2b; }


/* 两列并排 */
/* 两列并排 */

2026年10月31日 (六) 13:14的版本

/* ===== 尘月维基 玻璃拟态(重点:板块卡片) ===== */
:root {
	--wiki-purple: #4b2e83;
}

/* 明显的紫蓝渐变背景(玻璃要有底色才看得出) */
html,
body {
	background: linear-gradient(135deg, #d9c9f3 0%, #efe9fc 45%, #cfe1f9 100%) !important;
	background-attachment: fixed !important;
	background-repeat: no-repeat !important;
	min-height: 100%;
}

/* 所有中间容器透明,让渐变透上来(否则白底盖住玻璃) */
.mw-page-container,
.mw-page-container-inner,
.mw-body,
.mw-body-content,
#content,
.mw-content-container,
.mw-article-container,
.vector-page-titlebar,
.mw-body-header {
	background: transparent !important;
	box-shadow: none !important;
}

/* 顶栏:深色玻璃 */
.mw-header,
.vector-header-container {
	background: rgba(27, 27, 27, 0.55) !important;
	-webkit-backdrop-filter: blur(18px) saturate(170%);
	backdrop-filter: blur(18px) saturate(170%);
	border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}
.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: rgba(255, 255, 255, 0.5) !important;
	-webkit-backdrop-filter: blur(20px) saturate(160%);
	backdrop-filter: blur(20px) saturate(160%);
	border: 1px solid rgba(255, 255, 255, 0.7);
	border-radius: 16px;
	box-shadow: 0 8px 30px rgba(75, 46, 131, 0.12);
}
@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.86), rgba(107, 78, 168, 0.7)) !important;
	-webkit-backdrop-filter: blur(14px);
	backdrop-filter: blur(14px);
	color: #fff;
	border: 1px solid rgba(255, 255, 255, 0.3);
	border-radius: 20px;
	padding: 22px 28px;
	margin-bottom: 20px;
	box-shadow: 0 14px 40px rgba(75, 46, 131, 0.3);
}
.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: rgba(255, 255, 255, 0.4) !important;
	-webkit-backdrop-filter: blur(20px) saturate(180%);
	backdrop-filter: blur(20px) saturate(180%);
	border: 1px solid rgba(255, 255, 255, 0.75) !important;
	border-radius: 20px !important;
	overflow: hidden;
	margin-bottom: 20px;
	box-shadow: 0 12px 38px rgba(75, 46, 131, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.6);
}
.block-title {
	background: linear-gradient(135deg, rgba(75, 46, 131, 0.9), rgba(107, 78, 168, 0.75)) !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.2);
}
.block-body { padding: 18px 20px; line-height: 1.85; color: #2b2b2b; }

/* 两列并排 */
.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; }