From c0524a0021aeeffc3ac6a3cc98d54cc6f1035b09 Mon Sep 17 00:00:00 2001 From: PixelRobots <22979170+PixelRobots@users.noreply.github.com> Date: Sun, 6 Oct 2024 14:14:21 +0100 Subject: [PATCH 01/13] Add dark mode button to header Signed-off-by: PixelRobots <22979170+PixelRobots@users.noreply.github.com> --- docs/_includes/header.html | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 docs/_includes/header.html diff --git a/docs/_includes/header.html b/docs/_includes/header.html new file mode 100644 index 0000000..c062f0e --- /dev/null +++ b/docs/_includes/header.html @@ -0,0 +1,12 @@ + + \ No newline at end of file From d51505e843bbae2d1eaf0ba537e6b30a2cbc583f Mon Sep 17 00:00:00 2001 From: PixelRobots <22979170+PixelRobots@users.noreply.github.com> Date: Sun, 6 Oct 2024 14:16:59 +0100 Subject: [PATCH 02/13] Add dark mode button to header Signed-off-by: PixelRobots <22979170+PixelRobots@users.noreply.github.com> --- docs/_includes/{header.html => header_custom.html} | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename docs/_includes/{header.html => header_custom.html} (100%) diff --git a/docs/_includes/header.html b/docs/_includes/header_custom.html similarity index 100% rename from docs/_includes/header.html rename to docs/_includes/header_custom.html From 98810ee72ff1ac9ba8df50aec679f450e8e2bcd9 Mon Sep 17 00:00:00 2001 From: PixelRobots <22979170+PixelRobots@users.noreply.github.com> Date: Sun, 6 Oct 2024 14:19:27 +0100 Subject: [PATCH 03/13] Add dark mode toggle button to header Signed-off-by: PixelRobots <22979170+PixelRobots@users.noreply.github.com> --- docs/_includes/header_custom.html | 42 ++++++++++++++++++++++--------- 1 file changed, 30 insertions(+), 12 deletions(-) diff --git a/docs/_includes/header_custom.html b/docs/_includes/header_custom.html index c062f0e..c06f212 100644 --- a/docs/_includes/header_custom.html +++ b/docs/_includes/header_custom.html @@ -1,12 +1,30 @@ - - \ No newline at end of file + + + + + + From b0dba76249a392a3fe85856dba0b010f72554c23 Mon Sep 17 00:00:00 2001 From: PixelRobots <22979170+PixelRobots@users.noreply.github.com> Date: Sun, 6 Oct 2024 14:22:21 +0100 Subject: [PATCH 04/13] Refactor dark mode toggle button styling Signed-off-by: PixelRobots <22979170+PixelRobots@users.noreply.github.com> --- docs/_includes/header_custom.html | 14 +++++++------- docs/_sass/custom/custom.scss | 13 ++++++++++++- 2 files changed, 19 insertions(+), 8 deletions(-) diff --git a/docs/_includes/header_custom.html b/docs/_includes/header_custom.html index c06f212..36082d7 100644 --- a/docs/_includes/header_custom.html +++ b/docs/_includes/header_custom.html @@ -2,8 +2,10 @@ - - diff --git a/docs/_sass/custom/custom.scss b/docs/_sass/custom/custom.scss index 08c618f..f0cf7a1 100644 --- a/docs/_sass/custom/custom.scss +++ b/docs/_sass/custom/custom.scss @@ -58,4 +58,15 @@ button.js-toggle-dark-mode { outline: 2px solid #007b9a; /* Darker outline when actively clicked */ background-color: rgba(17, 169, 187, 0.3); /* Darker background when clicked */ color: #007b9a; /* Darker text when clicked */ - } \ No newline at end of file + } + + .js-toggle-dark-mode { + background: none; + border: none; + cursor: pointer; + font-size: 16px; /* Adjust font size */ + padding: 5px 10px; /* Reduce padding */ + margin-left: 15px; /* Space between button and other elements */ + color: #11a9bb; + vertical-align: middle; /* Align button with text */ +} \ No newline at end of file From 49173860b3ab785ad5b8af4440c206a9499294b6 Mon Sep 17 00:00:00 2001 From: PixelRobots <22979170+PixelRobots@users.noreply.github.com> Date: Sun, 6 Oct 2024 14:49:12 +0100 Subject: [PATCH 05/13] Refactor dark mode toggle button styling and add dark mode toggle button to header Signed-off-by: PixelRobots <22979170+PixelRobots@users.noreply.github.com> --- docs/_includes/header_custom.html | 47 +++++++++++++++++-------------- 1 file changed, 26 insertions(+), 21 deletions(-) diff --git a/docs/_includes/header_custom.html b/docs/_includes/header_custom.html index 36082d7..e53cbbf 100644 --- a/docs/_includes/header_custom.html +++ b/docs/_includes/header_custom.html @@ -1,30 +1,35 @@ - + From 92c2d5a1ecfc49217c5997ba3c205a035d9a61f8 Mon Sep 17 00:00:00 2001 From: PixelRobots <22979170+PixelRobots@users.noreply.github.com> Date: Sun, 6 Oct 2024 14:51:40 +0100 Subject: [PATCH 06/13] Refactor dark mode toggle button styling and add dark mode toggle button to header Signed-off-by: PixelRobots <22979170+PixelRobots@users.noreply.github.com> --- docs/_includes/head_custom.html | 27 +++++++++++++++++++++++++ docs/_includes/header_custom.html | 33 ------------------------------- 2 files changed, 27 insertions(+), 33 deletions(-) create mode 100644 docs/_includes/head_custom.html diff --git a/docs/_includes/head_custom.html b/docs/_includes/head_custom.html new file mode 100644 index 0000000..a1c9877 --- /dev/null +++ b/docs/_includes/head_custom.html @@ -0,0 +1,27 @@ + + \ No newline at end of file diff --git a/docs/_includes/header_custom.html b/docs/_includes/header_custom.html index e53cbbf..c8d708c 100644 --- a/docs/_includes/header_custom.html +++ b/docs/_includes/header_custom.html @@ -1,35 +1,2 @@ - - From 9b62934bce2b242a240dae34b65854b6ab1aeea1 Mon Sep 17 00:00:00 2001 From: PixelRobots <22979170+PixelRobots@users.noreply.github.com> Date: Sun, 6 Oct 2024 14:58:36 +0100 Subject: [PATCH 07/13] Refactor dark mode toggle button styling and remove duplicate button in header Signed-off-by: PixelRobots <22979170+PixelRobots@users.noreply.github.com> --- docs/_includes/head_custom.html | 27 --------------------------- docs/_includes/header_custom.html | 2 -- docs/_includes/nav_footer_custom.html | 2 +- 3 files changed, 1 insertion(+), 30 deletions(-) delete mode 100644 docs/_includes/head_custom.html delete mode 100644 docs/_includes/header_custom.html diff --git a/docs/_includes/head_custom.html b/docs/_includes/head_custom.html deleted file mode 100644 index a1c9877..0000000 --- a/docs/_includes/head_custom.html +++ /dev/null @@ -1,27 +0,0 @@ - - \ No newline at end of file diff --git a/docs/_includes/header_custom.html b/docs/_includes/header_custom.html deleted file mode 100644 index c8d708c..0000000 --- a/docs/_includes/header_custom.html +++ /dev/null @@ -1,2 +0,0 @@ - - diff --git a/docs/_includes/nav_footer_custom.html b/docs/_includes/nav_footer_custom.html index 39f3dc7..f3728da 100644 --- a/docs/_includes/nav_footer_custom.html +++ b/docs/_includes/nav_footer_custom.html @@ -1,4 +1,4 @@ - + + \ No newline at end of file From 14eba0856e28db4e9663717d82a5b57dd52c27a7 Mon Sep 17 00:00:00 2001 From: PixelRobots <22979170+PixelRobots@users.noreply.github.com> Date: Sun, 6 Oct 2024 15:11:31 +0100 Subject: [PATCH 11/13] Refactor dark mode toggle button styling and add padding and fix position in nav_footer_custom.html Signed-off-by: PixelRobots <22979170+PixelRobots@users.noreply.github.com> --- docs/_includes/nav_footer_custom.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/_includes/nav_footer_custom.html b/docs/_includes/nav_footer_custom.html index d3b7b65..39f3dc7 100644 --- a/docs/_includes/nav_footer_custom.html +++ b/docs/_includes/nav_footer_custom.html @@ -1,4 +1,4 @@ - + \ No newline at end of file + From a478081fc542c3f1ed5c4d4a57dc6c99d476cd4a Mon Sep 17 00:00:00 2001 From: PixelRobots <22979170+PixelRobots@users.noreply.github.com> Date: Sun, 6 Oct 2024 15:25:20 +0100 Subject: [PATCH 12/13] Refactor dark mode toggle button styling and adjust position in nav_footer_custom.html Signed-off-by: PixelRobots <22979170+PixelRobots@users.noreply.github.com> --- docs/_includes/nav_footer_custom.html | 50 ++++++++++++++++++++++----- docs/_sass/custom/custom.scss | 24 ++++++++----- 2 files changed, 57 insertions(+), 17 deletions(-) diff --git a/docs/_includes/nav_footer_custom.html b/docs/_includes/nav_footer_custom.html index 39f3dc7..5a11f40 100644 --- a/docs/_includes/nav_footer_custom.html +++ b/docs/_includes/nav_footer_custom.html @@ -1,8 +1,28 @@ - + + + - diff --git a/docs/_sass/custom/custom.scss b/docs/_sass/custom/custom.scss index f0cf7a1..3b1159d 100644 --- a/docs/_sass/custom/custom.scss +++ b/docs/_sass/custom/custom.scss @@ -60,13 +60,19 @@ button.js-toggle-dark-mode { color: #007b9a; /* Darker text when clicked */ } - .js-toggle-dark-mode { - background: none; - border: none; - cursor: pointer; - font-size: 16px; /* Adjust font size */ - padding: 5px 10px; /* Reduce padding */ - margin-left: 15px; /* Space between button and other elements */ +/* Default for desktop */ +.btn.js-toggle-dark-mode { + position: fixed; + bottom: 20px; + left: 15%; + padding: 10px; color: #11a9bb; - vertical-align: middle; /* Align button with text */ -} \ No newline at end of file +} + +/* For mobile devices */ +@media (max-width: 768px) { + .btn.js-toggle-dark-mode { + bottom: 10px; + left: 5%; + } +} From 7f594484665b9e10ae78ecd82ef0d6ef7595c02e Mon Sep 17 00:00:00 2001 From: PixelRobots <22979170+PixelRobots@users.noreply.github.com> Date: Sun, 6 Oct 2024 15:27:55 +0100 Subject: [PATCH 13/13] Refactor dark mode toggle button styling and adjust position in nav_footer_custom.html Signed-off-by: PixelRobots <22979170+PixelRobots@users.noreply.github.com> --- docs/_includes/nav_footer_custom.html | 21 +-------------------- docs/_sass/custom/custom.scss | 17 ----------------- 2 files changed, 1 insertion(+), 37 deletions(-) diff --git a/docs/_includes/nav_footer_custom.html b/docs/_includes/nav_footer_custom.html index 5a11f40..d7cf79b 100644 --- a/docs/_includes/nav_footer_custom.html +++ b/docs/_includes/nav_footer_custom.html @@ -1,23 +1,4 @@ - - - +