From 3f93e84d720d67df8db56b7cdc9c3aa909f16c2a Mon Sep 17 00:00:00 2001 From: MDJAVEED7 <140513388+MDJAVEED7@users.noreply.github.com> Date: Sat, 5 Apr 2025 20:53:34 +0530 Subject: [PATCH 1/2] Added theme-dark and theme-light CSS files --- _includes/topnav.html | 138 +++++++++++++++++++----------------------- _layouts/default.html | 130 ++++++++++++++++++++------------------- 2 files changed, 130 insertions(+), 138 deletions(-) diff --git a/_includes/topnav.html b/_includes/topnav.html index 30715638..0277b658 100644 --- a/_includes/topnav.html +++ b/_includes/topnav.html @@ -1,81 +1,69 @@ + {% endif %} + {% endfor %} + {% endfor %} + + {% for entry in topnav_dropdowns %} + {% for folder in entry.folders %} + + {% endfor %} + {% endfor %} + + {% if site.feedback_disable == null or site.feedback_disable == false %} + {% include feedback.html %} + {% endif %} + + + + + \ No newline at end of file diff --git a/_layouts/default.html b/_layouts/default.html index 0d7602de..1db779af 100644 --- a/_layouts/default.html +++ b/_layouts/default.html @@ -2,14 +2,37 @@ {% include head.html %} + + + + + + - - + {% if page.datatable == true %} - - - - - + + + + {% endif %} - -{% include topnav.html %} - -
-
- -
- {% assign content_col_size = "col-md-12" %} - {% unless page.hide_sidebar %} - -
- {% include sidebar.html %} -
- {% assign content_col_size = "col-md-9" %} - {% endunless %} - -
- {{content}} + {% include topnav.html %} + + +
+
+
+ {% assign content_col_size = "col-md-12" %} + {% unless page.hide_sidebar %} +
+ {% include sidebar.html %} +
+ {% assign content_col_size = "col-md-9" %} + {% endunless %} + +
+ {{ content }} +
+
- -
- -
-
+ {% if site.google_analytics %} + {% include google_analytics.html %} + {% endif %} -{% if site.google_analytics %} -{% include google_analytics.html %} -{% endif %} From d99a2b41637520f79b380f998397bdb0ef2e3d6c Mon Sep 17 00:00:00 2001 From: MDJAVEED7 Date: Sat, 5 Apr 2025 21:55:07 +0530 Subject: [PATCH 2/2] Add dark/light theme toggle with styles --- css/theme-dark.css | 28 ++++++++++++++++++++++++++++ css/theme-light.css | 28 ++++++++++++++++++++++++++++ 2 files changed, 56 insertions(+) create mode 100644 css/theme-dark.css create mode 100644 css/theme-light.css diff --git a/css/theme-dark.css b/css/theme-dark.css new file mode 100644 index 00000000..64ba5ff2 --- /dev/null +++ b/css/theme-dark.css @@ -0,0 +1,28 @@ +/* theme-dark.css */ + +body { + background-color: #121212; + color: #f1f1f1; +} + +a { + color: #90caf9; +} + +.navbar { + background-color: #1f1f1f; +} + +#tg-sb-sidebar { + background-color: #1e1e1e; + border-right: 1px solid #333; +} + +#tg-sb-content { + background-color: #1a1a1a; +} + +pre, code { + background-color: #2c2c2c; + color: #e0e0e0; +} diff --git a/css/theme-light.css b/css/theme-light.css new file mode 100644 index 00000000..fb2a1e7d --- /dev/null +++ b/css/theme-light.css @@ -0,0 +1,28 @@ +/* theme-light.css */ + +body { + background-color: #ffffff; + color: #000000; +} + +a { + color: #1a0dab; +} + +.navbar { + background-color: #f8f9fa; +} + +#tg-sb-sidebar { + background-color: #f1f1f1; + border-right: 1px solid #ccc; +} + +#tg-sb-content { + background-color: #ffffff; +} + +pre, code { + background-color: #f5f5f5; + color: #333333; +}