From 28cfc786d61b3c367398bd42542849042e5a75ce Mon Sep 17 00:00:00 2001 From: Yuqian Yang Date: Mon, 3 Mar 2025 23:37:42 +0800 Subject: feat(www): add table border in light theme. --- www/assets/res/css/base.css | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/www/assets/res/css/base.css b/www/assets/res/css/base.css index 9fd922b..c6d9347 100644 --- a/www/assets/res/css/base.css +++ b/www/assets/res/css/base.css @@ -30,6 +30,17 @@ div.mono-container { margin-block: 1rem; } +table { + --border-color: black; + + border-collapse: collapse; + + &, :is(td,th) { + padding: 0.4em; + border: 1px solid var(--border-color); + } +} + .toast { font-size: large; font-family: monospace; @@ -137,11 +148,6 @@ html[data-theme="dark"] { } table { - border-collapse: collapse; - - &, :is(td,th) { - padding: 0.5em; - border: 1px solid hsl(0, 0%, 25%); - } + --border-color: hsl(0, 0%, 25%); } } -- cgit v1.2.3