打开/关闭菜单
打开/关闭外观设置菜单
打开/关闭个人菜单
未登录
未登录用户的IP地址会在进行任意编辑后公开展示。

MediaWiki:Common.css:修订间差异

MediaWiki界面页面
第1行: 第1行:
/* =========================================================
* @font-face – 字体声明
* ======================================================= */
/* FOT-Rodin Pro(站点 Logo / 标题)*/
@font-face {
@font-face {
    font-family: FOT-Rodin Pro;
  font-family: "FOT-Rodin Pro";
    src: url("resources/assets/FOT-Rodin Pro DB.otf") format("opentype");
  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;
}
}
.mw-body-header {
 
font-family: 'FOT-Rodin Pro';
/* 霞鹜文楷 – 正文字体(中文)*/
}
/* 霞鹜文楷 - 正文字体 */
@font-face {
@font-face {
   font-family: 'WenKai';
   font-family: "WenKai";
   src: url('resources/assets/LXGWWenKai-Regular.ttf') format('truetype');
   src: url("/resources/assets/LXGWWenKai-Regular.woff2") format("woff2"),
   font-weight: normal;
      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: 'Merriweather';
   font-family: "Merriweather";
   src: url('resources/assets/Merriweather-Regular.ttf') format('truetype');
   src: url("/resources/assets/Merriweather-Regular.woff2") format("woff2"),
   font-weight: normal;
      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: 'JetBrains Mono';
   font-family: "JetBrains Mono";
   src: url('resources/assets/JetBrainsMono-Regular.woff2') format('woff2');
   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: 'WenKai Mono';
   font-family: "WenKai Mono";
   src: url('//assets/LXGWWenKaiMono-Regular.ttf') format('truetype');
   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: 'WenKai', 'Merriweather', serif;
   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: 'WenKai Mono', 'JetBrains Mono', monospace !important;
   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,
* <pre> 和 <code> 中的字体设置
code,
***************************************/
.mw-code {
 
   font-family: "JetBrains Mono", monospace;
pre, code, .mw-code {
   font-family: 'JetBrains Mono', monospace;
   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;
}
}
.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;
 
}
.mw-logo{
background-color: rgba(256,256,256,0.4) ;
border-radius: 1px;
padding-right:20px;
padding-left:10px;
}
#p-logo-text,
.vector-header {
  font-family: 'WenKai', 'Merriweather', serif;
  font-weight: bold;
}
/* 为 loading 图标添加透明度变换动画 */
#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; }
}