Make scale average more prominent
CI / Deploy / test (push) Successful in 45s
CI / Deploy / deploy (push) Skipped

Show the average as a large figure with the number of ratings and a
gauge marking its position between min and max; highlight the column
closest to the average. Larger sizing on the presenter stage.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
gnilebeinandClaude Opus 5.5 committed 2026-11-07 13:57:36 +01:00
1 parent 6cc813f87b
commit 8ab0b4879e
2 files changed
+50 -6

No files matched your search

+18 -2
View File
@@ -269,8 +269,19 @@ textarea { resize: vertical; }
.column__track { flex: 1; width: 100%; display: flex; align-items: flex-end; background: var(--surface-2); border-radius: 6px; overflow: hidden; }
.column__fill { width: 100%; background: var(--c3); transition: height .6s ease; }
.column__label { font-weight: 700; }
.average { font-size: 1.1rem; margin: 0 0 12px; }
.average strong { font-size: 1.6em; }
.column--avg .column__fill { background: var(--c1); }
.column--avg .column__label { color: var(--c1); }
.average { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 32px; margin: 0 0 20px; padding: 16px 20px; background: var(--surface-2); border-radius: 14px; }
.average__figure { display: flex; flex-direction: column; line-height: 1.1; }
.average__label { text-transform: uppercase; letter-spacing: .1em; font-size: .8rem; font-weight: 700; color: var(--muted); }
.average__value { font-variant-numeric: tabular-nums; white-space: nowrap; }
.average__value strong { font-size: 3.2rem; font-weight: 800; color: var(--c1); }
.average__of { font-size: 1.4rem; font-weight: 600; color: var(--muted); }
.average__count { font-size: .85rem; color: var(--muted); }
.average__gauge { flex: 1 1 200px; }
.average__track { position: relative; height: 12px; border-radius: 99px; background: linear-gradient(90deg, var(--bg), var(--c1)); box-shadow: inset 0 0 0 1px var(--border); }
.average__marker { position: absolute; top: 50%; width: 1.6em; height: 1.6em; margin: -.8em 0 0 -.8em; border-radius: 50%; background: var(--c1); border: .25em solid var(--bg); box-shadow: 0 1px 4px rgba(0, 0, 0, .35); transition: left .6s ease; }
.average__ends { display: flex; justify-content: space-between; margin-top: 8px; font-size: .85rem; font-weight: 700; color: var(--muted); }
.cloud { 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; }
@@ -321,6 +332,11 @@ body.present {
.stage--closed .stage__type::after { content: " · Abstimmung geschlossen"; color: var(--muted); }
.stage .bar__track { height: 1.1em; }
.stage .columns { height: 34vh; }
.stage .average { padding: 2vh 2.5vw; gap: 2vh 4vw; background: rgba(255, 255, 255, .06); }
.stage .average__value strong { font-size: clamp(4rem, 9vw, 8rem); }
.stage .average__of { font-size: clamp(1.6rem, 3vw, 2.8rem); }
.stage .average__label, .stage .average__count, .stage .average__ends { font-size: clamp(.9rem, 1.4vw, 1.3rem); }
.stage .average__track { height: 1em; box-shadow: none; background: linear-gradient(90deg, var(--surface-2), var(--c1)); }
.stage .cloud { font-size: clamp(1.4rem, 2.6vw, 2.6rem); }
.stage .answers { columns: 340px; }