Skip to content
This repository was archived by the owner on Feb 6, 2024. It is now read-only.

Commit a9d3616

Browse files
feat: new options and reveal span
1 parent 51543b4 commit a9d3616

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

doc/slides/slides.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -256,6 +256,7 @@ The following theming options will affect this component if set on its host or p
256256
| --color | | |
257257
| --code-color | | The color of the displayed code |
258258
| --code-font-size | | The size of the font for the code |
259+
| --code-font-family | | The family of the font for the code |
259260
| --slide-padding-top | 16px | Padding top of the all slide |
260261
| --slide-padding-end | 32px | Padding right of the all slide |
261262
| --slide-padding-bottom | 16px | Padding bottom of the all slide |

src/components/slides/deckdeckgo-slide-code/deckdeckgo-slide-code.scss

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ div.deckgo-code-container {
2323
overflow-y: scroll;
2424

2525
font-size: var(--code-font-size);
26+
font-family: var(--code-font-family);
2627

2728
div:empty {
2829
min-height: 1rem;

src/components/slides/deckdeckgo-slide.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ export class DeckDeckGoSlideUtils {
88

99
static hideElements(el: HTMLElement, revealShowFirst: boolean): Promise<void> {
1010
return new Promise<void>((resolve) => {
11-
const elements: NodeListOf<HTMLElement> = el.querySelectorAll(revealShowFirst ? '[slot] > li:not(:first-child), [slot] > p:not(:first-child), [slot] > img:not(:first-child)' : '[slot] > li, [slot] > p, [slot] > img');
11+
const elements: NodeListOf<HTMLElement> = el.querySelectorAll(revealShowFirst ? '[slot] > li:not(:first-child), [slot] > p:not(:first-child), [slot] > span:not(:first-child) [slot] > img:not(:first-child)' : '[slot] > li, [slot] > p, [slot] > span, [slot] > img');
1212

1313
if (!elements) {
1414
resolve();
@@ -22,7 +22,7 @@ export class DeckDeckGoSlideUtils {
2222

2323
private static showElement(el: HTMLElement): Promise<boolean> {
2424
return new Promise<boolean>((resolve) => {
25-
const elements: NodeListOf<HTMLElement> = el.querySelectorAll('[slot] > li, [slot] > p, [slot] > img');
25+
const elements: NodeListOf<HTMLElement> = el.querySelectorAll('[slot] > li, [slot] > p, [slot] > span, [slot] > img');
2626

2727
let couldSwipe: boolean = true;
2828

@@ -43,7 +43,7 @@ export class DeckDeckGoSlideUtils {
4343

4444
private static hideElement(el: HTMLElement): Promise<boolean> {
4545
return new Promise<boolean>((resolve) => {
46-
const elements: NodeListOf<HTMLElement> = el.querySelectorAll('[slot] > li, [slot] > p, [slot] > img');
46+
const elements: NodeListOf<HTMLElement> = el.querySelectorAll('[slot] > li, [slot] > p, [slot] > span, [slot] > img');
4747

4848
let couldSwipe: boolean = true;
4949

0 commit comments

Comments
 (0)