Skip to content

Commit

Permalink
First draft for #82
Browse files Browse the repository at this point in the history
  • Loading branch information
tvroylandt committed May 2, 2024
1 parent 56476cb commit c5ff2ab
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 4 deletions.
14 changes: 13 additions & 1 deletion inst/assets/omni_pdf_report_new.css
Original file line number Diff line number Diff line change
Expand Up @@ -324,12 +324,15 @@ ul {
text-align: center;
z-index: 1;
background-color: white;
display: table;
}

.stats-number p {
font-family: var(--second-font);
font-weight: bold;
font-size: 24pt;
display: table-cell;
vertical-align: middle;
}

.stats-content {
Expand All @@ -338,7 +341,7 @@ ul {
max-height: 20pt;
margin-left: -10pt;
padding-left: 15pt;
margin-top: 10pt;
margin-top: 12pt;
z-index: -1;
}

Expand All @@ -348,4 +351,13 @@ ul {
font-size: 11pt;
display: table-cell;
max-width: 3in;
height: 20pt;
vertical-align: middle;
}

/* sections */
.section-header h1{
font-weight: normal;
font-size: 23pt;
page-break-before: always;
}
7 changes: 4 additions & 3 deletions inst/rmarkdown/templates/pdf_report_new/skeleton/skeleton.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ title: "Document Title"
date: "01-01-2024"
output:
omni::omni_pdf_report_new
# knit: pagedown::chrome_print
knit: pagedown::chrome_print
---

```{r setup, include=FALSE}
Expand Down Expand Up @@ -91,8 +91,9 @@ mtcars |>
omni_table(caption = "Caption")
```


# Another first level header
:::section-header
# Section header
:::

## With second level 1

Expand Down

0 comments on commit c5ff2ab

Please sign in to comment.