Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enhancing table borders #6481

Merged
merged 4 commits into from
Nov 14, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 32 additions & 0 deletions website/src/css/custom.css
Original file line number Diff line number Diff line change
Expand Up @@ -2112,3 +2112,35 @@ h2.anchor.clicked a.hash-link:before {
flex-direction: column;
}
}

.markdown table th,
.markdown table td {
padding: 8px;
border: 1px 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 */
}
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;
}
Loading