diff --git a/src/slides/compile.ts b/src/slides/compile.ts index 4720d4c..37f51a1 100644 --- a/src/slides/compile.ts +++ b/src/slides/compile.ts @@ -109,6 +109,9 @@ function slideSelector(id: string): string { return `[data-ps-slide="${id}"]` } +/** What `:thisSlide` means inside the global slide's styles: any slide. */ +const ANY_SLIDE_SELECTOR = '[data-ps-slide]' + const THIS_SLIDE = ':thisSlide' // `` is a bogus comment to the HTML parser, so a placeholder would not @@ -206,52 +209,40 @@ function isGlobalTemplate(global: string): boolean { * Compile a project into runtime-ready data. * * Every `