MediaWiki:Common.css:修订间差异
MediaWiki界面页面
更多操作
![]() OctoberSama(留言 | 贡献) 小 |
![]() OctoberSama(留言 | 贡献) 小 |
||
第53行: | 第53行: | ||
* 编辑器(WikiEditor / CodeMirror) | * 编辑器(WikiEditor / CodeMirror) | ||
* ======================================================= */ | * ======================================================= */ | ||
/* | |||
.wikiEditor-ui { | .wikiEditor-ui { | ||
font-family: "WenKai Mono", "JetBrains Mono", monospace !important; | font-family: "WenKai Mono", "JetBrains Mono", monospace !important; | ||
第68行: | 第68行: | ||
font-variant-ligatures: none; | font-variant-ligatures: none; | ||
} | } | ||
*/ | |||
/* ========================================================= | /* ========================================================= | ||
* <pre> / <code> / .mw-code | * <pre> / <code> / .mw-code | ||
* ======================================================= */ | * ======================================================= */ | ||
/* | |||
pre, | pre, | ||
code, | code, | ||
第84行: | 第84行: | ||
overflow-x: auto; | overflow-x: auto; | ||
} | } | ||
+/ | |||
/* ========================================================= | /* ========================================================= | ||
* 加载动画 | * 加载动画 |
2025年6月5日 (四) 16:16的版本
/* =========================================================
* @font-face – 字体声明
* ======================================================= */
/* FOT-Rodin Pro(站点 Logo / 标题)*/
@font-face {
font-family: "FOT-Rodin Pro";
src: 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.ttf") format("truetype");
font-weight: 400;
font-style: normal;
font-display: swap;
}
/* Merriweather – 英文衬线 */
@font-face {
font-family: "Merriweather";
src: 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;
}
/* =========================================================
* 编辑器(WikiEditor / CodeMirror)
* ======================================================= */
/*
.wikiEditor-ui {
font-family: "WenKai Mono", "JetBrains Mono", monospace !important;
font-size: 14px;
line-height: 1.6;
color: var(--color-base,#1f1f1f);
background-color: var(--background-color-neutral-subtle,#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: var(--background-color-neutral-subtle,#f9f9f9);
color: var(--color-emphasized,#222);
padding: 4px 6px;
border-radius: 4px;
overflow-x: auto;
}
+/
/* =========================================================
* 加载动画
* ======================================================= */
#loadingIndicator img {
animation: fadePulse 1s ease-in-out infinite;
will-change: opacity;
}
@keyframes fadePulse {
0% { opacity: 1; }
50% { opacity: 0.5; }
100% { opacity: 1; }
}
/* 设置非本站的跨 Wiki 链接颜色 */
a.extiw:not([href*="wiki.ottohub.cn"]),
a.extiw:not([href*="wiki.ottohub.cn"]):visited {
color: #00AF89;
}
/* 设置非本站的跨 Wiki 链接在悬停时的颜色 */
a.extiw:not([href*="wiki.ottohub.cn"]):hover,
a.extiw:not([href*="wiki.ottohub.cn"]):hover:visited {
color: #00D7A8;
}
/* navbox */
table.navbox{
border:1px solid #aaa;
clear:both;
margin:auto;
padding:1px;
text-align:center;
width:100%;
}
table.navbox + table.navbox{
margin-top:-1px;
}
.navbox-title,
.navbox-abovebelow,
table.navbox th{
padding-left:1em;
padding-right:1em;
text-align:center;
}
.navbox-group{
font-weight:700;
white-space:nowrap;
}
.navbox,
.navbox-subgroup{
background:none repeat scroll 0 0 var(--theme-card-background-color, #fdfdfd);
}
.navbox-list{
border-color:#fdfdfd;
}
.navbox-title,
table.navbox th{
background:none repeat scroll 0 0 #a5e4a5;
}
.navbox-abovebelow,
.navbox-group,
.navbox-subgroup .navbox-title{
background:none repeat scroll 0 0 #c0ecc0;
}
.navbox-subgroup .navbox-group,
.navbox-subgroup .navbox-abovebelow{
background:none repeat scroll 0 0 #e6f6e6;
}
.navbox-even{
background:none repeat scroll 0 0 #f5fcf5;
}
.navbox-odd{
background:none repeat scroll 0 0 #fdfdfd;
}
/* infobox */
.infoBox{
margin:0 auto;
width:80%;
box-sizing:border-box;
}
.infoBoxTitle{
margin:3px auto;
padding:0;
text-align:center;
font-weight:700;
}
.infoBoxIcon{
display:table-cell;
padding:2px 0 2px 0.5em;
vertical-align:middle;
}
.infoBoxText{
display:table-cell;
padding:0.25em 0.5em 0.25em 1.3em;
width:100%;
vertical-align:middle;
}
.infoBoxContent{
border:1px solid #ddd;
border-left-width:0;
background:#fbfbfb;
}
.infoBoxBelow{
margin:0 auto;
padding:0;
text-align:center;
}
.audio-trigger { cursor: pointer; }