MediaWiki:Common.css:修订间差异

来自尘月维基
跳转到导航 跳转到搜索
Maintenance script​(留言 | 贡献)
站点紫主题框架样式
Maintenance script​(留言 | 贡献)
紫主题顶栏
第31行: 第31行:
.vector-dropdown .vector-menu-content a:hover {
.vector-dropdown .vector-menu-content a:hover {
background: var(--wiki-purple-light);
background: var(--wiki-purple-light);
}
/* 顶部导航条紫主题(仿深色顶栏) */
.mw-header,
.vector-header-container {
background-color: var(--wiki-purple) !important;
}
.vector-header-container a,
.mw-header a,
.vector-header-container .vector-menu-heading,
.vector-search-box .cdx-text-input__input {
color: #fff !important;
}
.vector-header-container a:hover {
color: #e7e0f5 !important;
}
}

2026年10月31日 (六) 12:41的版本

/* ===== 站点框架样式(轻量紫主题) ===== */
:root {
	--wiki-purple: #4b2e83;
	--wiki-purple-light: #faf8ff;
	--wiki-purple-border: #e7e0f5;
}

/* 侧边栏分组标题 */
#mw-panel .vector-menu-heading,
.vector-menu-heading {
	color: var(--wiki-purple);
	font-weight: 700;
}

/* 首页板块卡片 */
.front-block {
	background: var(--wiki-purple-light);
	border: 1px solid var(--wiki-purple-border);
	border-radius: 10px;
	padding: 18px 22px;
	margin: 16px 0;
	line-height: 1.9;
}
.front-block dt {
	font-weight: 700;
	color: var(--wiki-purple);
	margin-top: 8px;
}

/* 顶部导航 hover 微调 */
.vector-dropdown .vector-menu-content a:hover {
	background: var(--wiki-purple-light);
}

/* 顶部导航条紫主题(仿深色顶栏) */
.mw-header,
.vector-header-container {
	background-color: var(--wiki-purple) !important;
}
.vector-header-container a,
.mw-header a,
.vector-header-container .vector-menu-heading,
.vector-search-box .cdx-text-input__input {
	color: #fff !important;
}
.vector-header-container a:hover {
	color: #e7e0f5 !important;
}