Skip to content

Commit

Permalink
vignettes: theme_spacing
Browse files Browse the repository at this point in the history
  • Loading branch information
vincentarelbundock committed Nov 5, 2024
1 parent 051a88a commit 099e835
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 13 deletions.
13 changes: 0 additions & 13 deletions vignettes/style.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -356,19 +356,6 @@ tt(dat, theme = "void") |>
background = "blue", color = "white")
```

## Cell padding (height and width)

There is no argument in `style_tt()` to control the padding of cells. Thankfully, this is easy to control using CSS and `tabularray` options:


```{r}
tt(x) |> style_tt(
bootstrap_css = "padding-right: .2em; padding-top: 2em;",
tabularray_inner = "rowsep={2em}, colsep = {.2em}"
)
```


## Markdown and Word

Styling for Markdown and Word tables is more limited than for the other formats. In particular:
Expand Down
4 changes: 4 additions & 0 deletions vignettes/theme.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,10 @@ tt(x, theme = "grid")
tt(x, theme = "bootstrap")
```

```{r}
tt(x, theme = "spacing")
```

::: {.content-visible when-format="pdf"}
```{r}
tt(x, theme = "void")
Expand Down

0 comments on commit 099e835

Please sign in to comment.