跳转到内容

欢迎来到Riguz的小站!这是一个私人wiki,用来记录一些我的笔记。

MediaWiki:Common.css:修订间差异

来自WHY42
imported>Soleverlee
无编辑摘要
Riguz​(留言 | 贡献)
小无编辑摘要
 
(未显示2个用户的26个中间版本)
第1行: 第1行:
@import url(https://files.riguz.com/css/fonts.css);
/* =========================================================
  MediaWiki 现代阅读风 Common.css
  正文无衬线 / 标题加粗无衬线 / 代码等宽 / UI 轻量化
  ========================================================= */


@font-face {
/* ---------- 全局基础 ---------- */
     font-family: monospace;
html, body {
  src: local('Inconsolata');
     font-family: "Inter", "HarmonyOS Sans SC", "Noto Sans SC",
                "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB",
                system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    font-size: 16.5px;
    line-height: 1.7;
    color: #1f2328;             /* 接近 GitHub 正文色,比纯黑柔和 */
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}
}


html,body {
/* ---------- 标题:现代无衬线,字重分层 ---------- */
     font-family: Inconsolata, "PingHei","Lucida Grande", "Lucida Sans Unicode",
h1, h2, h3, h4, h5, h6 {
"Microsoft YaHei",微软雅黑,"MicrosoftJhengHei",华文细黑,STHeiti,MingLiu,  
     font-family: "Inter", "HarmonyOS Sans SC", "Noto Sans SC",
"Helvetica","Arial","Verdana","serif";
                "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
    font-weight: 650;
    line-height: 1.35;
    color: #111418;
    letter-spacing: -0.01em;     /* 大标题稍微收紧,更现代 */
}
}


body {
h1 { font-size: 1.9em; font-weight: 700; }
    width: 960px;
h2 {
    margin: 0 auto;
     font-size: 1.5em;
     /*background:url(https://files.riguz.com/img/body_bg.jpg);*/
     border-bottom: 1px solid #e6e8eb;  /* 细线分隔,不重 */
     background:url(https://files.riguz.com/img/body_bg.jpg);
     padding-bottom: 0.25em;
     text-shadow: 1px 1px 1px #000000;
}
}
h3 { font-size: 1.25em; }
h4 { font-size: 1.08em; }


div#content {
/* ---------- 正文段落间距优化 ---------- */
    border: 0;
p { margin: 0.75em 0; }
}
li { line-height: 1.65; }
div#catlinks {
    border:none;
    box-shadow: inset 0 0 2px #AEF5A4;
    background: transparent;
}
.wikiEditor-ui-text {
    font-size: 12px;
    font-family: monospace,sans-serif;
}


.poem {
/* ---------- 链接:现代蓝,去下划线 hover 显示 ---------- */
    font-family: "楷体","楷体_GB2312";
a {
    font-size: 20px;
     color: #2563eb;
     color: #25F95F;
     text-decoration: none;
    background: rgba(249, 249, 249, 0.18);
     text-align: left;
    padding-top: 15px;
    padding-left: 20px;
    padding-bottom: 30px;
}
}
 
a:hover {
.editOptions {
     color: #1d4ed8;
     color: #094854;
    text-decoration: underline;
    text-underline-offset: 2px;
}
}
a:visited { color: #7c3aed; }


.editOptions input {
/* ---------- 代码块:等宽,深色底浅字 ---------- */
     color: blue;
code, pre, .mw-code, .mw-highlight pre, .syntaxhighlight {
     font-family: "JetBrains Mono", "Fira Code", "Cascadia Code",
                "Consolas", "Monaco", "Menlo", monospace;
    font-size: 0.88em;
    border-radius: 6px;
}
}
 
code {
fieldset#mw-searchoptions {
     background: #f3f4f6;
     background: none;
    padding: 0.15em 0.4em;
}
     color: #db2777;             /* 行内代码粉紫,辨识度高 */
.mw-search-formheader div.search-types ul li.current a {
     color: #f1b83a;
}
}
.mw-search-formheader {
pre, .mw-code {
     background-color: rgb(51, 50, 50);
     background: #0f172a;        /* 深蓝灰底 */
    color: #e2e8f0;
    padding: 0.9em 1.1em;
    overflow-x: auto;
    border: 1px solid #1e293b;
}
}
pre code { background: none; color: inherit; padding: 0; }


#searchGoButton,#mw-searchButton {
/* ---------- UI 区域:导航/侧边栏更轻 ---------- */
     background: #347bff;
#mw-panel, #p-personal, #left-navigation, #right-navigation,
    color: #fff;
