MediaWiki:Common.css:修订间差异
跳转到导航
跳转到搜索
Maintenance script(留言 | 贡献) 尘月维基紫主题框架 |
Maintenance script(留言 | 贡献) 黑顶栏淡紫内容区 |
||
| 第1行: | 第1行: | ||
/* ===== 尘月维基 | /* ===== 尘月维基 外观(对齐截图:黑顶栏 / 白侧栏 / 淡紫内容区 / 紫标题白卡居中) ===== */ | ||
:root { | :root { | ||
--wiki-purple: #4b2e83; | --wiki-purple: #4b2e83; | ||
--wiki-purple-border: #e7e0f5; | --wiki-purple-border: #e7e0f5; | ||
--wiki-content-bg: #f4effd; | |||
} | } | ||
/* | /* 顶部导航条:黑色背景(仿截图黑顶栏) */ | ||
.mw-header, | .mw-header, | ||
.vector-header-container { | .vector-header-container { | ||
background-color: | background-color: #1b1b1b !important; | ||
} | } | ||
.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; | color: #fff !important; | ||
} | } | ||
.vector-header-container a:hover { | .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::placeholder { color: #bdbdbd !important; } | |||
/* 内容区淡紫背景 */ | |||
.mw-page-container, | |||
#content, | |||
.mw-content-container { | |||
background: var(--wiki-content-bg) !important; | |||
} | |||
/* 侧边栏保持白色 */ | |||
#mw-panel, | |||
.vector-main-menu { | |||
background: #ffffff !important; | |||
} | } | ||
/* | /* 侧边栏分组标题紫 */ | ||
.vector-menu-heading { | |||
color: var(--wiki-purple); | |||
font-weight: 700; | |||
} | |||
/* 顶部欢迎横幅(紫渐变 + 右侧熊猫头) */ | |||
.site-banner { | .site-banner { | ||
display: flex; | display: flex; | ||
| 第86行: | 第97行: | ||
.card-row { grid-template-columns: 1fr; } | .card-row { grid-template-columns: 1fr; } | ||
} | } | ||
/* ===== 删除「外观 / 参数设置」等默认菜单入口 ===== */ | |||
#pt-preferences, | |||
#pt-watchlist, | |||
#pt-mycontris, | |||
.vector-user-menu #pt-preferences { display: none !important; } | |||
/* 隐藏页脚 MediaWiki 默认品牌文字 */ | /* 隐藏页脚 MediaWiki 默认品牌文字 */ | ||
#footer-poweredby, | #footer-poweredby, | ||
.mw-footer__content .footer-poweredby, | .mw-footer__content .footer-poweredby, | ||
#f-poweredbyimg { display: none; } | #f-poweredbyimg { display: none !important; } | ||
2026年10月31日 (六) 13:07的版本
/* ===== 尘月维基 外观(对齐截图:黑顶栏 / 白侧栏 / 淡紫内容区 / 紫标题白卡居中) ===== */
:root {
--wiki-purple: #4b2e83;
--wiki-purple-border: #e7e0f5;
--wiki-content-bg: #f4effd;
}
/* 顶部导航条:黑色背景(仿截图黑顶栏) */
.mw-header,
.vector-header-container {
background-color: #1b1b1b !important;
}
.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; }
.vector-search-box .cdx-text-input__input::placeholder { color: #bdbdbd !important; }
/* 内容区淡紫背景 */
.mw-page-container,
#content,
.mw-content-container {
background: var(--wiki-content-bg) !important;
}
/* 侧边栏保持白色 */
#mw-panel,
.vector-main-menu {
background: #ffffff !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, #4b2e83, #6b4ea8);
color: #fff;
border-radius: 10px;
padding: 20px 26px;
margin-bottom: 20px;
}
.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%;
}
/* 板块(公告 / 万恶之源 / 各栏目)—— 标题居中 */
.block {
background: #fff;
border: 1px solid var(--wiki-purple-border);
border-radius: 10px;
overflow: hidden;
margin-bottom: 20px;
}
.block-title {
background: var(--wiki-purple);
color: #fff;
text-align: center;
font-size: 18px;
font-weight: 700;
letter-spacing: 2px;
padding: 11px 0;
}
.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 { display: none !important; }
/* 隐藏页脚 MediaWiki 默认品牌文字 */
#footer-poweredby,
.mw-footer__content .footer-poweredby,
#f-poweredbyimg { display: none !important; }