Skip to content

Commit

Permalink
Create a temporary no-stripe class for gt tables
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewheiss committed Sep 25, 2023
1 parent 6f2f193 commit b999e88
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
6 changes: 6 additions & 0 deletions html/custom.scss
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,12 @@ pre.sourceCode {
.table {
box-shadow: none;
}

// Create a temporary no-stripe class for gt tables
.no-stripe .gt_table tr.odd {
--bs-table-striped-bg: transparent;
}

// Footer stuff
.nav-footer-left {
text-align: left;
Expand Down
2 changes: 2 additions & 0 deletions notebook/model-details.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -167,6 +167,7 @@ We ran these models on a 2021 M1 MacBook Pro with 32 GB of RAM, with 4 MCMC chai
In total, it took `r total_run_time` to run everything.

```{r mcmc-duration-table}
#| classes: no-stripe
models |>
gt() |>
tab_footnote(
Expand Down Expand Up @@ -196,6 +197,7 @@ models |>
Raw coefficients aren't super useful for interpreting things, but here's a table of them for fun.

```{r results-table}
#| classes: no-stripe
modelsummary(
m_full_ordbeta,
statistic = "[{conf.low}, {conf.high}]",
Expand Down

0 comments on commit b999e88

Please sign in to comment.