oliverv/caro / .agents/skills/oma-slide
oma-slide
UnverifiedCreate, import, revise, or export presentation decks through the OMA slide CLI. Use for HTML slides and PDF, PNG, or PPTX deck delivery.
| File | Kind | Size |
|---|---|---|
| SKILL.md | skill md | 13.7 KB |
| resources/animation-patterns.md | markdown | 8.4 KB |
| resources/assets/deck-stage.js | script | 16.5 KB |
| resources/assets/viewport-base.css | other | 8.8 KB |
| resources/canva-integration.md | markdown | 11.3 KB |
| resources/checklist.md | markdown | 1.7 KB |
| resources/design-doctrine.md | markdown | 11.4 KB |
| resources/fixed-stage.md | markdown | 9.0 KB |
| resources/generation-protocol.md | markdown | 18.7 KB |
| resources/selection-index.json | config | 25.3 KB |
| resources/style-presets.md | markdown | 15.5 KB |
resources/assets/viewport-base.css
View on GitHub/*
* viewport-base.css — oma-slide fixed-stage shared CSS
*
* Usage: paste or <link> into a single-file deck, viewer.html, or any per-slide fragment.
* No build step required. Self-contained.
*
* Stage model: 1920×1080 px authored size.
* The entire .deck-stage is scaled uniformly with transform: scale() so it
* always fits the viewport while preserving pixel-exact geometry.
* Letterbox (horizontal bars) or pillarbox (vertical bars) fill the rest.
*
* NEVER reflow slides by changing the stage dimensions per viewport.
* NEVER use display:none / display:block to hide/show slides —
* later layout classes can override those and show all slides at once.
* Use .active / .visible (visibility + opacity + pointer-events) instead.
*/
/* ─── Reset / base ───────────────────────────────────────────────────── */
*,
*::before,
*::after {
box-sizing: border-box;
margin: 0;
padding: 0;
}
/* ─── Viewport container ─────────────────────────────────────────────── */
/*
* .deck-viewport fills the browser window and provides the black letterbox /
* pillarbox background. The stage is absolutely centred inside it.
*/
.deck-viewport {
position: fixed;
inset: 0;
width: 100vw;
height: 100vh;
overflow: hidden;
background: #000;
display: flex;
align-items: center;
justify-content: center;
}
/* ─── Fixed 1920×1080 stage ──────────────────────────────────────────── */
/*
* .deck-stage is always authored at exactly 1920×1080 px.
* deck-stage.js calculates scale = Math.min(vw/1920, vh/1080) and applies
* transform: scale(scale) here. transform-origin is top-left so the maths
* in the JS stays simple (translate the stage to centre manually).
*
* DO NOT change width/height — that would break the validator's geometry contract.
*/
.deck-stage {
position: relative;
width: 1920px;
height: 1080px;
transform-origin: top left;
/* transform: scale(…) injected by deck-stage.js at runtime */
overflow: hidden;
background: #fff;
/* GPU compositing layer — avoids subpixel paint during scale animation */
will-change: transform;
}
/* ─── Individual slides ──────────────────────────────────────────────── */
/*
* Each .slide is absolutely positioned to fill the entire stage.
* Visibility is controlled exclusively via .active and .visible classes —
* never via display:none / display:block.
*
* Base state: invisible and non-interactive.
*/
.slide {
position: absolute;
inset: 0;
width: 1920px;
height: 1080px;
overflow: hidden;
/* Hidden by default — do NOT change to display:none */
visibility: hidden;
opacity: 0;
pointer-events: none;
/* Default transition for enter/exit (overridden per-theme) */
transition:
opacity 0.35s ease,
visibility 0s linear 0.35s;
}
/*
* .active — the slide scheduled to be fully visible.
* Applied by deck-stage.js when navigating TO this slide.
* visibility fires immediately; opacity transitions in.
*/
.slide.active {
visibility: visible;
opacity: 1;
pointer-events: auto;
transition:
opacity 0.35s ease,
visibility 0s linear 0s;
z-index: 1;
}
/*
* .visible — a slide that was active and is fading out.
* Applied briefly during a cross-fade so the outgoing slide stays rendered
* while the incoming one fades in.
*/
.slide.visible {
visibility: visible;
opacity: 0;
pointer-events: none;
transition:
opacity 0.35s ease,
visibility 0s linear 0.35s;
z-index: 0;
}
/* ─── Reduced-motion override ────────────────────────────────────────── */
/*
* When the user prefers reduced motion, skip all opacity/transform
* transitions on slides and stage. The visibility swap happens instantly.
* This applies to slide transitions AND any CSS animations authored inside
* individual slide fragments that follow this convention.
*/
@media (prefers-reduced-motion: reduce) {
.slide,
.slide.active,
.slide.visible {
transition: none;
}
/* Authors: wrap animated elements in .motion-safe to respect this. */
/*
* !important is REQUIRED here, not a smell: per-slide author animations are
* scoped by the bundler to `#slide-NN .x` (an id selector, specificity ≥1,1,0),
* which no class-level selector can outrank. This canonical a11y reset must win
* regardless, so it overrides by !important — the only mechanism that defeats
* id specificity. Linting vendored .agents/ assets flags this as a false
* positive; exclude .agents/ from the consumer linter instead.
*/
.motion-safe * {
animation-duration: 0.01ms !important;
animation-iteration-count: 1 !important;
transition-duration: 0.01ms !important;
}
}
/* ─── Nav controls (viewer / viewer.html) ────────────────────────────── */
/*
* Minimal accessible navigation buttons injected by deck-stage.js.
* Visible focus states are REQUIRED (WCAG 2.4.7 / 2.4.11).
*/
.deck-nav {
position: fixed;
bottom: 1.5rem;
left: 50%;
transform: translateX(-50%);
display: flex;
gap: 0.75rem;
z-index: 100;
/* Hide during full-screen presentation; show on hover */
opacity: 0.15;
transition: opacity 0.2s ease;
}
.deck-nav:hover,
.deck-nav:focus-within {
opacity: 1;
}
.deck-nav button {
appearance: none;
border: 2px solid rgba(255, 255, 255, 0.7);
background: rgba(0, 0, 0, 0.55);
color: #fff;
border-radius: 0.375rem;
padding: 0.4rem 0.9rem;
font-size: 0.875rem;
cursor: pointer;
line-height: 1;
font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}
.deck-nav button:hover {
background: rgba(0, 0, 0, 0.8);
border-color: #fff;
}
/* REQUIRED: visible focus ring for keyboard nav */
.deck-nav button:focus-visible {
outline: 3px solid #4af;
outline-offset: 2px;
}
/* ─── Slide counter ──────────────────────────────────────────────────── */
.deck-counter {
position: fixed;
bottom: 1.5rem;
right: 1.5rem;
color: rgba(255, 255, 255, 0.5);
font-size: 0.75rem;
font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
z-index: 100;
letter-spacing: 0.05em;
pointer-events: none;
user-select: none;
}
/* ─── Print / Save-as-PDF ────────────────────────────────────────────── */
/*
* Print: one slide per page at design size.
* deck-stage.js removes the transform scale so the browser sees
* a 1920×1080-equivalent layout. Each slide prints as its own page.
*/
@media print {
html,
body {
margin: 0;
padding: 0;
}
.deck-viewport {
position: static;
width: auto;
height: auto;
overflow: visible;
background: transparent;
display: block;
}
/*
* No !important needed: the only thing that could keep a transform here is the
* INLINE scale deck-stage.js applies, and that is cleared at the source on
* `beforeprint` — fired by the browser on Ctrl+P and dispatched explicitly by
* the headless PDF export (export/pdf.ts) before page.pdf().
*/
.deck-stage {
position: static;
width: 1920px;
height: 1080px;
transform: none;
overflow: visible;
will-change: auto;
}
/* Deck chrome has no competing author/inline rule — plain display:none wins. */
.deck-nav,
.deck-counter {
display: none;
}
/*
* Show all slides, each on its own page.
*
* No !important: in the MERGED viewer/bundle the per-slide author rule
* `.slide { position: absolute }` is scoped to `#slide-NN` (id, specificity
* 1,0,0) and would outrank this generic `.slide` (0,1,0). Rather than fight it
* with !important, the bundler (buildPrintPaginationReset in scope-css.ts)
* emits a matching `#slide-NN` reset AFTER the author styles, which wins by
* source order at equal specificity. This generic rule remains the baseline
* for standalone/unscoped slides and supplies the page-break declarations.
*/
.slide {
position: relative;
inset: auto;
visibility: visible;
opacity: 1;
pointer-events: none;
transition: none;
page-break-after: always;
break-after: page;
}
/* No trailing blank page: the last slide must not force a page break. */
.slide:last-child {
page-break-after: auto;
break-after: auto;
}
.slide.active,
.slide.visible {
z-index: auto;
}
}
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| canvas-designanthropics/skillsCreate beautiful visual art in .png and .pdf documents using design philosophy. You should use this skill when the user asks to create a poster, piece of art, design, or other static piece. Create original visual designs, never copying existing artists' work to avoid copyright violations. | Stars: 198k | Updated | Claude CodeCodex | Verified | Install |
| docxanthropics/skillsUse this skill whenever the user wants to create, read, edit, or manipulate Word documents (.docx files) or Word templates (.dotx files). Triggers include: any mention of 'Word doc', 'word document', '.docx', '.dotx', or requests to produce professional documents with formatting like tables of contents, headings, page numbers, or letterheads. Also use when extracting or reorganizing content from .docx or .dotx files, inserting or replacing images in documents, performing find-and-replace in Word files, working with tracked changes or comments, or converting content into a polished Word document. If the user asks for a 'report', 'memo', 'letter', 'template', or similar deliverable as a Word or .docx file, use this skill. Do NOT use for PDFs, spreadsheets, Google Docs, or general coding tasks unrelated to document generation. | Stars: 198k | Updated | Claude CodeCodex | Verified | Install |
| pdfanthropics/skillsUse this skill whenever the user wants to do anything with PDF files. This includes reading or extracting text/tables from PDFs, combining or merging multiple PDFs into one, splitting PDFs apart, rotating pages, adding watermarks, creating new PDFs, filling PDF forms, encrypting/decrypting PDFs, extracting images, and OCR on scanned PDFs to make them searchable. If the user mentions a .pdf file or asks to produce one, use this skill. | Stars: 198k | Updated | Claude CodeCodex | Verified | Install |
| pptxanthropics/skillsUse this skill any time a .pptx or .potx file is involved in any way — as input, output, or both. This includes: creating slide decks, pitch decks, or presentations; reading, parsing, or extracting text from any .pptx or .potx file (even if the extracted content will be used elsewhere, like in an email or summary); editing, modifying, or updating existing presentations; combining or splitting slide files; working with templates (.potx), layouts, speaker notes, or comments. Trigger whenever the user mentions "deck," "slides," "presentation," or references a .pptx or .potx filename, regardless of what they plan to do with the content afterward. If a .pptx or .potx file needs to be opened, created, or touched, use this skill. | Stars: 198k | Updated | Claude CodeCodex | Verified | Install |