From 247fa1103c7659f4bdfef4d0a8c991471ac72035 Mon Sep 17 00:00:00 2001 From: TheSheref <40062613+TheSheref@users.noreply.github.com> Date: Fri, 5 Nov 2021 11:03:34 +0200 Subject: [PATCH] Implemented Minimal DARKMode --- example-singleServer-chart.html | 145 +++++- example-singleServer-customSettings.html | 125 ++++- example-singleServer-full.html | 143 +++++- example-singleServer-gauges.html | 144 +++++- example-singleServer-pretty.html | 538 +++++++++++++-------- example-singleServer-progressBar.html | 587 +++++++++++++++-------- 6 files changed, 1273 insertions(+), 409 deletions(-) diff --git a/example-singleServer-chart.html b/example-singleServer-chart.html index d0040e346..9ed66bbbd 100755 --- a/example-singleServer-chart.html +++ b/example-singleServer-chart.html @@ -35,11 +35,82 @@ display: block; margin: 0 auto; } + + .theme-switch-wrapper { + margin: 20px; + } + + .theme-switch { + display: inline-block; + height: 40px; + position: relative; + width: 65px; + } + + .theme-switch input { + display: none; + } + + .slider { + background: #000; + bottom: 0; + left: 0; + position: absolute; + right: 0; + top: 0; + font-size: 13px; + transition: 0.4s; + } + + .slider p:after { + color: #fff; + float: right; + margin: 0 5px 0 0; + content: "OFF"; + transition: 0.4s; + } + + input:checked + .slider p:after { + float: left; + color: #000; + content: "ON"; + margin: 0 0 0 5px; + } + + .slider:before { + background: #fff; + top: 8px; + content: ""; + height: 26px; + left: 4px; + position: absolute; + transition: 0.4s; + width: 26px; + } + + input:checked + .slider { + background-color: #fff; + } + + input:checked + .slider:before { + transform: translateX(28px); + background: #000; + } + + .slider.round { + border-radius: 34px; + } + + .slider.round:before { + border-radius: 50%; + } diff --git a/example-singleServer-customSettings.html b/example-singleServer-customSettings.html index b1c0cfbba..04c4cf263 100755 --- a/example-singleServer-customSettings.html +++ b/example-singleServer-customSettings.html @@ -78,9 +78,9 @@ box-shadow: 0 0 2em rgba(0,0,0,0.1), inset 0 0 1em rgba(0,0,0,0.1); } #startStopBtn.running{ - background-color:#FF3030; - border-color:#FF6060; - color:#FFFFFF; + background-color:#FF3030!important; + border-color:#FF6060!important; + color:#FFFFFF!important; } #startStopBtn:before{ content:"Start"; @@ -147,6 +147,74 @@ } } + .theme-switch-wrapper { + margin: 20px; + } + + .theme-switch { + display: inline-block; + height: 40px; + position: relative; + width: 65px; + } + + .theme-switch input { + display: none; + } + + .slider { + background: #000; + bottom: 0; + left: 0; + position: absolute; + right: 0; + top: 0; + font-size: 13px; + transition: 0.4s; + } + + .slider p:after { + color: #fff; + float: right; + margin: 0 5px 0 0; + content: "OFF"; + transition: 0.4s; + } + + input:checked + .slider p:after { + float: left; + color: #000; + content: "ON"; + margin: 0 0 0 5px; + } + + .slider:before { + background: #fff; + top: 8px; + content: ""; + height: 26px; + left: 4px; + position: absolute; + transition: 0.4s; + width: 26px; + } + + input:checked + .slider { + background-color: #fff; + } + + input:checked + .slider:before { + transform: translateX(28px); + background: #000; + } + + .slider.round { + border-radius: 34px; + } + + .slider.round:before { + border-radius: 50%; + } @@ -166,9 +234,60 @@

LibreSpeed Example

+
+

DARKMODE

+
+
Source code diff --git a/example-singleServer-full.html b/example-singleServer-full.html index 823ef9f29..f1d0cafff 100755 --- a/example-singleServer-full.html +++ b/example-singleServer-full.html @@ -154,9 +154,9 @@ box-shadow: 0 0 2em rgba(0,0,0,0.1), inset 0 0 1em rgba(0,0,0,0.1); } #startStopBtn.running{ - background-color:#FF3030; - border-color:#FF6060; - color:#FFFFFF; + background-color:#FF3030!important; + border-color:#FF6060!important; + color:#FFFFFF!important; } #startStopBtn:before{ content:"Start"; @@ -272,6 +272,78 @@ font-size:0.8em; } } + + #darkMode{ + margin-top:-100px; + } + .theme-switch-wrapper { + margin:5px; + } + + .theme-switch { + display: inline-block; + height: 40px; + position: relative; + width: 65px; + } + + .theme-switch input { + display: none; + } + + .slider { + background: #000; + bottom: 0; + left: 0; + position: absolute; + right: 0; + top: 0; + font-size: 13px; + transition: 0.4s; + } + + .slider p:after { + color: #fff; + float: right; + margin: 0 5px 0 0; + content: "OFF"; + transition: 0.4s; + } + + input:checked + .slider p:after { + float: left; + color: #000; + content: "ON"; + margin: 0 0 0 5px; + } + + .slider:before { + background: #fff; + top: 8px; + content: ""; + height: 26px; + left: 4px; + position: absolute; + transition: 0.4s; + width: 26px; + } + + input:checked + .slider { + background-color: #fff; + } + + input:checked + .slider:before { + transform: translateX(28px); + background: #000; + } + + .slider.round { + border-radius: 34px; + } + + .slider.round:before { + border-radius: 50%; + } LibreSpeed Example @@ -317,6 +389,15 @@

