Skip to content

Commit

Permalink
Update custom.css (#295)
Browse files Browse the repository at this point in the history
Added code snippet for table row color override. This will sync settings with the user's custom CSS.
  • Loading branch information
kimsauce authored Jun 7, 2023
1 parent 8477303 commit e5cf828
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/beige-mugs-matter.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"docusaurus-theme-redoc": patch
---

Add dark mode support to tables inside markdown
5 changes: 5 additions & 0 deletions packages/docusaurus-theme-redoc/src/custom.css
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,8 @@
max-width: 4rem;
max-height: 4rem;
}

/* Table row color override to match your Docusaurus CSS */
.redocusaurus table > tbody > tr {
background-color: var(--ifm-table-cell-color) !important;
}

1 comment on commit e5cf828

@vercel
Copy link

@vercel vercel bot commented on e5cf828 Jun 7, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.