Skip to content

Commit 487716a

Browse files
committed
Add documentation for SCSS variables in revealjs
1 parent 29df043 commit 487716a

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

docs/presentations/revealjs/themes.qmd

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -176,6 +176,32 @@ Here's a list of all Sass variables (and their default values) used by Reveal th
176176
| `$presentation-slide-text-align` | left |
177177
| `$presentation-title-slide-text-align` | center |
178178

179+
### Callouts
180+
181+
+--------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------+
182+
| Variable | Notes |
183+
+==========================+====================================================================================================================================================================+
184+
| `$callout-border-width` | The left border width of callouts. Defaults to `0.3rem`. |
185+
+--------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------+
186+
| `$callout-border-scale` | The border color of callouts computed by shifting the callout color by this amount. Defaults to `0%`. |
187+
+--------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------+
188+
| `$callout-icon-scale` | The color of the callout icon computed by shifting the callout color by this amount. Defaults to `10%`. |
189+
+--------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------+
190+
| `$callout-margin-top` | The amount of top margin on the callout. Defaults to `1rem`. |
191+
+--------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------+
192+
| `$callout-margin-bottom` | The amount of bottom margin on the callout. Defaults to `1rem`. |
193+
+--------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------+
194+
| `$callout-color-<type>` | The colors for the various types of callouts. Defaults: |
195+
| | |
196+
| | | type | default | |
197+
| | |-------------|-----------| |
198+
| | | `note` | `#0d6efd` | |
199+
| | | `tip` | `#198754` | |
200+
| | | `caution` | `#dc3545` | |
201+
| | | `warning` | `#fd7e14` | |
202+
| | | `important` | `#ffc107` | |
203+
+--------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------+
204+
179205
You'll notice that some of the Sass variables use a `presentation-` prefix and some do not. The `presentation-` prefixed variables are specific to presentations, whereas the other variables are the same as ones used for standard Quarto [HTML Themes](/docs/output-formats/html-themes.qmd).
180206

181207
Since all Quarto themes use the same Sass format, you can use a single theme file for both HTML / website documents and presentations.

0 commit comments

Comments
 (0)