quarto-dev / quarto-cli

Open-source scientific and technical publishing system built on Pandoc.
https://quarto.org
Other
3.88k stars 318 forks source link

collapse setting in callout block in a revealjs presentation not working #1328

Open meersel opened 2 years ago

meersel commented 2 years ago

The setting collapse="true" does not work in a revealjs presentation.

See code below:

:::{.callout-caution collapse="true"}
## Expand To Learn About Collapse

This is an example of a 'folded' caution callout that can be expanded by the user. You can use `collapse="true"` to collapse it by default or `collapse="false"` to make a collapsible callout that is expanded by default.

:::
jjallaire commented 2 years ago

That's unfortunately a known limitation for the time being (we'll update the docs to reflect that)

meersel commented 2 years ago

Okay thank you for the feedback.

Will tachyons be supported in Quarto ?

Hope to meet you at the RStudio 2022 Conference. It is my first RStudio conference

jjallaire commented 2 years ago

Look forward to seeing you at the conference!

Not sure about tachyons being a built in feature but it's likely that a tachyons extension will emerge after we document how to write extensions.

alexCardazzi commented 1 year ago

Is there any progress on this issue? Thanks!

mcanouil commented 1 year ago

If the issue is still open with no additional comments, this likely means nothing new.

There is one extension on the subject for HTML format: https://github.com/shafayetShafee/collapse-callout

webbedfeet commented 1 year ago

Okay thank you for the feedback.

Will tachyons be supported in Quarto ?

Hope to meet you at the RStudio 2022 Conference. It is my first RStudio conference

I've been using tachyons by including tachyons.min.css in my CSS specification, and adding the tachyons shortcuts as class specifications (separated by space) in div blocks

So

::: { .bg-light-blue .b--blue .tl .ba .bw2 .br3 .shadow-5 .ph4 .mt5 .f4 .avenir}

This works, but I'm sure there's a better solution out there

sebacea commented 1 year ago

A functional proposal should be something like this

::: panel-tabset
## Callout title

## Callout expansion

Content of expansion
:::

perhaps it serves for some inspiration to solve this issue

See also PR on Quarto Web

mcanouil commented 1 year ago

It's not a "functional proposal", it's a workaround as it completely discards the use of call-outs and uses panel tabset feature.

sebacea commented 1 year ago

Absolutely, call it whatever you like. It was only a proposal... trying to help

nicshub commented 2 weeks ago

Just keeping the issue active, I believe that support in reveal could be very useful for teaching purposes

mcanouil commented 2 weeks ago

Just keeping the issue active

This is not a thing. If an issue has the status "open", it means it is still considered something to be worked on.

If you want to show that it's "useful" or that you are interested in, simply react to the initial post. This is less disruptive as it does not trigger notification for everyone and makes it clearer you are interested while allowing us to filter issues based on reactions.