Skip to content

Commit

Permalink
Expose CSS property --qd-slides-horizontal-alignment
Browse files Browse the repository at this point in the history
  • Loading branch information
iamgio committed Aug 19, 2024
1 parent e790f08 commit d2d1953
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
5 changes: 5 additions & 0 deletions core/src/main/resources/render/theme/global.css
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
--qd-box-margin-multiplier: 1.5; /* --qd-block-margin * this = box vertical margin */
--qd-box-heading-font: var(--qd-main-font);
--qd-line-height: 1.5;
--qd-slides-horizontal-alignment: center; /* Text alignment of slides documents */

/* Reveal properties */
--r-background-color: var(--qd-background-color);
Expand All @@ -25,6 +26,10 @@
--r-block-margin: var(--qd-block-margin);
}

.reveal .slides > :is(section, .pdf-page) {
text-align: var(--qd-slides-horizontal-alignment);
}

body {
background-color: var(--qd-background-color);
color: var(--qd-main-color);
Expand Down
5 changes: 1 addition & 4 deletions core/src/main/resources/render/theme/layout/beamer.css
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,7 @@
--qd-code-span-font-size: 0.9em;
--qd-block-margin: 32px;
--qd-box-margin-multiplier: 1.2;
}

.reveal .slides > section {
text-align: start;
--qd-slides-horizontal-alignment: start;
}

h1 {
Expand Down

0 comments on commit d2d1953

Please sign in to comment.