MediaWiki:Common.css:修订间差异
跳转到导航
跳转到搜索
无编辑摘要 标签:手工回退 |
无编辑摘要 |
||
| 第1行: | 第1行: | ||
/* ===== 尘月维基 · | /* ===== 尘月维基 · Vector 经典皮肤 ===== */ | ||
:root { | :root { | ||
--wiki-purple: #6b3fa0; | --wiki-purple: #6b3fa0; | ||
--wiki-purple-deep: #5a2f8f; | --wiki-purple-deep: #5a2f8f; | ||
--wiki-border: #e0d5f0; | --wiki-border: #e0d5f0; | ||
--bar-h: 3.2em; | |||
--panel-w: 11em; | |||
} | } | ||
body { | |||
body | |||
background: #ffffff !important; | background: #ffffff !important; | ||
font-family: -apple-system, "Segoe UI", "Microsoft YaHei", "PingFang SC", sans-serif; | |||
min-width: 1000px; | |||
} | } | ||
/* | /* ===== 顶部黑条 ===== */ | ||
#mw- | #mw-page-base { background: #ffffff !important; height: 0 !important; } | ||
#mw-head-base { | |||
background: #141414 !important; | |||
height: var(--bar-h) !important; | |||
margin-left: var(--panel-w) !important; | |||
border: none !important; | |||
} | } | ||
#mw-head { | |||
#mw- | |||
background: #141414 !important; | background: #141414 !important; | ||
height: var(--bar-h) !important; | |||
} | } | ||
#mw- | #mw-head a, | ||
#mw- | #mw-head a span, | ||
#p-personal a { color: #ffffff !important; } | |||
#p-personal { top: 0.55em !important; } | |||
#p-personal | |||
# | |||
/* | /* 顶部标签页(首页 / 讨论) */ | ||
# | #left-navigation, #right-navigation { top: 0.55em !important; } | ||
# | #left-navigation .vector-menu-tabs, | ||
background: | #right-navigation .vector-menu-tabs, | ||
#left-navigation .vector-menu-tabs a, | |||
#right-navigation .vector-menu-tabs a, | |||
.vector-menu-tabs .selected a { | |||
background: none !important; | |||
border: none !important; | border: none !important; | ||
color: #ffffff !important; | |||
text-shadow: none !important; | |||
} | } | ||
/* | /* 搜索 */ | ||
#p- | #p-search { top: 0.5em !important; } | ||
#searchInput { | |||
background: #ffffff !important; | |||
border: 1px solid #555555 !important; | |||
color: #222222 !important; | |||
} | |||
/* | /* ===== 左侧栏 ===== */ | ||
#mw- | #mw-panel { | ||
width: var(--panel-w) !important; | |||
background: #ffffff !important; | |||
padding-top: calc(var(--bar-h) + 0.7em) !important; | |||
} | |||
#p-logo { | |||
position: absolute !important; | |||
top: 0 !important; | |||
left: 0 !important; | |||
width: var(--panel-w) !important; | |||
height: var(--bar-h) !important; | |||
background: #141414 !important; | |||
margin: 0 !important; | |||
} | |||
#p-logo a.mw-wiki-logo { | |||
display: block !important; | |||
width: 34px !important; | |||
height: 34px !important; | |||
margin: calc((var(--bar-h) - 34px) / 2) 10px !important; | |||
background-image: url(/logo.jpg) !important; | |||
background-size: contain !important; | |||
background-position: center !important; | |||
background-repeat: no-repeat !important; | |||
border-radius: 5px !important; | |||
} | |||
#mw-panel .portal { | |||
# | position: static !important; | ||
width: auto !important; | |||
margin: 0 0 0.9em 0 !important; | |||
padding: 0 10px !important; | |||
border: none !important; | |||
} | |||
#mw- | #mw-panel h3.vector-menu-heading { | ||
. | font-size: 12px !important; | ||
font-weight: 700 !important; | |||
color: var(--wiki-purple-deep) !important; | color: var(--wiki-purple-deep) !important; | ||
border-bottom: 1px solid var(--wiki-border) !important; | border-bottom: 1px solid var(--wiki-border) !important; | ||
padding-bottom: 4px !important; | |||
margin: 0 0 6px 0 !important; | |||
} | } | ||
#mw-panel ul { margin: 0 !important; padding: 0 !important; list-style: none !important; } | |||
#mw-panel li { margin: 0 !important; line-height: 1.9 !important; } | |||
#mw-panel li a { | |||
font-size: 12px !important; | |||
color: var(--wiki-purple) !important; | |||
white-space: nowrap; | |||
} | |||
/* ===== 内容区 ===== */ | |||
#content { | |||
margin-left: var(--panel-w) !important; | |||
border: none !important; | |||
background: #ffffff !important; | |||
padding: 1em 1.6em 1.5em 1.6em !important; | |||
box-shadow: none !important; | |||
color: #222222 !important; | |||
} | |||
#firstHeading, | |||
h1.firstHeading { | |||
border-bottom: 1px solid #e6e6e6 !important; | |||
font-weight: 500 !important; | |||
color: #222222 !important; | |||
margin-bottom: 6px !important; | |||
} | |||
#mw-normal-catlinks { display: none !important; } | |||
#siteSub { display: none !important; } | |||
/* ===== 页脚 ===== */ | |||
#footer { | |||
margin-left: var(--panel-w) !important; | |||
background: #ffffff !important; | |||
border-top: 1px solid #eeeeee !important; | |||
color: #777777 !important; | |||
} | |||
#footer a { color: var(--wiki-purple) !important; } | |||
#footer-icons { display: none !important; } | |||
/* ===== 隐藏多余入口 ===== */ | |||
#p-lang, | |||
.mw-portlet-otherlanguages, | |||
#p-variants, | |||
#pt-watchlist, | |||
#pt-mycontris { display: none !important; } | |||
/* | /* ===== 首页横幅 ===== */ | ||
.site-banner { | .site-banner { | ||
display: flex; | display: flex; | ||
| 第81行: | 第145行: | ||
gap: 16px; | gap: 16px; | ||
background: var(--wiki-purple) !important; | background: var(--wiki-purple) !important; | ||
color: # | color: #ffffff; | ||
border-radius: | border-radius: 6px !important; | ||
padding: | padding: 14px 20px; | ||
margin-bottom: 16px; | margin-bottom: 16px; | ||
box-shadow: 0 3px 12px rgba(90, 47, 143, 0.20); | box-shadow: 0 3px 12px rgba(90, 47, 143, 0.20); | ||
} | } | ||
.banner-text { flex: 1 1 auto; } | .banner-text { flex: 1 1 auto; } | ||
.banner-title { font-size: | .banner-title { font-size: 22px; font-weight: 700; line-height: 1.3; } | ||
.banner-sub { font-size: | .banner-sub { font-size: 12.5px; opacity: .95; margin-top: 5px; line-height: 1.6; } | ||
.banner-logo { | .banner-logo { | ||
flex: 0 0 auto; | flex: 0 0 auto; | ||
width: | width: 66px; height: 66px; | ||
background-image: url(/logo.jpg); | background-image: url(/logo.jpg); | ||
background-size: contain; | background-size: contain; | ||
background-repeat: no-repeat; | background-repeat: no-repeat; | ||
background-position: center; | background-position: center; | ||
} | } | ||
/* | /* ===== 板块卡片 ===== */ | ||
.block { | .block { | ||
background: #ffffff !important; | background: #ffffff !important; | ||
border: 1px solid var(--wiki-border) !important; | border: 1px solid var(--wiki-border) !important; | ||
border-radius: | border-radius: 6px !important; | ||
overflow: hidden; | overflow: hidden; | ||
margin-bottom: 16px; | margin-bottom: 16px; | ||
| 第110行: | 第173行: | ||
color: #222222; | color: #222222; | ||
} | } | ||
.block-title { | .block-title { | ||
background: var(--wiki-purple) !important; | background: var(--wiki-purple) !important; | ||
color: #ffffff; | color: #ffffff; | ||
text-align: center; | text-align: center; | ||
font-size: | font-size: 15px; | ||
font-weight: 700; | font-weight: 700; | ||
letter-spacing: 1px; | letter-spacing: 1px; | ||
padding: | padding: 9px 0; | ||
border-radius: 5px 5px 0 0; | |||
border-radius: | |||
} | } | ||
.block-body { | .block-body { | ||
padding: 16px | padding: 14px 16px; | ||
line-height: 1.8; | line-height: 1.8; | ||
color: #333333; | color: #333333; | ||
background: #ffffff; | background: #ffffff; | ||
font-size: 13.5px; | |||
} | } | ||
.mw-parser-output p { margin: 0 0 10px 0; line-height: 1.85; } | |||
.mw-parser-output p:last-child { margin-bottom: 0; } | |||
/* | /* 两列并排 */ | ||
.card-row { | .card-row { | ||
display: grid; | display: grid; | ||
| 第139行: | 第201行: | ||
} | } | ||
.card-row .block { margin-bottom: 0; } | .card-row .block { margin-bottom: 0; } | ||
2026年10月31日 (六) 14:19的版本
/* ===== 尘月维基 · Vector 经典皮肤 ===== */
:root {
--wiki-purple: #6b3fa0;
--wiki-purple-deep: #5a2f8f;
--wiki-border: #e0d5f0;
--bar-h: 3.2em;
--panel-w: 11em;
}
body {
background: #ffffff !important;
font-family: -apple-system, "Segoe UI", "Microsoft YaHei", "PingFang SC", sans-serif;
min-width: 1000px;
}
/* ===== 顶部黑条 ===== */
#mw-page-base { background: #ffffff !important; height: 0 !important; }
#mw-head-base {
background: #141414 !important;
height: var(--bar-h) !important;
margin-left: var(--panel-w) !important;
border: none !important;
}
#mw-head {
background: #141414 !important;
height: var(--bar-h) !important;
}
#mw-head a,
#mw-head a span,
#p-personal a { color: #ffffff !important; }
#p-personal { top: 0.55em !important; }
/* 顶部标签页(首页 / 讨论) */
#left-navigation, #right-navigation { top: 0.55em !important; }
#left-navigation .vector-menu-tabs,
#right-navigation .vector-menu-tabs,
#left-navigation .vector-menu-tabs a,
#right-navigation .vector-menu-tabs a,
.vector-menu-tabs .selected a {
background: none !important;
border: none !important;
color: #ffffff !important;
text-shadow: none !important;
}
/* 搜索 */
#p-search { top: 0.5em !important; }
#searchInput {
background: #ffffff !important;
border: 1px solid #555555 !important;
color: #222222 !important;
}
/* ===== 左侧栏 ===== */
#mw-panel {
width: var(--panel-w) !important;
background: #ffffff !important;
padding-top: calc(var(--bar-h) + 0.7em) !important;
}
#p-logo {
position: absolute !important;
top: 0 !important;
left: 0 !important;
width: var(--panel-w) !important;
height: var(--bar-h) !important;
background: #141414 !important;
margin: 0 !important;
}
#p-logo a.mw-wiki-logo {
display: block !important;
width: 34px !important;
height: 34px !important;
margin: calc((var(--bar-h) - 34px) / 2) 10px !important;
background-image: url(/logo.jpg) !important;
background-size: contain !important;
background-position: center !important;
background-repeat: no-repeat !important;
border-radius: 5px !important;
}
#mw-panel .portal {
position: static !important;
width: auto !important;
margin: 0 0 0.9em 0 !important;
padding: 0 10px !important;
border: none !important;
}
#mw-panel h3.vector-menu-heading {
font-size: 12px !important;
font-weight: 700 !important;
color: var(--wiki-purple-deep) !important;
border-bottom: 1px solid var(--wiki-border) !important;
padding-bottom: 4px !important;
margin: 0 0 6px 0 !important;
}
#mw-panel ul { margin: 0 !important; padding: 0 !important; list-style: none !important; }
#mw-panel li { margin: 0 !important; line-height: 1.9 !important; }
#mw-panel li a {
font-size: 12px !important;
color: var(--wiki-purple) !important;
white-space: nowrap;
}
/* ===== 内容区 ===== */
#content {
margin-left: var(--panel-w) !important;
border: none !important;
background: #ffffff !important;
padding: 1em 1.6em 1.5em 1.6em !important;
box-shadow: none !important;
color: #222222 !important;
}
#firstHeading,
h1.firstHeading {
border-bottom: 1px solid #e6e6e6 !important;
font-weight: 500 !important;
color: #222222 !important;
margin-bottom: 6px !important;
}
#mw-normal-catlinks { display: none !important; }
#siteSub { display: none !important; }
/* ===== 页脚 ===== */
#footer {
margin-left: var(--panel-w) !important;
background: #ffffff !important;
border-top: 1px solid #eeeeee !important;
color: #777777 !important;
}
#footer a { color: var(--wiki-purple) !important; }
#footer-icons { display: none !important; }
/* ===== 隐藏多余入口 ===== */
#p-lang,
.mw-portlet-otherlanguages,
#p-variants,
#pt-watchlist,
#pt-mycontris { display: none !important; }
/* ===== 首页横幅 ===== */
.site-banner {
display: flex;
align-items: center;
justify-content: space-between;
gap: 16px;
background: var(--wiki-purple) !important;
color: #ffffff;
border-radius: 6px !important;
padding: 14px 20px;
margin-bottom: 16px;
box-shadow: 0 3px 12px rgba(90, 47, 143, 0.20);
}
.banner-text { flex: 1 1 auto; }
.banner-title { font-size: 22px; font-weight: 700; line-height: 1.3; }
.banner-sub { font-size: 12.5px; opacity: .95; margin-top: 5px; line-height: 1.6; }
.banner-logo {
flex: 0 0 auto;
width: 66px; height: 66px;
background-image: url(/logo.jpg);
background-size: contain;
background-repeat: no-repeat;
background-position: center;
}
/* ===== 板块卡片 ===== */
.block {
background: #ffffff !important;
border: 1px solid var(--wiki-border) !important;
border-radius: 6px !important;
overflow: hidden;
margin-bottom: 16px;
box-shadow: 0 3px 10px rgba(80, 45, 135, 0.14);
color: #222222;
}
.block-title {
background: var(--wiki-purple) !important;
color: #ffffff;
text-align: center;
font-size: 15px;
font-weight: 700;
letter-spacing: 1px;
padding: 9px 0;
border-radius: 5px 5px 0 0;
}
.block-body {
padding: 14px 16px;
line-height: 1.8;
color: #333333;
background: #ffffff;
font-size: 13.5px;
}
.mw-parser-output p { margin: 0 0 10px 0; line-height: 1.85; }
.mw-parser-output p:last-child { margin-bottom: 0; }
/* 两列并排 */
.card-row {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 16px;
margin-bottom: 16px;
}
.card-row .block { margin-bottom: 0; }