:root { color-scheme: dark; --bg: #181818; --bg-raised: #202020; --bg-sunken: #101010; --text: #e8e8e8; --text-muted: #a0a0a0; --border-color: #3f3f3f; --accent: #008800; --accent-text: #ffffff; --slide-bg: #ffffff; --slide-border: #000000; } body { margin: 0; font-family: sans-serif; background: var(--bg); color: var(--text); } .container { display: grid; grid-template-columns: minmax(0, 0.6fr) minmax(0, 40%) minmax(0, 1fr); grid-template-rows: 0.03fr 1fr; gap: 0; grid-auto-flow: row; grid-template-areas: 'menubar menubar menubar' 'slidelist code preview'; width: 100vw; height: 100vh; } .menubar { grid-area: menubar; background-color: var(--accent); color: var(--accent-text); display: flex; align-items: center; padding-left: 1rem; padding-right: 1rem; border-bottom: 1px solid var(--border-color); } .slidelist { grid-area: slidelist; min-width: 0; background-color: var(--bg); border-right: 1px solid var(--border-color); overflow-y: auto; } .slide-list-header { display: flex; align-items: center; justify-content: space-between; min-height: 3rem; padding: 0 1rem; border-bottom: 1px solid var(--border-color); color: var(--text); font-weight: 600; } .add-slide { width: 1.75rem; height: 1.75rem; padding: 0; border: 1px solid var(--border-color); background: var(--bg-raised); color: var(--text); font-size: 1.1rem; line-height: 1; cursor: pointer; } .add-slide:hover, .add-slide:focus-visible, .delete-slide:hover, .delete-slide:focus-visible { border-color: var(--accent); color: var(--accent-text); background: var(--accent); outline: none; } .slide-list-items { display: flex; flex-direction: column; gap: 0.75rem; padding: 1rem; } .code { grid-area: code; min-width: 0; background-color: var(--bg-sunken); border-right: 1px solid var(--border-color); } .preview { grid-area: preview; position: relative; min-width: 0; display: flex; align-items: center; justify-content: center; height: 100%; background-color: var(--bg); } /* The presentation surface. The runtime mounts every slide inside it. */ .stage { position: relative; width: 100%; height: 100%; overflow: hidden; } .stage:focus { outline: none; } .stage:fullscreen { width: 100vw; height: 100vh; } .compile-error { position: absolute; top: 0; left: 0; right: 0; z-index: 1; max-height: 40%; overflow: auto; padding: 0.5rem 0.75rem; background-color: #7a1f1f; color: #ffffff; font-family: monospace; font-size: 0.8rem; white-space: pre-wrap; } .menubar-actions { display: flex; gap: 0.5rem; align-items: center; margin-left: auto; } .present-button { padding: 0.25rem 0.7rem; border: 1px solid rgba(255, 255, 255, 0.55); background: transparent; color: inherit; font: inherit; cursor: pointer; border-radius: 3px; } .present-button:hover, .present-button:focus-visible { background: rgba(255, 255, 255, 0.2); outline: none; } .slide-list-item { position: relative; display: grid; grid-template-columns: 1.25rem minmax(0, 1fr); gap: 0.4rem; align-items: start; min-width: 0; } .slide-in-list { grid-column: 1 / -1; display: grid; grid-template-columns: 1.25rem minmax(0, 1fr); gap: 0.4rem; align-items: start; width: 100%; min-width: 0; padding: 0.35rem; border: 1px solid var(--slide-border); background: var(--bg-raised); color: var(--text); text-align: left; cursor: pointer; } .slide-in-list:hover, .slide-in-list:focus-visible { border-color: var(--accent); outline: none; } .slide-list-item.selected .slide-in-list { border-color: var(--accent); box-shadow: inset 2px 0 0 var(--accent); } .slide-number { display: block; min-height: 1rem; color: var(--text-muted); font-size: 0.75rem; line-height: 1rem; text-align: center; } .global-slide { padding-left: 0.25rem; border-left: 2px solid var(--accent); } .global-slide .slide-number { color: var(--accent); font-weight: 700; } .slide-in-list img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: contain; background: var(--slide-bg); } .delete-slide { position: absolute; top: 0.25rem; right: 0.25rem; display: grid; place-items: center; width: 1.4rem; height: 1.4rem; padding: 0; border: 1px solid var(--border-color); background: var(--bg-raised); color: var(--text); font-size: 1rem; line-height: 1; opacity: 0; cursor: pointer; } .slide-list-item:hover .delete-slide, .delete-slide:focus-visible { opacity: 1; } .slide { all: initial; aspect-ratio: 16/9; width: 100%; height: auto; background-color: white; } /* The global slide is shared markup, not a step of the deck: mark the surface so it reads as different from a presented slide. */ .slide.global { outline: 2px solid var(--accent); outline-offset: -2px; }