fb-slides 0.5.0 → 0.5.1
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/package.json
CHANGED
package/runtime/theme.base.css
CHANGED
|
@@ -309,6 +309,18 @@ html[data-reveal-theme] .reveal strong { color: var(--r-heading-color, var(--tex
|
|
|
309
309
|
height: 100%;
|
|
310
310
|
/* Full-bleed: this one is the demo, not a slide about the demo. */
|
|
311
311
|
margin: 0;
|
|
312
|
+
box-sizing: border-box;
|
|
313
|
+
/* The toolbar, arrows and signature live in fixed viewport space along the
|
|
314
|
+
bottom, where a full-height slide runs under them. Reserve that strip:
|
|
315
|
+
66px of viewport clears the toolbar (bottom 14px + 44px chip + air), minus
|
|
316
|
+
the letterbox gap the slide already has, converted to slide space through
|
|
317
|
+
reveal's own scale. On tall windows the gap alone is enough and this
|
|
318
|
+
resolves to zero. */
|
|
319
|
+
padding-bottom: max(0px, calc(
|
|
320
|
+
(66px
|
|
321
|
+
- (var(--viewport-height, 100vh) - var(--slide-height, 720px) * var(--slide-scale, 1)) / 2)
|
|
322
|
+
/ var(--slide-scale, 1)
|
|
323
|
+
));
|
|
312
324
|
}
|
|
313
325
|
.reveal .slides section.demo-slide header {
|
|
314
326
|
display: flex;
|
|
@@ -350,11 +362,10 @@ html[data-reveal-theme] .reveal strong { color: var(--r-heading-color, var(--tex
|
|
|
350
362
|
.reveal-viewport { --r-controls-spacing: 30px; }
|
|
351
363
|
|
|
352
364
|
.reveal .slide-number {
|
|
353
|
-
background:
|
|
354
|
-
color: var(--muted);
|
|
365
|
+
background: none;
|
|
366
|
+
color: color-mix(in srgb, var(--muted) 40%, transparent);
|
|
355
367
|
font-family: var(--mono);
|
|
356
|
-
font-size:
|
|
357
|
-
border-radius: 6px;
|
|
368
|
+
font-size: 13px;
|
|
358
369
|
padding: 3px 8px;
|
|
359
370
|
/* Centred under the arrows: the pair spans 100px inwards from the spacing
|
|
360
371
|
edge, so its middle is spacing + 50px in from the left. */
|
|
@@ -20,6 +20,16 @@ section: Demos
|
|
|
20
20
|
|
|
21
21
|
---
|
|
22
22
|
|
|
23
|
+
<!-- demo: https://stage.mokup.dev/embed/95ff8eab-3c34-4eaf-9f53-e263ee1c6062 -->
|
|
24
|
+
|
|
25
|
+
## A mokup embed
|
|
26
|
+
|
|
27
|
+
<div class="mockup-frame">
|
|
28
|
+
<iframe src="https://stage.mokup.dev/embed/95ff8eab-3c34-4eaf-9f53-e263ee1c6062" width="800" height="500" style="border:0;" allowfullscreen></iframe>
|
|
29
|
+
</div>
|
|
30
|
+
|
|
31
|
+
---
|
|
32
|
+
|
|
23
33
|
## How those two slides work
|
|
24
34
|
|
|
25
35
|
```markdown
|
|
@@ -2,6 +2,17 @@
|
|
|
2
2
|
Redefining a token here reskins the whole deck. Delete this file if the
|
|
3
3
|
default dark theme is fine as it is. */
|
|
4
4
|
|
|
5
|
+
.mockup-frame {
|
|
6
|
+
display: flex;
|
|
7
|
+
justify-content: center;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
.mockup-frame iframe {
|
|
11
|
+
max-width: 100%;
|
|
12
|
+
border-radius: 8px;
|
|
13
|
+
background: #fff;
|
|
14
|
+
}
|
|
15
|
+
|
|
5
16
|
/*
|
|
6
17
|
:root {
|
|
7
18
|
--bg: #0e1116;
|