MediaWiki:Vector-2022.css:修订间差异
外观
![]() OctoberSama(留言 | 贡献) 小 |
|
(未显示2个用户的4个中间版本) | |
(没有差异)
|
2025年6月7日 (六) 18:53的最新版本
/* ========================================================= * 正文阅读排版 * ======================================================= */ .subpageNavigation { background-color: var(--background-color-neutral); display: table; border-bottom: 1px dotted #a2a9b1; box-sizing: border-box; /* line-height: 1.2; */ width: 100%; clear: both; overflow: auto; padding: 4px; margin-bottom: 1.5em; } body, #mw-content-text, .mw-body-content { font-family: "WenKai", "Merriweather", serif, "Songti SC", "Noto Serif CJK SC"; font-size: 16px; line-height: 1.75; color: var(--color-base); word-break: break-word; overflow-wrap: break-word; /* 旧 Safari / Edge */ text-rendering: optimizeLegibility; } .mw-prefs-tabs-wrapper.oo-ui-panelLayout-framed, .mw-prefs-tabs > .oo-ui-menuLayout-content > .oo-ui-indexLayout-stackLayout > .oo-ui-tabPanelLayout { border-color: var(--border-color-subtle,#c8ccd1); background-color: var(--background-color-base); } /* ========================================================= * 站点页眉 / LOGO(Vector 皮肤) * ======================================================= */ .vector-page-titlebar { position: relative; display: flex; flex-wrap: nowrap; justify-content: flex-end; align-items: center; background-color: rgba(var(--background-color-rgb),0.9); border-radius: 4px 4px 0 0; padding-top: 12px; padding-left: 14px; padding-right:14px; padding-bottom: 12px; } .vector-sticky-pinned-container { overflow: hidden auto; position: sticky; margin-top: 24px; margin-left: 12px; box-sizing: border-box; max-height: calc(100vh - (24px * 2)); padding-top: 16px; background-color: var(--background-color-base); border-radius: 5px; } .vector-pinned-container { background-color: var(--background-color-base,#fff); padding: 0 16px; margin-bottom: 0em; } .skin-vector .mw-header { background-image: url("https://wiki.ottohub.cn/images/a/a9/Th20_Front00.png"); background-repeat: no-repeat; background-size: cover; } .mw-page-container { background-image: url("https://wiki.ottohub.cn/images/b/b8/Th20_eff_switchbg.png"); } #bodyContent{ background-color: rgba(var(--background-color-rgb),0.9); padding-right:16px; padding-left:16px; padding-top:16px; padding-bottom:2px; border-radius: 0 0 4px 4px; } .vector-page-toolbar{ min-height: 5px; background-color: rgba(var(--background-color-rgb),0.9); padding-right:12px; padding-left:12px; } .vector-pinned-container,.vector-column-end{ border-radius: 5px; } #vector-main-menu-pinned-container { right: 12px; padding-top: 16px; padding-bottom: 8px; background-color:var(--background-color-base); } .skin-vector .mw-logo { background-color: rgba(255, 255, 255, 0.60); border-radius: 4px; padding: 0 20px 0 10px; } .skin-vector .mw-body-header, #p-logo-text, .vector-header { font-family: "FOT-Rodin Pro", "WenKai", serif; font-weight: bold; } .cn-notice { background-color: rgba(var(--background-color-rgb), 0.80); border-radius: 4px; } .cn-contents { background-color: rgba(var(--background-color-rgb), 0.80); border-radius: 4px; } /* ========================================================= * 搜索框(Vector & Monobook) * ======================================================= */ input[type="search"], input[type="text"], .vector-search-box-input, #searchInput { font-family: "WenKai", serif; /* 只用一种字体避免中英割裂 */ font-size: 14px; /* 不要太大,防止高度被裁 */ line-height: 1; /* 光标垂直居中 */ } /* 占位符样式 */ #searchInput::placeholder, .vector-search-box-input::placeholder { font-family: "WenKai", serif; color: #999; } /* ========================================================= * 分类栏、注释脚注 * ======================================================= */ .catlinks, .mw-references { font-size: 0.9em; opacity: 0.85; } /* 全局细线滚动条样式 */ ::-webkit-scrollbar { width: 6px; /* 纵向滚动条宽度 */ height: 6px; /* 横向滚动条高度 */ } ::-webkit-scrollbar-thumb { background: rgba(0,0,0,0.2); /* 滚动条滑块颜色 */ border-radius: 3px; /* 滚动条滑块圆角 */ } ::-webkit-scrollbar-track { background: transparent; /* 滚动条轨道背景 */ } /* Firefox 支持 */ * { scrollbar-width: thin; /* 滚动条宽度 */ scrollbar-color: rgba(0,0,0,0.2) transparent;/* 滚动条颜色 */ } /* 黑幕相关 */ .heimu, .heimu rt{ background-color:#252525; } .heimu, .heimu a, a .heimu, a.new .heimu, span.heimu a.new, span.heimu a.external, span.heimu a.external:visited, span.heimu a.extiw, span.heimu a.extiw:visited, span.heimu a.mw-disambig, span.heimu a.mw-redirect{ transition:color 0.13s linear; color:#252525; text-shadow:none; } span.heimu:hover, span.heimu:active{ color:white; } span.heimu:hover a, a:hover span.heimu{ color:lightblue; } span.heimu:hover a:visited, a:visited:hover span.heimu{ color:#C5CAE9; } span.heimu:hover a.new, a.new:hover span.heimu{ color:#FCC; } span.heimu a.new:hover:visited, a.new:hover:visited span.heimu{ color:#EF9A9A; } span.heimu:hover a.extiw:visited, a.extiw:visited:hover span.heimu{ color:#D1C4E9; } /* infobox宽度 */ @media (max-width: 576px) { .mw-parser-output > * { float: unset !important; } .infotemplatebox, table.infobox, table.infobox2, table.infoboxSpecial { width: 100% !important; float: unset !important; margin: 1rem 0 !important; } }