From 7334f3a36847a4258e62b15829e33e827bd2f4df Mon Sep 17 00:00:00 2001 From: klarkxy <278370456@qq.com> Date: Sun, 12 Apr 2026 12:55:45 +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=E5=B7=A5=E5=85=B7=E6=A0=8F=E6=A0=B7?= =?UTF-8?q?=E5=BC=8F=E5=92=8C=E6=A0=87=E7=AD=BE=E6=98=BE=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- web/template/syzoj/header.php | 76 ++++++++ web/template/syzoj/problemset.php | 310 ++++++++++++++++++++---------- 2 files changed, 284 insertions(+), 102 deletions(-) diff --git a/web/template/syzoj/header.php b/web/template/syzoj/header.php index d206807..3d7c49e 100644 --- a/web/template/syzoj/header.php +++ b/web/template/syzoj/header.php @@ -107,6 +107,82 @@ /*filter: brightness(1.1);*/ } +.label { + display: inline-block; + line-height: 1; + vertical-align: baseline; + padding: 0.45em 0.7em; + border-radius: .28571429rem; + font-size: .85714286rem; + font-weight: 700; + white-space: nowrap; + background-color: #e8e8e8; + color: rgba(0, 0, 0, .6); +} + +a.label { + color: inherit; +} + +a.label:hover { + color: inherit; + text-decoration: none; + filter: brightness(.96); +} + +.label.label-default, +.ui.label.label-default, +.label-default, +.label.label-gray, +.label.label-grey, +.label.gray, +.label.grey, +.label.lable-gray, +.label-gray, +.label-grey, +.lable-gray { + background-color: #767676 !important; + color: #fff !important; +} + +.label.label-primary, +.ui.label.label-primary, +.label-primary { + background-color: #2185d0 !important; + color: #fff !important; +} + +.label.label-info, +.ui.label.label-info, +.label-info { + background-color: #00b5ad !important; + color: #fff !important; +} + +.label.label-success, +.ui.label.label-success, +.label-success { + background-color: #21ba45 !important; + color: #fff !important; +} + +.label.label-warning, +.ui.label.label-warning, +.label-warning { + background-color: #f2711c !important; + color: #fff !important; +} + +.label.label-danger, +.ui.label.label-danger, +.label-danger, +.label.label-important, +.ui.label.label-important, +.label-important { + background-color: #db2828 !important; + color: #fff !important; +} + diff --git a/web/template/syzoj/problemset.php b/web/template/syzoj/problemset.php index d60ddca..97ec5c3 100644 --- a/web/template/syzoj/problemset.php +++ b/web/template/syzoj/problemset.php @@ -2,12 +2,121 @@