-
DescriptionHello, To achieve this, one would typically create a However, I am unable to change the color of the callout boxes of my presentatio that way. It would be nice to have some SASS variables for that, e.g. At the moment I try to overwrite the colors with come custom css instead. However, setting the border colors via /*-- scss:defaults --*/
$purple: #800080;
/*-- scss:rules --*/
div.callout-warning {
border-left-color: $purple !important;
} doesn't work either, because the default color in Quarto has also set the |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
It does not work because you need to be more precise in your rule as explained in https://quarto.org/docs/presentations/revealjs/themes.html#customizing-themes. I don't know why the default CSS rule in Quarto adds Note that you can't change the colour of the icon because that's a raster image. ---
title: "Quarto Playground"
format:
revealjs:
theme: [default, custom.scss]
---
## Quarto Playground
::: {.callout-warning icon="false"}
## {{< iconify octicon:copilot-warning-16 >}} Warning
This is a warning!
::: /*-- scss:defaults --*/
$purple: #800080;
/*-- scss:rules --*/
.reveal .slide div.callout-warning {
border-left-color: $purple !important;
}
.reveal .slide div.callout-warning.callout-style-default .callout-title {
background-color: lighten($purple, 50%);
} ![]() Also note the following discussion: |
Beta Was this translation helpful? Give feedback.
-
Enhancement on this is tracked at |
Beta Was this translation helpful? Give feedback.
Enhancement on this is tracked at