|
|
| 第1行: |
第1行: |
| /* ===== 尘月维基 · Vector 经典皮肤 ===== */ | | /* ===== 尘月维基 · Vector 经典皮肤(对齐参考站) ===== |
| :root {
| | 参考站本身几乎没有自定义 CSS,外观全部由首页内联样式表格实现。 |
| --wiki-purple: #6b3fa0;
| | 这里只做三件事:中文字体、站标尺寸、去点击虚线框。 |
| --wiki-purple-deep: #5a2f8f;
| | */ |
| --wiki-border: #e0d5f0;
| |
| --bar-h: 3.2em;
| |
| --panel-w: 11em;
| |
| }
| |
|
| |
|
| body { | | body { |
| background: #ffffff !important;
| | font-family: -apple-system, "Segoe UI", "Microsoft YaHei", "PingFang SC", "Helvetica Neue", Arial, sans-serif; |
| 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;
| |
| } | | } |
|
| |
|
| /* ===== 左侧栏 ===== */ | | /* 站标:左侧栏顶部,10em 宽、等比不拉伸 */ |
| #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 { | | #p-logo a.mw-wiki-logo { |
| display: block !important; | | display: block; |
| width: 34px !important; | | width: 10em; |
| height: 34px !important; | | height: 8em; |
| margin: calc((var(--bar-h) - 34px) / 2) 10px !important;
| | background-image: url(/logo.jpg); |
| background-image: url(/logo.jpg) !important; | | background-repeat: no-repeat; |
| background-size: contain !important; | | background-position: center center; |
| background-position: center !important; | | background-size: contain; |
| 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 { | | #content { |
| margin-left: var(--panel-w) !important; | | min-height: 60vh; |
| 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 { | | .mw-parser-output table img { |
| background: #ffffff !important;
| | max-width: 100%; |
| border: 1px solid var(--wiki-border) !important;
| | height: auto; |
| 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 {
| | a:focus { |
| display: grid; | | outline: none; |
| grid-template-columns: 1fr 1fr;
| |
| gap: 16px;
| |
| margin-bottom: 16px;
| |
| } | | } |
| .card-row .block { margin-bottom: 0; }
| |