Set the Icon of Callout Block #3563
-
It would be great to have control over the callout block. If not, at least add a callout with question mark to allow questions in the context of presentation for teaching. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 22 replies
-
Set icon to false and use any of the Quarto shortcodes extensions to add a new icon using level 2 header inside the callout. ::: {.callout-note icon=false}
## {{< iconify fa6-brands fa-circle-question >}} Question
Using callouts is an effective way to highlight content that your reader give special consideration or attention.
::: |
Beta Was this translation helpful? Give feedback.
-
It's a bit tricky but you can replace the icon with an SVG (e.g. from Boostrap Icons) via CSS, e.g. div.callout-note:not(.callout-titled) .callout-icon::before {
background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="%232373cc" class="bi bi-arrow-right-circle" viewBox="0 0 16 16"><path fill-rule="evenodd" d="M1 8a7 7 0 1 0 14 0A7 7 0 0 0 1 8m15 0A8 8 0 1 1 0 8a8 8 0 0 1 16 0M4.5 7.5a.5.5 0 0 0 0 1h5.793l-2.147 2.146a.5.5 0 0 0 .708.708l3-3a.5.5 0 0 0 0-.708l-3-3a.5.5 0 1 0-.708.708L10.293 7.5z"/></svg>');
} A simple configuration key such as |
Beta Was this translation helpful? Give feedback.
Set icon to false and use any of the Quarto shortcodes extensions to add a new icon using level 2 header inside the callout.
::: {.callout-note icon=false} ## {{< iconify fa6-brands fa-circle-question >}} Question Using callouts is an effective way to highlight content that your reader give special consideration or attention. :::