feat(slides): add sandboxed Reveal.js viewer and editor preview
Build and publish container images / images (push) Successful in 9m2s
Release container images / release (push) Successful in 21s

This commit is contained in:
Anya Tokugawa committed 2026-11-08 22:10:52 +09:00
1 parent 09afb438c9
commit 02fb77f72b
30 files changed
+532 -9

No files matched your search

+9
View File
@@ -0,0 +1,9 @@
html,body{height:100%;margin:0;overflow:hidden;font-family:system-ui,sans-serif}
.reveal{height:100%;font-size:30px;line-height:1.4;color:inherit}
.reveal .slides{text-align:left}.reveal h1{font-size:2em}.reveal h2{font-size:1.6em}.reveal h3{font-size:1.25em}
.reveal p,.reveal ul,.reveal ol,.reveal pre,.reveal table{margin:.6em 0}
.reveal ul,.reveal ol{display:block;margin-left:1.3em}.reveal li{margin:.2em 0}
.reveal pre{font-size:.65em;white-space:pre-wrap;padding:.5em;background:#8882;max-height:500px;overflow:auto}
.reveal code{font-family:ui-monospace,monospace}.reveal table{border-collapse:collapse;font-size:.8em}.reveal td,.reveal th{border:1px solid #8886;padding:.3em .5em}
.reveal img{max-width:90%;max-height:500px;object-fit:contain}.reveal a{color:inherit;text-decoration:underline}
.reveal .controls,.reveal .progress{color:inherit}.reveal .slide-number{font-size:16px}
+23
View File
@@ -0,0 +1,23 @@
.slides-page{height:100dvh;margin:0;display:flex;flex-direction:column;overflow:hidden}
.slides-page .topbar{position:static;flex-shrink:0;display:flex;gap:1rem;align-items:center;padding:.5rem 1rem}
.slides-page .topbar span{flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.slides-page [data-slides-viewer]{flex:1;min-height:0;width:100%}
.slides-preview{position:relative;min-height:300px;background:var(--bg);color:var(--fg)}
.slides-frame{display:block;border:0;width:100%;height:100%;min-height:300px;background:inherit}
.slides-frame[hidden],.slides-fallback[hidden]{display:none!important}
.slides-fallback{padding:1rem;overflow:auto;max-height:100%}
.slides-fallback section{padding:1rem;border-bottom:1px solid var(--border)}
.slides-preview:fullscreen{background:var(--bg);height:100dvh;width:100vw}
.mode-editor .slides-preview{padding:0!important;height:100%;overflow:hidden}
[data-editor-action=slides][aria-pressed=true]{color:var(--accent);background:var(--bg-elevated,var(--bg))}
@media(max-width:700px){.slides-frame{min-height:240px}.slides-page .topbar button,.slides-page .topbar a{min-height:44px;min-width:44px;display:grid;place-items:center}}
@media(max-width:700px){
body.mode-editor:has([data-editor-action=slides]){display:flex;flex-direction:column;height:100dvh}
body.mode-editor:has([data-editor-action=slides]) .topbar{height:auto;flex-shrink:0;flex-wrap:wrap;gap:.25rem}
body.mode-editor:has([data-editor-action=slides]) .topbar .brand,body.mode-editor:has([data-editor-action=slides]) .auth-user-name{display:none}
body.mode-editor:has([data-editor-action=slides]) .editor-head{flex:0 0 100%;order:1;gap:.5rem}
body.mode-editor:has([data-editor-action=slides]) .editor-head-right{flex-shrink:0}
body.mode-editor:has([data-editor-action=slides]) .container{flex:1;min-height:0;height:auto}
body.mode-editor .editor-grid:has(.slides-preview):not(.preview-hidden){grid-template-columns:1fr!important}
body.mode-editor .editor-grid:has(.slides-preview):not(.preview-hidden) .editor-pane{display:none}
}