Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 21 additions & 3 deletions assets/components.css
Original file line number Diff line number Diff line change
Expand Up @@ -52,16 +52,17 @@ html, body {
font-size: 10px; font-weight: 800;
}
.progress-bar {
position: fixed; bottom: 0; left: 0; height: 3px; z-index: 100;
/* env() resolves to 0 on non-notched and desktop, so those layouts are unchanged. */
position: fixed; bottom: calc(0px + env(safe-area-inset-bottom, 0px)); left: 0; height: 3px; z-index: 100;
background: linear-gradient(90deg, var(--accent-blue), var(--accent-purple), var(--accent-green));
transition: width 0.4s ease;
}
.slide-counter {
position: fixed; bottom: 20px; right: 32px; font-size: 13px;
position: fixed; bottom: calc(20px + env(safe-area-inset-bottom, 0px)); right: 32px; font-size: 13px;
font-weight: 500; color: var(--text-dim); z-index: 100; font-variant-numeric: tabular-nums;
}
.nav-hints {
position: fixed; bottom: 20px; left: 32px; font-size: 12px;
position: fixed; bottom: calc(20px + env(safe-area-inset-bottom, 0px)); left: 32px; font-size: 12px;
color: var(--text-dim); z-index: 100;
}
.nav-hints kbd {
Expand Down Expand Up @@ -665,3 +666,20 @@ h2 { font-size: clamp(28px,3.5vw,48px); font-weight: 800; line-height: 1.15; let
color: var(--text-muted); max-width: 640px;
margin-top: clamp(6px, 1vh, 12px);
}

/* ===========================================
REDUCED MOTION
Respect user preferences
=========================================== */
@media (prefers-reduced-motion: reduce) {
*, *::before, *::after {
/* iteration-count 1 stops the infinite particle, glow, and bob loops. */
animation-duration: 0.01ms !important;
animation-iteration-count: 1 !important;
transition-duration: 0.2s !important;
}

html {
scroll-behavior: auto;
}
}
4 changes: 2 additions & 2 deletions references/html-template.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ Every generated HTML file **must** comply with these rules:
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="viewport" content="width=device-width, initial-scale=1.0, viewport-fit=cover">
<meta name="generator" content="html-slides v0.9.4">
<title>Presentation Title</title>

Expand Down Expand Up @@ -421,7 +421,7 @@ Save processed images with `_processed` suffix. Never overwrite originals.
**Accessibility:**
- Keyboard navigation works fully
- ARIA labels where needed
- `prefers-reduced-motion` support (included in viewport-base.css)
- `prefers-reduced-motion` support lives in viewport-base.css for the Vibe path and components.css for the Pro path

## File Structure

Expand Down