From 007425ce81f4314995c3db617a0e467dfa241194 Mon Sep 17 00:00:00 2001
From: klarkxy <278370456@qq.com>
Date: Fri, 10 Apr 2026 20:56:35 +0800
Subject: [PATCH] =?UTF-8?q?=E2=9C=A8=20feat:=20=E6=B7=BB=E5=8A=A0=E5=85=A8?=
=?UTF-8?q?=E5=B1=80=E5=8D=95=E4=B8=80=E5=AD=97=E4=BD=93=E6=A0=B7=E5=BC=8F?=
=?UTF-8?q?=E4=BB=A5=E7=BB=9F=E4=B8=80=E7=95=8C=E9=9D=A2=E5=AD=97=E4=BD=93?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
web/include/hoj.css | 32 ++++++++++++++--
web/template/syzoj/css.php | 66 ++++++++++++++++++++++++++++++++
web/template/syzoj/css/style.css | 46 +++++++++++++++++-----
3 files changed, 131 insertions(+), 13 deletions(-)
diff --git a/web/include/hoj.css b/web/include/hoj.css
index 6c3bacc..339b6f9 100644
--- a/web/include/hoj.css
+++ b/web/include/hoj.css
@@ -1,4 +1,32 @@
@import url(../bootstrap/css/bootstrap.css);
+:root {
+ --hustoj-global-mono-font: "Sarasa Mono SC", "Sarasa Fixed SC", "Sarasa Gothic SC", Consolas, "Cascadia Mono", "Cascadia Code", "Fira Mono", "JetBrains Mono", "Liberation Mono", Menlo, Monaco, "Courier New", monospace;
+}
+
+body,
+button,
+input,
+select,
+textarea,
+table,
+th,
+td,
+h1,
+h2,
+h3,
+h4,
+h5,
+h6,
+div.content,
+.sampledata,
+.toprow a,
+.toprow a:hover,
+.menu_item a,
+#profile,
+#broadcast {
+ font-family: var(--hustoj-global-mono-font) !important;
+}
+
input{
height:24px;
}
@@ -28,14 +56,12 @@ h2 {
}
.toprow a {
color: #FFFFFF;
- font-family: Arial;
font-size: 18px;
font-weight: bold;
margin: 15px;
}
.toprow a:hover {
color: orange;
- font-family: Arial;
font-size: 18px;
font-weight: bold;
margin: 15px;
@@ -103,7 +129,6 @@ span.exadmin {
}
div.content {
background: none repeat scroll 0 0 #E4F0F8;
- font-family: Times New Roman;
font-size: 14px;
height: auto;
margin: 0;
@@ -113,7 +138,6 @@ div.content {
}
.sampledata {
background: none repeat scroll 0 0 #8DB8FF;
- font-family: Monospace;
font-size: 18px;
white-space: pre;
}
diff --git a/web/template/syzoj/css.php b/web/template/syzoj/css.php
index ca0d323..862967d 100644
--- a/web/template/syzoj/css.php
+++ b/web/template/syzoj/css.php
@@ -11,3 +11,69 @@
/css/FiraMono.css" rel="stylesheet">
/css/latin.css" rel="stylesheet">
/css/Exo.css" rel="stylesheet">
+
diff --git a/web/template/syzoj/css/style.css b/web/template/syzoj/css/style.css
index 37baec8..cee8dd3 100644
--- a/web/template/syzoj/css/style.css
+++ b/web/template/syzoj/css/style.css
@@ -1,4 +1,12 @@
@import url('../../bs3/bootstrap.min.css');
+
+:root {
+ --hustoj-global-mono-font: "Sarasa Mono SC", "Sarasa Fixed SC",
+ "Sarasa Gothic SC", Consolas, "Cascadia Mono", "Cascadia Code",
+ "Fira Mono", "JetBrains Mono", "Liberation Mono", Menlo, Monaco,
+ "Courier New", monospace;
+}
+
.ui.header,
.ui.button,
.ui.input input,
@@ -21,11 +29,7 @@ h3,
h4,
h5,
body {
- font-family: Lato, -apple-system, "PingFang SC",
- /* Apple */ "Source Han Sans SC", "Noto Sans CJK SC",
- /* Google */ "Microsoft Yahei", "Lantinghei SC", "Hiragino Sans GB",
- "Microsoft Sans Serif", /* M$ */ "WenQuanYi Micro Hei",
- /* *nix */ sans-serif;
+ font-family: var(--hustoj-global-mono-font) !important;
}
a.black-link {
@@ -37,13 +41,37 @@ a.black-link:hover {
}
.font-content {
- font-family: "Open Sans", "Source Han Sans SC", "Noto Sans CJK SC",
- "PingFang SC", "Hiragino Sans GB", "Microsoft Yahei", sans-serif;
+ font-family: var(--hustoj-global-mono-font) !important;
}
.markdown-edit {
- font-family: "Fira Mono", "Noto Sans CJK SC", "PingFang SC",
- "Hiragino Sans GB", "Microsoft Yahei", monospace;
+ font-family: var(--hustoj-global-mono-font) !important;
+}
+
+.ui.form textarea,
+.ui.form select,
+.ui.text.container,
+.ui.segment,
+.ui.message,
+.ui.label,
+.ui.dropdown,
+.ui.table,
+.ui.card > .content,
+.ui.cards > .card > .content,
+.ui.list > .item,
+.ui.list .list > .item,
+.ui.statistic > .value,
+.ui.statistic > .label,
+.vditor,
+.vditor-reset,
+.vditor-reset *,
+.ace_editor,
+.ace_editor textarea,
+.ace_content,
+.ace_gutter,
+.ace_line,
+.ace_text-layer {
+ font-family: var(--hustoj-global-mono-font) !important;
}
.padding {