Share results

+
+

DARKMODE

+
+
Source code

- + diff --git a/example-singleServer-gauges.html b/example-singleServer-gauges.html index 9a49705f0..46572187d 100755 --- a/example-singleServer-gauges.html +++ b/example-singleServer-gauges.html @@ -139,9 +139,9 @@ box-shadow: 0 0 2em rgba(0,0,0,0.1), inset 0 0 1em rgba(0,0,0,0.1); } #startStopBtn.running{ - background-color:#FF3030; - border-color:#FF6060; - color:#FFFFFF; + background-color: #ff3030 !important; + border-color: #ff6060 !important; + color: #ffffff !important; } #startStopBtn:before{ content:"Start"; @@ -217,6 +217,78 @@ font-size:0.8em; } } + + #darkMode{ + margin-top:-100px; + } + .theme-switch-wrapper { + margin:5px; + } + + .theme-switch { + display: inline-block; + height: 40px; + position: relative; + width: 65px; + } + + .theme-switch input { + display: none; + } + + .slider { + background: #000; + bottom: 0; + left: 0; + position: absolute; + right: 0; + top: 0; + font-size: 13px; + transition: 0.4s; + } + + .slider p:after { + color: #fff; + float: right; + margin: 0 5px 0 0; + content: "OFF"; + transition: 0.4s; + } + + input:checked + .slider p:after { + float: left; + color: #000; + content: "ON"; + margin: 0 0 0 5px; + } + + .slider:before { + background: #fff; + top: 8px; + content: ""; + height: 26px; + left: 4px; + position: absolute; + transition: 0.4s; + width: 26px; + } + + input:checked + .slider { + background-color: #fff; + } + + input:checked + .slider:before { + transform: translateX(28px); + background: #000; + } + + .slider.round { + border-radius: 34px; + } + + .slider.round:before { + border-radius: 50%; + } LibreSpeed Example @@ -255,8 +327,72 @@

LibreSpeed Example

+
+

DARKMODE

+
+
+ +
Source code - + diff --git a/example-singleServer-pretty.html b/example-singleServer-pretty.html index 771553538..fcb8c776e 100755 --- a/example-singleServer-pretty.html +++ b/example-singleServer-pretty.html @@ -1,192 +1,352 @@ - - - -LibreSpeed Example - - - - - - - -

LibreSpeed Example

-
-
-
-
-
Download
-
-
Mbps
-
-
-
Upload
-
-
Mbps
-
-
-
-
-
Ping
-
-
ms
-
-
-
Jitter
-
-
ms
-
-
-
- IP Address: -
-
-Source code - - + + + + LibreSpeed Example + + + + + + + + +

LibreSpeed Example

+
+
+
+
+
Download
+
+
Mbps
+
+
+
Upload
+
+
Mbps
+
+
+
+
+
Ping
+
+
ms
+
+
+
Jitter
+
+
ms
+
+
+
IP Address:
+
+

DARKMODE

+
+ +
+ Source code + + diff --git a/example-singleServer-progressBar.html b/example-singleServer-progressBar.html index f9e7007c3..00563729f 100755 --- a/example-singleServer-progressBar.html +++ b/example-singleServer-progressBar.html @@ -1,212 +1,383 @@ - - - -LibreSpeed Example - - - + + + + + + +

LibreSpeed Example

+
+
+
+
+
+
+
+
Download
+
+
Mbps
+
+
+
Upload
+
+
Mbps
+
+
+
+
+
Ping
+
+
ms
+
+
+
Jitter
+
+
ms
+
+
+
IP Address:
+
+

DARKMODE

+
+ +
+ Source code + + + - - - - -

LibreSpeed Example

-
-
-
-
-
-
Download
-
-
Mbps
-
-
-
Upload
-
-
Mbps
-
-
-
-
-
Ping
-
-
ms
-
-
-
Jitter
-
-
ms
-
-
-
- IP Address: -
-
-Source code - - +