From e542600dfa5c835f61d5cf316e1136d311302205 Mon Sep 17 00:00:00 2001 From: Baoshuo Date: Thu, 23 Feb 2023 20:22:49 +0800 Subject: [PATCH] feat: dark mode username color --- web/css/uoj-bs5.css | 42 +++++++++++++++++++++++++++++++++++++++++- 1 file changed, 41 insertions(+), 1 deletion(-) diff --git a/web/css/uoj-bs5.css b/web/css/uoj-bs5.css index 3ec4d81..2a5b3a4 100644 --- a/web/css/uoj-bs5.css +++ b/web/css/uoj-bs5.css @@ -544,8 +544,9 @@ form.form-horizontal { /* Username color */ +.uoj-username, .uoj-username-blue { - color: #0d6efd; + color: #1e88e5; } .uoj-username-green { @@ -579,3 +580,42 @@ form.form-horizontal { .uoj-username-brown { color: #996600; } + +/* Dark: Username color */ + +[data-bs-theme='dark'] .uoj-username, +[data-bs-theme='dark'] .uoj-username-blue { + color: #218bff; +} + +[data-bs-theme='green'] .uoj-username-green { + color: #19a140; +} + +[data-bs-theme='dark'] .uoj-username-pink { + color: #bf3989; +} + +[data-bs-theme='dark'] .uoj-username-red { + color: #cf222e; +} + +[data-bs-theme='dark'] .uoj-username-orange { + color: #e16f24; +} + +[data-bs-theme='dark'] .uoj-username-cyan { + color: #00acc1; +} + +[data-bs-theme='dark'] .uoj-username-purple { + color: #9366e5; +} + +[data-bs-theme='dark'] .uoj-username-gray { + color: #8c959f; +} + +[data-bs-theme='dark'] .uoj-username-brown { + color: #996f1c; +}