@codename/deck 0.1.2 → 0.2.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
@@ -47,6 +47,16 @@
47
47
  .deck-block .deck-block-source { display: none; }
48
48
  .deck-block.is-failed .deck-block-source { display: block; }
49
49
  .deck-number { position: absolute; inset-block-end: 2.6cqi; inset-inline-end: 3cqi; font-size: 1.5cqi; color: var(--deck-muted); font-variant-numeric: tabular-nums; }
50
+ /* The kit's logo (docs/kits.md): in its corner, small, or big on a cover and at the end; on dark paper its dark one, else on a light plate. */
51
+ .deck-logo { position: absolute; z-index: 1; inset-block-start: 3.2cqi; inset-inline-end: 3.5cqi; block-size: 4.5cqi; inline-size: auto; max-inline-size: 20cqi; object-fit: contain; pointer-events: none; }
52
+ .deck-logo[data-size="big"] { block-size: 8cqi; max-inline-size: 32cqi; }
53
+ .deck-logo[data-at$="start"] { inset-inline: 3.5cqi auto; }
54
+ .deck-logo[data-at^="bottom"] { inset-block: auto 3.2cqi; }
55
+ .deck-slide:has(.deck-logo[data-at="bottom-end"]) .deck-number { inset-inline: 3cqi auto; }
56
+ .deck-logo.is-dark { display: none; }
57
+ :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.has-dark { display: none; }
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
+ :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; }
50
60
 
51
61
  /* Layouts from their kit's definition: the paper they are on, where their words sit, how big their heading is. */
52
62
  .deck-slide[data-paper="fill"] { background: var(--deck-fill); color: var(--deck-on-fill); }