From 31ab078c655fb7ae9e7c96ac85964802d6cb08cb Mon Sep 17 00:00:00 2001 From: js2264 Date: Wed, 8 Nov 2023 15:32:15 +0100 Subject: [PATCH] css: add border to `sh` code chunks --- inst/assets/book.scss | 6 ++++++ inst/index.qmd | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/inst/assets/book.scss b/inst/assets/book.scss index fc40464..7061d6f 100644 --- a/inst/assets/book.scss +++ b/inst/assets/book.scss @@ -53,6 +53,12 @@ pre.sourceCode.r, code.sourceCode.r { } +pre.sourceCode.sh { + background-color: #ffffff00; + border: 1px solid black; + border-radius: 8px; +} + /* Chapter label ---------------------------------------- */ .chapter-number::before { diff --git a/inst/index.qmd b/inst/index.qmd index 01de44d..2d82350 100644 --- a/inst/index.qmd +++ b/inst/index.qmd @@ -189,7 +189,7 @@ The OHCA book has been rendered in R thanks to a number of packages, including b To build this book locally, you can run: -```{sh eval = FALSE, filename="bash"} +```{sh eval = FALSE} git clone git@github.com:js2264/OHCA.git && cd OHCA quarto render ```