From 6dea99c3308fb6a43b7d39ca34774174e17821ee Mon Sep 17 00:00:00 2001 From: Matt Shaver <60105315+matthewshaver@users.noreply.github.com> Date: Wed, 13 Nov 2024 18:41:34 -0500 Subject: [PATCH 1/2] Enhancing table borders --- website/src/css/custom.css | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/website/src/css/custom.css b/website/src/css/custom.css index e240a5dfabf..7972726841f 100644 --- a/website/src/css/custom.css +++ b/website/src/css/custom.css @@ -2112,3 +2112,25 @@ h2.anchor.clicked a.hash-link:before { flex-direction: column; } } + +.markdown table th, +.markdown table td { + padding: 8px; + border: 1.5px solid var(--table-border-color); + word-wrap: break-word; + white-space: normal; + text-align: left; +} + +table th { + background-color: #ED7254; /* Table header background color */ +} + +:root { + --table-border-color: #000000; /* Light mode table border color */ +} + +/* Dark mode border */ +[data-theme="dark"] { + --table-border-color: #ddd; /* Dark mode table border color */ +} From 3193f4f0184efd4ad66d4c98a9747bbf38e0ecc2 Mon Sep 17 00:00:00 2001 From: Matt Shaver <60105315+matthewshaver@users.noreply.github.com> Date: Wed, 13 Nov 2024 21:34:02 -0500 Subject: [PATCH 2/2] Changing header text color --- website/src/css/custom.css | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/website/src/css/custom.css b/website/src/css/custom.css index 7972726841f..b8979ffc943 100644 --- a/website/src/css/custom.css +++ b/website/src/css/custom.css @@ -2116,7 +2116,7 @@ h2.anchor.clicked a.hash-link:before { .markdown table th, .markdown table td { padding: 8px; - border: 1.5px solid var(--table-border-color); + border: 1px solid var(--table-border-color); word-wrap: break-word; white-space: normal; text-align: left; @@ -2134,3 +2134,13 @@ table th { [data-theme="dark"] { --table-border-color: #ddd; /* Dark mode table border color */ } +table th { + color: #ffffff; /* White text on lighter background */ + font-weight: bold; +} + +/* Dark mode table header text */ +[data-theme='dark'] table th { + color: #000000; /* Black text on darker background */ + font-weight: bold; +} \ No newline at end of file