@codename/deck 0.2.0 → 0.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/deck.css CHANGED
@@ -58,6 +58,13 @@
58
58
  :is(.deck[data-scheme="light"] :is(.deck-slide[data-paper="ink"], .deck-class-invert), .deck[data-scheme="dark"] .deck-slide:is([data-paper="paper"], [data-paper="soft"]):not(.deck-class-invert), .deck[data-fill="dark"] .deck-slide[data-paper="fill"]) .deck-logo.is-dark { display: block; }
59
59
  :is(.deck[data-scheme="light"] :is(.deck-slide[data-paper="ink"], .deck-class-invert), .deck[data-scheme="dark"] .deck-slide:is([data-paper="paper"], [data-paper="soft"]):not(.deck-class-invert), .deck[data-fill="dark"] .deck-slide[data-paper="fill"]) .deck-logo:not(.has-dark, .is-dark) { background: #fff; padding: 0.5cqi; border-radius: 0.5cqi; }
60
60
 
61
+ /* A layout's art (docs/kits.md), as its template draws it, behind words that sit where the template has them: its grid edge to edge, the slide laid out left to right, its number too. */
62
+ .deck-art { position: absolute; inset: 0; inline-size: 100%; block-size: 100%; pointer-events: none; }
63
+ .deck-slide.has-art { direction: ltr; }
64
+ .has-art .deck-canvas { padding: 0; gap: 0; }
65
+ .has-art .deck-slot { padding: 0.5cqi 1cqi; }
66
+ .deck[dir="rtl"] .has-art .deck-slot { direction: rtl; }
67
+
61
68
  /* Layouts from their kit's definition: the paper they are on, where their words sit, how big their heading is. */
62
69
  .deck-slide[data-paper="fill"] { background: var(--deck-fill); color: var(--deck-on-fill); }
63
70
  .deck-slide[data-paper="ink"] { background: var(--deck-ink); color: var(--deck-paper); }