Skip to content

Commit

Permalink
Enhancing table borders (#6481)
Browse files Browse the repository at this point in the history
## What are you changing in this pull request and why?

Makes the table borders thicker for dark and light mode to enhance
readability

(Optional - pending feedback): Make the header background orange to
match our logo

## Checklist
- [ ] I have reviewed the [Content style
guide](https://github.com/dbt-labs/docs.getdbt.com/blob/current/contributing/content-style-guide.md)
so my content adheres to these guidelines.
- [ ] The topic I'm writing about is for specific dbt version(s) and I
have versioned it according to the [version a whole
page](https://github.com/dbt-labs/docs.getdbt.com/blob/current/contributing/single-sourcing-content.md#adding-a-new-version)
and/or [version a block of
content](https://github.com/dbt-labs/docs.getdbt.com/blob/current/contributing/single-sourcing-content.md#versioning-blocks-of-content)
guidelines.
- [ ] I have added checklist item(s) to this list for anything anything
that needs to happen before this PR is merged, such as "needs technical
review" or "change base branch."
- [ ] The content in this PR requires a dbt release note, so I added one
to the [release notes
page](https://docs.getdbt.com/docs/dbt-versions/dbt-cloud-release-notes).
<!--
PRE-RELEASE VERSION OF dbt (if so, uncomment):
- [ ] Add a note to the prerelease version [Migration
Guide](https://github.com/dbt-labs/docs.getdbt.com/tree/current/website/docs/docs/dbt-versions/core-upgrade)
-->
<!-- 
ADDING OR REMOVING PAGES (if so, uncomment):
- [ ] Add/remove page in `website/sidebars.js`
- [ ] Provide a unique filename for new pages
- [ ] Add an entry for deleted pages in `website/vercel.json`
- [ ] Run link testing locally with `npm run build` to update the links
that point to deleted pages
-->
  • Loading branch information
matthewshaver authored Nov 14, 2024
1 parent 8361d73 commit d2e203e
Showing 1 changed file with 32 additions and 0 deletions.
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;
}

0 comments on commit d2e203e

Please sign in to comment.