.vector-menu, .mw-ui-button, .mw-ui-input,
     border: 1px solid #347bff;
.skin-vector-2022 .vector-menu-tabs,
     border-left: none;
.skin-timeless .portlet {
     border-right: none;
     font-family: "Inter", "Noto Sans SC", "PingFang SC",
                "Microsoft YaHei", system-ui, sans-serif;
     font-size: 14px;
     font-weight: 500;
     color: #374151;
}
}


ol {
/* 侧边栏标题弱化 */
     list-style-type: decimal-leading-zero;
.vector-menu-portal h3,
#mw-panel .portal h3 {
     font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #9ca3af;
    font-weight: 600;
}
}


pre, code, tt, kbd, samp, .mw-code {
/* ---------- 引用块:现代卡片感 ---------- */
     font-family: Inconsolata, Consolas, monospace;
blockquote {
     font-family: inherit;        /* 跟正文同族,不再斜体衬线 */
    font-style: normal;
    border-left: 3px solid #3b82f6;
    background: #f8fafc;
    color: #334155;
    padding: 0.6em 1em;
    margin: 1em 0;
    border-radius: 0 6px 6px 0;
}
}


.ln-xtra {
/* ---------- 表格:去厚重边框 ---------- */
     background-color: rgba(180, 239, 181, 0.33);
table.wikitable {
    border-collapse: collapse;
     font-size: 0.95em;
}
}
pre, .mw-code{
table.wikitable > * > tr > th {
border:none;
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    padding: 0.5em 0.75em;
    font-weight: 600;
}
}
code {
table.wikitable > * > tr > td {
     background: transparent;
     border: 1px solid #eef0f2;
     color: #ff07b1;
     padding: 0.5em 0.75em;
}
}


table.darktable {
/* ---------- 数学公式对齐 ---------- */
     border-width: 1px;
.mwe-math-element {
    border-color: #13420e;
     font-size: 1.02em;
     border-collapse: collapse;
     vertical-align: middle;
}
}


table.darktable th {
/* ---------- Minerva 移动端兜底(避免被移动皮肤覆盖回衬线) ---------- */
     border-width: 1px;
.skin-minerva body,
     border-style: solid;
.skin-minerva .content {
    border-color: #13420e;
     font-family: "Inter", "Noto Sans SC", "PingFang SC",
     background: rgb(38, 115, 115);
                "HarmonyOS Sans SC", system-ui, sans-serif !important;
     color: #000000;
     line-height: 1.7;
}
.skin-minerva h1, .skin-minerva h2, .skin-minerva h3 {
     font-family: inherit !important;
     letter-spacing: -0.01em;
}
}


