From a9e269e97914c1676053edbb5ffd7d2b88dbccd5 Mon Sep 17 00:00:00 2001 From: Juliusz Chroboczek Date: Wed, 31 Jul 2024 20:22:57 +0200 Subject: [PATCH] Implement caption support in the client. --- static/galene.css | 20 ++++++++++++++++++++ static/galene.html | 3 +++ static/galene.js | 39 ++++++++++++++++++++++++++++++++++++++- 3 files changed, 61 insertions(+), 1 deletion(-) diff --git a/static/galene.css b/static/galene.css index cb41c3c..15394fc 100644 --- a/static/galene.css +++ b/static/galene.css @@ -1328,6 +1328,26 @@ header .collapse:hover { } +#captions-container { + position: absolute; + bottom: 40px; + width: 100%; + pointer-events: none; + z-index: 1390; + alpha: 0; +} + +#captions { + margin: auto; + padding: 0 0.4rem 0 0.4rem; + width: max-content; + font-size: 1.2rem; + text-align: center; + pointer-events: none; + background-color: rgba(255,255,255,.7); + color: #000; +} + :root{ --contextualMenuBg: #eee; --contextualMenuShadow: 1px 1px 1px #444; */ diff --git a/static/galene.html b/static/galene.html index 556eeec..7eb1cd0 100644 --- a/static/galene.html +++ b/static/galene.html @@ -99,6 +99,9 @@
+