Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

revealjs - find a way to correctly support vstack / hstack layout #10215

Open
cderv opened this issue Jul 3, 2024 · 0 comments
Open

revealjs - find a way to correctly support vstack / hstack layout #10215

cderv opened this issue Jul 3, 2024 · 0 comments
Assignees
Labels
enhancement New feature or request revealjs Issues with the revealjs format
Milestone

Comments

@cderv
Copy link
Collaborator

cderv commented Jul 3, 2024

Something like this

## Quarto Workflow

::: {.r-vstack}

![](images/rstudio-qmd-how-it-works.png)

![](images/qmd-how-it-works.png){.fragment}

![](images/ipynb-how-it-works.png){.fragment}

:::

Should be supported to have a nice layout per

// Horizontal and vertical stacks
.reveal .r-vstack,
.reveal .r-hstack {
display: flex;
img, video {
min-width: 0;
min-height: 0;
object-fit: contain;
}
}
.reveal .r-vstack {
flex-direction: column;
align-items: center;
justify-content: center;
}
.reveal .r-hstack {
flex-direction: row;
align-items: center;
justify-content: center;
}

from revealjs. It is not documented at https://revealjs.com/layout/ though

But it is in the examples : https://refined-github-html-preview.kidonng.workers.dev/hakimel/reveal.js/raw/master/examples/layout-helpers.html

It is not working because like with .r-stretch it works when img are inside the div directly

<div class="r-vstack">
  <img width="450" height="300" src="...">
  <img width="300" height="450" src="...">
  <img width="400" height="400" src="...">
</div>

but pandoc is adding a <p>

<div class="r-vstack">
  <p><img width="450" height="300" src="..."></p>
  <p><img width="300" height="450" src="..."></p>
  <p><img width="400" height="400" src="..."></p>
</div>
@cderv cderv added enhancement New feature or request revealjs Issues with the revealjs format labels Jul 3, 2024
@cderv cderv added this to the v1.6 milestone Jul 3, 2024
@cderv cderv self-assigned this Jul 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request revealjs Issues with the revealjs format
Projects
None yet
Development

No branches or pull requests

1 participant