Skip to content

Commit

Permalink
fix coloring for vertical tables
Browse files Browse the repository at this point in the history
Signed-off-by: Shane Miller <[email protected]>
  • Loading branch information
shanecmiller23 committed Aug 8, 2023
1 parent 3999d33 commit 34f86cf
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
6 changes: 5 additions & 1 deletion themes/geekboot/assets/scss/dark-mode.scss
Original file line number Diff line number Diff line change
Expand Up @@ -86,11 +86,15 @@
}
.table {
border: 1px solid #{$fog-700};
--bs-table-hover-bg: #{$fog-1000};
}
.table-striped > tbody > tr:nth-of-type(odd) > * {
.table-striped > tbody > tr:nth-of-type(odd) > *, .table-striped-columns > :not(caption) > tr > :nth-child(even) {
--bs-table-accent-bg: #{$fog-950};
color: #{$fog-0};
}
.table-striped > tbody > tr:nth-of-type(even) > *, .table-striped-columns > :not(caption) > tr > :nth-child(odd) {
--bs-table-hover-bg: #{$fog-1000} !important;
}

// Add border to top nav and footer
.docs-navbar {
Expand Down
6 changes: 5 additions & 1 deletion themes/geekboot/assets/scss/light-mode.scss
Original file line number Diff line number Diff line change
Expand Up @@ -93,11 +93,15 @@
}
.table {
border: 1px solid #{$fog-200};
--bs-table-hover-bg: #{$fog-0};
}
.table-striped > tbody > tr:nth-of-type(odd) > * {
.table-striped > tbody > tr:nth-of-type(odd) > *, .table-striped-columns > :not(caption) > tr > :nth-child(even) {
--bs-table-accent-bg: #{$fog-50};
color: #{$fog-1000};
}
.table-striped > tbody > tr:nth-of-type(even) > *, .table-striped-columns > :not(caption) > tr > :nth-child(odd) {
--bs-table-hover-bg: #{$fog-0} !important;
}

// Tab Colors
.nav-tabs{
Expand Down

0 comments on commit 34f86cf

Please sign in to comment.