MediaWiki:Common.css:修订间差异
MediaWiki界面页面
更多操作
第1行: | 第1行: | ||
/* ========================================================= | |||
* @font-face – 字体声明 | |||
* ======================================================= */ | |||
/* FOT-Rodin Pro(站点 Logo / 标题)*/ | |||
@font-face { | @font-face { | ||
font-family: "FOT-Rodin Pro"; | |||
src: url("/resources/assets/FOT-RodinProDB.woff2") format("woff2"), | |||
url("/resources/assets/FOT-Rodin Pro DB.otf") format("opentype"); | |||
font-weight: 700; | |||
font-style: normal; | |||
font-display: swap; | |||
} | } | ||
/* 霞鹜文楷 – 正文字体(中文)*/ | |||
/* 霞鹜文楷 | |||
@font-face { | @font-face { | ||
font-family: | font-family: "WenKai"; | ||
src: url( | src: url("/resources/assets/LXGWWenKai-Regular.woff2") format("woff2"), | ||
font-weight: | url("/resources/assets/LXGWWenKai-Regular.ttf") format("truetype"); | ||
font-weight: 400; | |||
font-style: normal; | font-style: normal; | ||
font-display: swap; | font-display: swap; | ||
} | } | ||
/* Merriweather | /* Merriweather – 英文衬线 */ | ||
@font-face { | @font-face { | ||
font-family: | font-family: "Merriweather"; | ||
src: url( | src: url("/resources/assets/Merriweather-Regular.woff2") format("woff2"), | ||
font-weight: | url("/resources/assets/Merriweather-Regular.ttf") format("truetype"); | ||
font-weight: 400; | |||
font-style: normal; | font-style: normal; | ||
font-display: swap; | font-display: swap; | ||
} | } | ||
/* JetBrains Mono | /* JetBrains Mono – 等宽英文 */ | ||
@font-face { | @font-face { | ||
font-family: | font-family: "JetBrains Mono"; | ||
src: url( | src: url("/resources/assets/JetBrainsMono-Regular.woff2") format("woff2"), | ||
url("/resources/assets/JetBrainsMono-Regular.ttf") format("truetype"); | |||
font-weight: 400; | |||
font-style: normal; | |||
font-display: swap; | font-display: swap; | ||
} | } | ||
/* 霞鹜文楷 Mono | /* 霞鹜文楷 Mono – 等宽中文 */ | ||
@font-face { | @font-face { | ||
font-family: | font-family: "WenKai Mono"; | ||
src: url( | src: url("/resources/assets/LXGWWenKaiMono-Regular.woff2") format("woff2"), | ||
url("/resources/assets/LXGWWenKaiMono-Regular.ttf") format("truetype"); | |||
font-weight: 400; | |||
font-style: normal; | |||
font-display: swap; | font-display: swap; | ||
} | } | ||
/* ========================================================= | |||
/* | * 正文阅读排版 | ||
* | * ======================================================= */ | ||
* | |||
body, | body, | ||
#mw-content-text, | #mw-content-text, | ||
.mw-body-content { | .mw-body-content { | ||
font-family: | font-family: "WenKai", "Merriweather", serif, | ||
"Songti SC", "Noto Serif CJK SC"; | |||
font-size: 16px; | font-size: 16px; | ||
line-height: 1.75; | line-height: 1.75; | ||
color: #1a1a1a; | color: #1a1a1a; | ||
word-break: break-word; | word-break: break-word; | ||
overflow-wrap: break-word; /* Safari / 旧浏览器 */ | |||
text-rendering: optimizeLegibility; | text-rendering: optimizeLegibility; | ||
} | } | ||
/* ========================================================= | |||
* 站点页眉 / LOGO(Vector 皮肤) | |||
* ======================================================= */ | |||
.skin-vector .mw-header { | |||
background-image: url("https://wiki.ottohub.cn/images/a/a9/Th20_Front00.png"); | |||
background-size: cover; | |||
background-repeat: no-repeat; | |||
background-position: center; | |||
} | |||
/***** | .skin-vector .mw-logo { | ||
* | background-color: rgba(255, 255, 255, 0.40); /* 修正 256→255 */ | ||
* | border-radius: 2px; | ||
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; | |||
} | |||
/* ========================================================= | |||
* 编辑器(WikiEditor / CodeMirror) | |||
* ======================================================= */ | |||
.wikiEditor-ui { | .wikiEditor-ui { | ||
font-family: | font-family: "WenKai Mono", "JetBrains Mono", monospace !important; | ||
font-size: 14px; | font-size: 14px; | ||
line-height: 1.6; | line-height: 1.6; | ||
第74行: | 第114行: | ||
} | } | ||
/* ========================================================= | |||
* <pre> / <code> / .mw-code | |||
* ======================================================= */ | |||
pre, | |||
code, | |||
.mw-code { | |||
font-family: "JetBrains Mono", monospace; | |||
font-family: | |||
font-size: 0.95em; | font-size: 0.95em; | ||
background-color: #f5f5f5; | background-color: #f5f5f5; | ||
第89行: | 第130行: | ||
} | } | ||
/* ========================================================= | |||
/* | * 分类栏、注释脚注 | ||
* | * ======================================================= */ | ||
* | |||
.catlinks, | .catlinks, | ||
第99行: | 第139行: | ||
opacity: 0.85; | opacity: 0.85; | ||
} | } | ||
/* ========================================================= | |||
* 加载动画 | |||
* ======================================================= */ | |||
#loadingIndicator img { | #loadingIndicator img { | ||
animation: fadePulse 1s ease-in-out infinite; | animation: fadePulse 1s ease-in-out infinite; | ||
will-change: opacity; | |||
} | } | ||
2025年5月11日 (日) 07:31的版本
/* =========================================================
* @font-face – 字体声明
* ======================================================= */
/* FOT-Rodin Pro(站点 Logo / 标题)*/
@font-face {
font-family: "FOT-Rodin Pro";
src: url("/resources/assets/FOT-RodinProDB.woff2") format("woff2"),
url("/resources/assets/FOT-Rodin Pro DB.otf") format("opentype");
font-weight: 700;
font-style: normal;
font-display: swap;
}
/* 霞鹜文楷 – 正文字体(中文)*/
@font-face {
font-family: "WenKai";
src: url("/resources/assets/LXGWWenKai-Regular.woff2") format("woff2"),
url("/resources/assets/LXGWWenKai-Regular.ttf") format("truetype");
font-weight: 400;
font-style: normal;
font-display: swap;
}
/* Merriweather – 英文衬线 */
@font-face {
font-family: "Merriweather";
src: url("/resources/assets/Merriweather-Regular.woff2") format("woff2"),
url("/resources/assets/Merriweather-Regular.ttf") format("truetype");
font-weight: 400;
font-style: normal;
font-display: swap;
}
/* JetBrains Mono – 等宽英文 */
@font-face {
font-family: "JetBrains Mono";
src: url("/resources/assets/JetBrainsMono-Regular.woff2") format("woff2"),
url("/resources/assets/JetBrainsMono-Regular.ttf") format("truetype");
font-weight: 400;
font-style: normal;
font-display: swap;
}
/* 霞鹜文楷 Mono – 等宽中文 */
@font-face {
font-family: "WenKai Mono";
src: url("/resources/assets/LXGWWenKaiMono-Regular.woff2") format("woff2"),
url("/resources/assets/LXGWWenKaiMono-Regular.ttf") format("truetype");
font-weight: 400;
font-style: normal;
font-display: swap;
}
/* =========================================================
* 正文阅读排版
* ======================================================= */
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: #1a1a1a;
word-break: break-word;
overflow-wrap: break-word; /* Safari / 旧浏览器 */
text-rendering: optimizeLegibility;
}
/* =========================================================
* 站点页眉 / LOGO(Vector 皮肤)
* ======================================================= */
.skin-vector .mw-header {
background-image: url("https://wiki.ottohub.cn/images/a/a9/Th20_Front00.png");
background-size: cover;
background-repeat: no-repeat;
background-position: center;
}
.skin-vector .mw-logo {
background-color: rgba(255, 255, 255, 0.40); /* 修正 256→255 */
border-radius: 2px;
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;
}
/* =========================================================
* 编辑器(WikiEditor / CodeMirror)
* ======================================================= */
.wikiEditor-ui {
font-family: "WenKai Mono", "JetBrains Mono", monospace !important;
font-size: 14px;
line-height: 1.6;
color: #1f1f1f;
background-color: #f9f9f9;
border: 1px solid #ccc;
padding: 10px;
border-radius: 6px;
overflow: auto;
tab-size: 4;
white-space: pre;
font-variant-ligatures: none;
}
/* =========================================================
* <pre> / <code> / .mw-code
* ======================================================= */
pre,
code,
.mw-code {
font-family: "JetBrains Mono", monospace;
font-size: 0.95em;
background-color: #f5f5f5;
color: #222;
padding: 4px 6px;
border-radius: 4px;
overflow-x: auto;
}
/* =========================================================
* 分类栏、注释脚注
* ======================================================= */
.catlinks,
.mw-references {
font-size: 0.9em;
opacity: 0.85;
}
/* =========================================================
* 加载动画
* ======================================================= */
#loadingIndicator img {
animation: fadePulse 1s ease-in-out infinite;
will-change: opacity;
}
@keyframes fadePulse {
0% { opacity: 1; }
50% { opacity: 0.5; }
100% { opacity: 1; }
}