Format slide texts in WhatsApp style
Slide descriptions support *bold*, _italic_, ~strikethrough~ and lists with "- " or "* " at the start of a line. FormatHelper renders them for the participant page and the PDF (escaping everything else), Format in plenario.js builds the same DOM for presenter and embed. Participant input stays plain text. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
3465f69bfc
commit
8d3d8d4341
12 files changed
+215
-8
No files matched your search
@@ -377,6 +377,11 @@ textarea { resize: vertical; }
|
||||
.pulse { width: 18px; height: 18px; border-radius: 50%; background: var(--primary); margin: 0 auto 24px; animation: pulse 1.6s infinite; }
|
||||
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(75, 63, 224, .5); } 100% { box-shadow: 0 0 0 24px rgba(75, 63, 224, 0); } }
|
||||
.prose { font-size: 1.1rem; }
|
||||
/* slide texts with *bold*, _italic_, ~strike~ and lists (FormatHelper / Format in plenario.js) */
|
||||
.muted.formatted { margin: 1em 0; }
|
||||
.formatted ul { margin: .3em 0; padding-left: 1.3em; text-align: left; }
|
||||
.formatted li + li { margin-top: .15em; }
|
||||
.muted.formatted strong { color: var(--text); }
|
||||
|
||||
/* quiz (participant) */
|
||||
.choice--quiz { border-left-width: 8px; border-left-color: var(--c0); font-size: 1.1rem; }
|
||||
@@ -663,7 +668,7 @@ body.present {
|
||||
.stage__status:empty { display: none; }
|
||||
.stage--closed .stage__status { color: var(--muted); }
|
||||
.stage__question { font-size: clamp(2rem, 4.5vw, 4rem); margin-bottom: .3em; }
|
||||
.stage__description { font-size: clamp(1.1rem, 2vw, 1.6rem); color: var(--muted); white-space: pre-line; margin-top: 0; }
|
||||
.stage__description { font-size: clamp(1.1rem, 2vw, 1.6rem); color: var(--muted); margin: 0 0 1em; }
|
||||
.stage__media { width: min(100%, calc(62vh * 16 / 9)); margin: 1vh auto 0; }
|
||||
.stage--video .stage__question { font-size: clamp(1.5rem, 3vw, 2.6rem); }
|
||||
.stage--video .stage__description { font-size: clamp(1rem, 1.6vw, 1.3rem); }
|
||||
|
||||
Reference in new issue
Block a user