diff options
author | Yuqian Yang <crupest@crupest.life> | 2025-03-03 23:37:42 +0800 |
---|---|---|
committer | Yuqian Yang <crupest@crupest.life> | 2025-03-03 23:37:42 +0800 |
commit | 28cfc786d61b3c367398bd42542849042e5a75ce (patch) | |
tree | c8bbc203ec4e0b6626dbdd2bec7805279fc8d368 | |
parent | 4bf9b57cca977760a89bda7b419a85ca471ba1ce (diff) | |
download | crupest-28cfc786d61b3c367398bd42542849042e5a75ce.tar.gz crupest-28cfc786d61b3c367398bd42542849042e5a75ce.tar.bz2 crupest-28cfc786d61b3c367398bd42542849042e5a75ce.zip |
feat(www): add table border in light theme.
-rw-r--r-- | www/assets/res/css/base.css | 18 |
1 files 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%); } } |