From 9163f3d30e306ea0b8cdd0fa2e10e13dcdb857a0 Mon Sep 17 00:00:00 2001 From: Jakob Ketterl Date: Fri, 1 Nov 2019 16:58:36 +0100 Subject: [PATCH] improve autoplay interface --- htdocs/css/openwebrx.css | 15 ++++++++++----- htdocs/index.html | 8 ++++---- htdocs/openwebrx.js | 21 ++++++++++----------- 3 files changed, 24 insertions(+), 20 deletions(-) diff --git a/htdocs/css/openwebrx.css b/htdocs/css/openwebrx.css index a280c3a..659dffd 100644 --- a/htdocs/css/openwebrx.css +++ b/htdocs/css/openwebrx.css @@ -645,7 +645,7 @@ img.openwebrx-mirror-img font-family: 'expletus-sans-medium'; } -#openwebrx-big-grey +#openwebrx-autoplay-overlay { position: fixed; width: 100%; @@ -657,9 +657,6 @@ img.openwebrx-mirror-img left: 0; top: 0; z-index: 1001; - display: none; - vertical-align: middle; - text-align: center; color: white; font-weight: bold; font-size: 20pt; @@ -667,11 +664,19 @@ img.openwebrx-mirror-img transition: opacity 0.3s linear; } -#openwebrx-big-grey img +#openwebrx-autoplay-overlay img { width: 150px; } +#openwebrx-autoplay-overlay .overlay-content { + position: absolute; + left: 50%; + top: 50%; + transform: translate(-50%, -50%); + text-align: center; +} + #openwebrx-digimode-canvas-container { /*margin: -10px -10px 10px -10px;*/ diff --git a/htdocs/index.html b/htdocs/index.html index 83d21bd..6254e83 100644 --- a/htdocs/index.html +++ b/htdocs/index.html @@ -214,10 +214,10 @@ -
-
- -

Start OpenWebRX +
+
+ +
Start OpenWebRX