Show the word cloud to participants as a compact list
CI / Deploy / PHP 8.4 (push) Successful in 1m21s
CI / Deploy / PHP 8.5 (push) Successful in 1m36s
CI / Deploy / test (push) Successful in 2s
CI / Deploy / deploy (push) Skipped

Participants get a list with fixed text size, a weight bar and big +/- buttons (like Q&A voting) instead of the cloud. On stage the cloud shrinks as the number of words grows.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
gnilebeinandClaude Sonnet 5.5 committed 2026-11-21 13:39:56 +01:00
1 parent 7a80794ded
commit 6c77470824
3 files changed
+80 -52

No files matched your search

+19 -9
View File
@@ -529,7 +529,7 @@ textarea { resize: vertical; }
.donut__label { font-weight: 600; overflow-wrap: anywhere; }
.donut__value { color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.cloud { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: .2em .6em; line-height: 1.15; padding: 8px; }
.cloud { font-size: calc(1rem * var(--cloud-scale, 1)); display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: .2em .6em; line-height: 1.15; padding: 8px; }
.cloud__word { font-weight: 800; color: var(--c0); transition: font-size .6s ease; }
.cloud__word--c1 { color: var(--c1); }
.cloud__word--c2 { color: var(--c2); }
@@ -542,13 +542,23 @@ textarea { resize: vertical; }
.cloud__count--down { color: var(--danger); }
.stage .cloud__count { font-size: max(.9rem, .4em); }
/* Participant cloud: word (+) and − are separate buttons */
.cloud--interactive .cloud__word { gap: .1em; }
.cloud__vote { font: inherit; font-weight: inherit; color: inherit; line-height: 1.15; background: none; border: 2px solid transparent; border-radius: 10px; padding: .05em .3em; cursor: pointer; display: inline-flex; align-items: baseline; gap: .25em; }
.cloud__vote:hover:not(:disabled), .cloud__vote:focus-visible { border-color: currentColor; }
.cloud__vote:disabled { cursor: default; }
.cloud__vote--down { padding: .05em .25em; }
.cloud__word.is-mine .cloud__vote--up, .cloud__word.is-down .cloud__vote--down { background: var(--surface-2); }
.cloud__word.is-down .cloud__vote--up { opacity: .55; }
/* Participant list (replaces the cloud on phones): fixed text size, weight bar, big tap targets */
.wc-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.wc-item { position: relative; display: flex; align-items: center; gap: 10px; padding: 8px 8px 10px 14px; border-radius: 10px; background: var(--surface-2); overflow: hidden; }
.wc-item__text { flex: 1; min-width: 0; font-weight: 700; word-break: break-word; }
.wc-item__actions { flex: none; display: inline-flex; gap: 6px; }
.wc-item__bar { position: absolute; left: 0; bottom: 0; height: 4px; background: var(--c0); border-radius: 0 4px 4px 0; transition: width .6s ease; }
.wc-item.is-mine { box-shadow: inset 0 0 0 2px var(--ok); }
.wc-item.is-down { opacity: .7; }
.wc-vote { min-width: 56px; min-height: 40px; padding: 0 10px; border-radius: 999px; border: 2px solid currentColor; background: var(--surface); font: inherit; font-size: .9rem; font-weight: 700; font-variant-numeric: tabular-nums; cursor: pointer; }
.wc-vote--up { color: var(--ok); }
.wc-vote--down { color: var(--danger); }
.wc-vote.is-active { background: currentColor; }
.wc-vote.is-active span { color: var(--surface); }
.wc-vote:disabled { cursor: default; }
.wc-vote:disabled:not(.is-active) { opacity: .5; }
.wc-vote:focus-visible { outline: 3px solid var(--primary); outline-offset: 2px; }
.wc-count--down { color: var(--danger); font-weight: 700; }
/* quiz results */
.quiz-status { color: var(--muted); font-style: italic; margin: 0 0 1em; }
@@ -791,7 +801,7 @@ body.present {
.stage .donut__chart { width: clamp(150px, 28vh, 340px); }
.stage .donut__count { font-size: clamp(.85rem, 1.3vw, 1.2rem); }
.stage .donut__legend { font-size: clamp(.9rem, 1.4vw, 1.3rem); }
.stage .cloud { font-size: clamp(1.4rem, 2.6vw, 2.6rem); }
.stage .cloud { font-size: calc(clamp(1.2rem, 2.2vw, 2.2rem) * var(--cloud-scale, 1)); gap: .15em .5em; }
.stage .answers { columns: 340px; }
.stage .quiz-timer { font-size: clamp(3rem, 7vw, 6rem); }
.stage__timer:empty { display: none; }