From 3e2d26205909217f438768cd9d8cc3d0494caf5f Mon Sep 17 00:00:00 2001 From: Trygve Date: Sun, 21 Mar 2021 12:46:35 +0100 Subject: [PATCH] Many style improvements --- css/main.css | 14 ++++++++++++++ fuglekasse/index.php | 1 + speedtest/index.php | 4 ++-- speedtest/ui.css | 12 ++++++++++-- speedtest/ui.js | 4 ++-- 5 files changed, 29 insertions(+), 6 deletions(-) diff --git a/css/main.css b/css/main.css index 2a33e15..052c09e 100644 --- a/css/main.css +++ b/css/main.css @@ -141,6 +141,20 @@ a { } } +@media only screen and (min-width:1300px){ + html { + font-size: 18px; + } +} + +@media only screen and (min-width:2000px){ + html { + font-size: 20px; + } +} + + + @media (prefers-color-scheme: dark) { body.theme-auto { --bg-color: var(--dark-bg-color); diff --git a/fuglekasse/index.php b/fuglekasse/index.php index c9a5f6c..a647aaf 100644 --- a/fuglekasse/index.php +++ b/fuglekasse/index.php @@ -27,6 +27,7 @@ width: 100%; } } + diff --git a/speedtest/index.php b/speedtest/index.php index ec83da8..09b688a 100644 --- a/speedtest/index.php +++ b/speedtest/index.php @@ -23,12 +23,12 @@
Ping
-
+
ms
Jitter
-
+
ms
diff --git a/speedtest/ui.css b/speedtest/ui.css index fba6095..96648ee 100644 --- a/speedtest/ui.css +++ b/speedtest/ui.css @@ -1,3 +1,12 @@ + .cont { + text-align: center; + } + #startStopBtn{ + height: 2rem; + width: 5rem; + font-size: 1.2rem; + text-align: center; + } #startStopBtn:before{ content:"Start"; } @@ -5,8 +14,7 @@ content:"Abort"; } #test{ - margin-top:2em; - margin-bottom:12em; + margin-top:2rem; } div.testArea{ display:inline-block; diff --git a/speedtest/ui.js b/speedtest/ui.js index 6512186..fe80c03 100644 --- a/speedtest/ui.js +++ b/speedtest/ui.js @@ -3,8 +3,8 @@ function I(i){return document.getElementById(i);} var s=new Speedtest(); //create speedtest object var meterBk=/Trident.*rv:(\d+\.\d+)/i.test(navigator.userAgent)?"#EAEAEA":"#80808040"; -var dlColor="#6060AA", - ulColor="#616161"; +var dlColor="#1565c0", + ulColor="#c62828"; var progColor=meterBk; //CODE FOR GAUGES