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%;
+ }