feat(overlay): size setting for the OBS graphics, carried in the OBS URL (1.89.22)

This commit is contained in:
larssand committed 2026-11-13 21:37:44 +01:00
1 parent b4a6381f82
commit 80f8402971
10 files changed
+50 -12

No files matched your search

+6 -2
View File
@@ -4912,7 +4912,11 @@ tr:has(> td > .medal-3) { background: linear-gradient(90deg, rgba(205, 127, 60,
so the camera image shows through (chroma keeps its green). */
.overlay-shell-obs-layout-broadcast:not(.overlay-shell-obs-theme-chroma) { background: transparent; }
.overlay-shell-obs-layout-broadcast { padding: 0; }
.obs-tv { position: relative; min-height: 100vh; font-family: "Barlow Condensed", Barlow, "Arial Narrow", sans-serif; color: #fff; font-size: clamp(13px, 1.1vw, 23px); }
.obs-tv { position: relative; min-height: 100vh; font-family: "Barlow Condensed", Barlow, "Arial Narrow", sans-serif; color: #fff; font-size: calc(clamp(13px, 1.1vw, 23px) * var(--obs-scale, 1)); }
/* The OBS size setting (--obs-scale): the TV graphics above scale through their font size (all em),
the other OBS layouts are zoomed as a whole. */
.overlay-shell-obs:not(.overlay-shell-obs-layout-broadcast) > * { zoom: var(--obs-scale, 1); }
.overlay-shell-obs .overlay-obs-lowerthird { min-height: calc((100vh - 32px) / var(--obs-scale, 1)); }
/* Session plate in RaceCore style: the red RC mark (or the club logo), a navy panel and Orbitron. */
.obs-tv-plate { position: absolute; top: 1.1em; left: 1.1em; display: flex; align-items: stretch; max-width: 46vw; border: 1px solid rgb(255 255 255 / 12%); border-radius: 0.55em; overflow: hidden; background: linear-gradient(180deg, rgb(20 31 52 / 94%), rgb(9 15 28 / 94%)); box-shadow: 0 0.3em 1.2em rgb(0 0 0 / 45%); text-transform: none; }
.obs-tv-plate::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 0.14em; background: linear-gradient(90deg, var(--accent), color-mix(in srgb, var(--accent) 40%, transparent)); }
@@ -4921,7 +4925,7 @@ tr:has(> td > .medal-3) { background: linear-gradient(90deg, rgba(205, 127, 60,
.obs-tv-plate-text { display: flex; flex-direction: column; justify-content: center; min-width: 0; padding: 0.4em 1.1em 0.5em 0.8em; }
.obs-tv-event { margin: 0; color: #9aa9c4; font-size: 0.85em; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.obs-tv-session { margin: 0; color: #fff; font-family: var(--overlay-font); font-size: 1.45em; font-weight: 700; line-height: 1.15; letter-spacing: 0.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.obs-tv-tower { position: absolute; top: 1em; right: 1em; min-width: clamp(300px, 22vw, 480px); max-width: 46vw; border-radius: 0.5em; overflow: hidden; filter: drop-shadow(0 0.15em 0.5em rgb(0 0 0 / 50%)); }
.obs-tv-tower { position: absolute; top: 1em; right: 1em; min-width: 20em; max-width: 46vw; border-radius: 0.5em; overflow: hidden; filter: drop-shadow(0 0.15em 0.5em rgb(0 0 0 / 50%)); }
.obs-tv-head { display: flex; align-items: center; justify-content: space-between; gap: 0.6em; padding: 0.2em 0.5em; background: linear-gradient(90deg, rgb(12 20 36 / 96%) 55%, var(--accent)); }
.obs-tv-logo { max-height: 1.9em; max-width: 50%; object-fit: contain; }
.obs-tv-brand { font-family: var(--overlay-font); font-weight: 700; font-size: 0.95em; letter-spacing: 0.02em; }