From ab2a3ca65fe48738b0c71d258cd43268385ce35b Mon Sep 17 00:00:00 2001 From: klarkxy <278370456@qq.com> Date: Sat, 11 Apr 2026 19:44:27 +0800 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8=20feat:=20=E4=BC=98=E5=8C=96=E9=97=AE?= =?UTF-8?q?=E9=A2=98=E9=A1=B5=E9=9D=A2=E6=A0=B7=E5=BC=8F=E5=B9=B6=E6=B7=BB?= =?UTF-8?q?=E5=8A=A0=E5=A4=8D=E5=88=B6=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- web/template/syzoj/contest.php | 10 ++++- web/template/syzoj/css/FiraMono.css | 64 +++++++++++++++++++++++++++++ web/template/syzoj/problem.php | 24 ++++++----- 3 files changed, 87 insertions(+), 11 deletions(-) diff --git a/web/template/syzoj/contest.php b/web/template/syzoj/contest.php index 20ef02c..c0834e3 100644 --- a/web/template/syzoj/contest.php +++ b/web/template/syzoj/contest.php @@ -97,7 +97,15 @@ "; - foreach($row as $table_cell){ + foreach($row as $cell_index => $table_cell){ + if ($cell_index === 0) { + $status_value = trim(strip_tags($table_cell)); + if ($status_value === 'Y') { + $table_cell = ''; + } else if ($status_value === 'N') { + $table_cell = ''; + } + } echo "".$table_cell.""; } echo ""; diff --git a/web/template/syzoj/css/FiraMono.css b/web/template/syzoj/css/FiraMono.css index 40d78f8..1d264c3 100644 --- a/web/template/syzoj/css/FiraMono.css +++ b/web/template/syzoj/css/FiraMono.css @@ -2,5 +2,69 @@ font-family: 'Fira Mono'; font-style: normal; font-weight: 400; + font-display: swap; src: url(../fonts/N0bX2SlFPv1weGeLZDtgJv7X.ttf) format('truetype'); } +@font-face { + font-family: 'Sarasa Mono SC'; + font-style: normal; + font-weight: 400; + font-display: swap; + src: local('Sarasa Mono SC'), local('SarasaMonoSC-Regular'), url(../fonts/N0bX2SlFPv1weGeLZDtgJv7X.ttf) format('truetype'); +} +@font-face { + font-family: 'Sarasa Fixed SC'; + font-style: normal; + font-weight: 400; + font-display: swap; + src: local('Sarasa Fixed SC'), local('SarasaFixedSC-Regular'), url(../fonts/N0bX2SlFPv1weGeLZDtgJv7X.ttf) format('truetype'); +} +@font-face { + font-family: 'Sarasa Gothic SC'; + font-style: normal; + font-weight: 400; + font-display: swap; + src: local('Sarasa Gothic SC'), local('SarasaGothicSC-Regular'), url(../fonts/N0bX2SlFPv1weGeLZDtgJv7X.ttf) format('truetype'); +} +@font-face { + font-family: 'JetBrains Mono'; + font-style: normal; + font-weight: 400; + font-display: swap; + src: local('JetBrains Mono'), local('JetBrainsMono-Regular'), url(../fonts/N0bX2SlFPv1weGeLZDtgJv7X.ttf) format('truetype'); +} +@font-face { + font-family: 'Cascadia Code'; + font-style: normal; + font-weight: 400; + font-display: swap; + src: local('Cascadia Code'), local('CascadiaCode-Regular'), url(../fonts/N0bX2SlFPv1weGeLZDtgJv7X.ttf) format('truetype'); +} +@font-face { + font-family: 'Cascadia Mono'; + font-style: normal; + font-weight: 400; + font-display: swap; + src: local('Cascadia Mono'), local('CascadiaMono-Regular'), url(../fonts/N0bX2SlFPv1weGeLZDtgJv7X.ttf) format('truetype'); +} +@font-face { + font-family: 'Ubuntu Mono'; + font-style: normal; + font-weight: 400; + font-display: swap; + src: local('Ubuntu Mono'), local('UbuntuMono-Regular'), url(../fonts/N0bX2SlFPv1weGeLZDtgJv7X.ttf) format('truetype'); +} +@font-face { + font-family: 'Source Code Pro'; + font-style: normal; + font-weight: 400; + font-display: swap; + src: local('Source Code Pro'), local('SourceCodePro-Regular'), url(../fonts/N0bX2SlFPv1weGeLZDtgJv7X.ttf) format('truetype'); +} +@font-face { + font-family: 'source-code-pro'; + font-style: normal; + font-weight: 400; + font-display: swap; + src: local('Source Code Pro'), local('SourceCodePro-Regular'), url(../fonts/N0bX2SlFPv1weGeLZDtgJv7X.ttf) format('truetype'); +} diff --git a/web/template/syzoj/problem.php b/web/template/syzoj/problem.php index e061853..c3e585f 100644 --- a/web/template/syzoj/problem.php +++ b/web/template/syzoj/problem.php @@ -47,16 +47,22 @@ if ($pr_flag) { .sample-header { display: flex !important; align-items: center; - justify-content: space-between; - gap: 12px; } .sample-box { + position: relative; border: 1px solid #cfd7e6 !important; background: linear-gradient(180deg, #f9fbff 0%, #f3f7ff 100%) !important; box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06); } + .sample-copy { + position: absolute; + top: 12px; + right: 12px; + z-index: 2; + } + .sample-box pre { margin: 0; padding: 16px 18px; @@ -256,12 +262,11 @@ if ($pr_flag) { 0 && $sinput != "\n" || isset($_GET['spa'])) { ?>
-

- -

+

+
@@ -272,12 +277,11 @@ if ($pr_flag) { 0 && $soutput != "\n" || isset($_GET['spa'])) { ?>
-

- -

+

+