table.darktable td {
/* ---------- 暗色模式友好(Vector2022 暗色时) ---------- */
    border-width: 1px;
@media (prefers-color-scheme: dark) {
    border-style: solid;
     html, body { color: #e6edf3; }
    border-color: #13420e;
     h1, h2, h3, h4, h5, h6 { color: #f0f6fc; }
}
     h2 { border-bottom-color: #30363d; }
kbd {
     a { color: #58a6ff; }
    border: 1px solid #aaa;
     a:visited { color: #bc8cff; }
    -moz-border-radius: 0.2em;
     code { background: #21262d; color: #ff7b72; }
    -webkit-border-radius: 0.2em;
     blockquote { background: #161b22; color: #adbac7; border-left-color: #58a6ff; }
    border-radius: 0.2em;
     table.wikitable > * > tr > th { background: #161b22; }
     -moz-box-shadow: 0.1em 0.2em 0.2em #ddd;
     -webkit-box-shadow: 0.1em 0.2em 0.2em #ddd;
     box-shadow: 0.1em 0.2em 0.2em #ddd;
     background-color: #f9f9f9;
     background-image: -moz-linear-gradient(top, #eee, #f9f9f9, #eee);
     background-image: -o-linear-gradient(top, #eee, #f9f9f9, #eee);
    background-image: -webkit-linear-gradient(top, #eee, #f9f9f9, #eee);
     background-image: linear-gradient(to bottom, #eee, #f9f9f9, #eee);
    padding: 0.1em 0.3em;
    font-family: inherit;
     font-size: 0.85em;
    color: red;
}
}

2026年10月3日 (六) 03:26的最新版本

/* =========================================================
   MediaWiki 现代阅读风 Common.css
   正文无衬线 / 标题加粗无衬线 / 代码等宽 / UI 轻量化
   ========================================================= */

/* ---------- 全局基础 ---------- */
html, body {
    font-family: "Inter", "HarmonyOS Sans SC", "Noto Sans SC",
                 "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB",
                 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    font-size: 16.5px;
    line-height: 1.7;
    color: #1f2328;              /* 接近 GitHub 正文色,比纯黑柔和 */
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

/* ---------- 标题:现代无衬线,字重分层 ---------- */
h1, h2, h3, h4, h5, h6 {
    font-family: "Inter", "HarmonyOS Sans SC", "Noto Sans SC",
                 "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
    font-weight: 650;
    line-height: 1.35;
    color: #111418;
    letter-spacing: -0.01em;     /* 大标题稍微收紧,更现代 */
}

h1 { font-size: 1.9em; font-weight: 700; }
h2 {
    font-size: 1.5em;
    border-bottom: 1px solid #e6e8eb;  /* 细线分隔,不重 */
    padding-bottom: 0.25em;
}
h3 { font-size: 1.25em; }
h4 { font-size: 1.08em; }

/* ---------- 正文段落间距优化 ---------- */
p { margin: 0.75em 0; }
li { line-height: 1.65; }

/* ---------- 链接:现代蓝,去下划线 hover 显示 ---------- */
a {
    color: #2563eb;
    text-decoration: none;
}
a:hover {
    color: #1d4ed8;
    text-decoration: underline;
    text-underline-offset: 2px;
}
a:visited { color: #7c3aed; }

/* ---------- 代码块:等宽,深色底浅字 ---------- */
code, pre, .mw-code, .mw-highlight pre, .syntaxhighlight {
    font-family: "JetBrains Mono", "Fira Code", "Cascadia Code",
                 "Consolas", "Monaco", "Menlo", monospace;
    font-size: 0.88em;
    border-radius: 6px;
}
code {
    background: #f3f4f6;
    padding: 0.15em 0.4em;
    color: #db2777;              /* 行内代码粉紫,辨识度高 */
}
pre, .mw-code {
    background: #0f172a;         /* 深蓝灰底 */
    color: #e2e8f0;
    padding: 0.9em 1.1em;
    overflow-x: auto;
    border: 1px solid #1e293b;
}
pre code { background: none; color: inherit; padding: 0; }

/* ---------- UI 区域:导航/侧边栏更轻 ---------- */
#mw-panel, #p-personal, #left-navigation, #right-navigation,
.vector-menu, .mw-ui-button, .mw-ui-input,
.skin-vector-2022 .vector-menu-tabs,
.skin-timeless .portlet {
    font-family: "Inter", "Noto Sans SC", "PingFang SC",
                 "Microsoft YaHei", system-ui, sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: #374151;
}

/* 侧边栏标题弱化 */
.vector-menu-portal h3,
#mw-panel .portal h3 {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #9ca3af;
    font-weight: 600;
}

/* ---------- 引用块:现代卡片感 ---------- */
blockquote {
    font-family: inherit;        /* 跟正文同族,不再斜体衬线 */
    font-style: normal;
    border-left: 3px solid #3b82f6;
    background: #f8fafc;
    color: #334155;
    padding: 0.6em 1em;
    margin: 1em 0;
    border-radius: 0 6px 6px 0;
}

/* ---------- 表格:去厚重边框 ---------- */
table.wikitable {
    border-collapse: collapse;
    font-size: 0.95em;
}
table.wikitable > * > tr > th {
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    padding: 0.5em 0.75em;
    font-weight: 600;
}
table.wikitable > * > tr > td {
    border: 1px solid #eef0f2;
    padding: 0.5em 0.75em;
}

/* ---------- 数学公式对齐 ---------- */
.mwe-math-element {
    font-size: 1.02em;
    vertical-align: middle;
}

/* ---------- Minerva 移动端兜底(避免被移动皮肤覆盖回衬线) ---------- */
.skin-minerva body,
.skin-minerva .content {
    font-family: "Inter", "Noto Sans SC", "PingFang SC",
                 "HarmonyOS Sans SC", system-ui, sans-serif !important;
    line-height: 1.7;
}
.skin-minerva h1, .skin-minerva h2, .skin-minerva h3 {
    font-family: inherit !important;
    letter-spacing: -0.01em;
}

/* ---------- 暗色模式友好(Vector2022 暗色时) ---------- */
@media (prefers-color-scheme: dark) {
    html, body { color: #e6edf3; }
    h1, h2, h3, h4, h5, h6 { color: #f0f6fc; }
    h2 { border-bottom-color: #30363d; }
    a { color: #58a6ff; }
    a:visited { color: #bc8cff; }
    code { background: #21262d; color: #ff7b72; }
    blockquote { background: #161b22; color: #adbac7; border-left-color: #58a6ff; }
    table.wikitable > * > tr > th { background: #161b22; }
}