Skip to content

Commit 2eab7cb

Browse files
committed
revealjs - use rem units for spacing in columns
This is to be relative to base font size and not depend of element size for elements in column This complements previous changes regarding spacing 805f7ad and d987a8c closes #9999
1 parent c6c251a commit 2eab7cb

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

news/changelog-1.6.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ All changes included in 1.6:
4141
- ([#9558](https://github.com/quarto-dev/quarto-cli/issues/9558)): To prevent default footer to show on slide, set `footer='false'` attribute on the slide header, e.g. `## Slide with no footer {footer='false'}`
4242
- ([#6012](https://github.com/quarto-dev/quarto-cli/issues/6012)): Add styling for `kbd` element in Revealjs slides.
4343
- ([#10887](https://github.com/quarto-dev/quarto-cli/issues/10887)): Updating default Mathjax used from 2.7.0 to 2.7.9.
44+
- ([#9999](https://github.com/quarto-dev/quarto-cli/issues/9999)): Fix spacing problems of different size elements in columns.
4445

4546
## `typst` Format
4647

src/resources/formats/revealjs/quarto.scss

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -461,17 +461,17 @@ $panel-sidebar-padding: 0.5em;
461461
}
462462

463463
.reveal .columns > .column > :not(ul, ol) {
464-
margin-left: 0.25em;
465-
margin-right: 0.25em;
464+
margin-left: 0.25rem;
465+
margin-right: 0.25rem;
466466
}
467467

468468
.reveal .columns > .column:first-child > :not(ul, ol) {
469-
margin-right: 0.5em;
469+
margin-right: 0.5rem;
470470
margin-left: 0;
471471
}
472472
.reveal .columns > .column:last-child > :not(ul, ol) {
473473
margin-right: 0;
474-
margin-left: 0.5em;
474+
margin-left: 0.5rem;
475475
}
476476

477477
.reveal .slide-number {

0 commit comments

Comments
 (0)