diff --git a/_includes/topnav.html b/_includes/topnav.html index 30715638..ae37f63c 100644 --- a/_includes/topnav.html +++ b/_includes/topnav.html @@ -1,81 +1,88 @@ diff --git a/_layouts/default.html b/_layouts/default.html index 0d7602de..9284eed5 100644 --- a/_layouts/default.html +++ b/_layouts/default.html @@ -1,106 +1,110 @@ - {% include head.html %} - - }); + - - - {% if page.datatable == true %} - + // Initialize navgoco with default options + $("#mysidebar").navgoco({ + caretHtml: '', + accordion: true, + openClass: 'active', + save: false, + cookie: { + name: 'navgoco', + expires: false, + path: '/' + }, + slide: { + duration: 400, + easing: 'swing' + } + }); + + $("#collapseAll").click(function (e) { + e.preventDefault(); + $("#mysidebar").navgoco('toggle', false); + }); + + $("#expandAll").click(function (e) { + e.preventDefault(); + $("#mysidebar").navgoco('toggle', true); + }); + + $('[data-toggle="tooltip"]').tooltip(); + + $("#tg-sb-link").click(function () { + $("#tg-sb-sidebar").toggle(); + $("#tg-sb-content").toggleClass('col-md-9 col-md-12'); + $("#tg-sb-icon").toggleClass('fa-toggle-on fa-toggle-off'); + }); + }); + + + {% if page.datatable == true %} + - - + - {% endif %} - + {% endif %} -{% include topnav.html %} - -
-
- -
+ + {% include topnav.html %} + + +
+
+
{% assign content_col_size = "col-md-12" %} {% unless page.hide_sidebar %} - -
- {% include sidebar.html %} -
- {% assign content_col_size = "col-md-9" %} +
+ {% include sidebar.html %} +
+ {% assign content_col_size = "col-md-9" %} {% endunless %} - -
- {{content}} +
+ {{ content }}
- -
- -
- +
+
+ {% if site.google_analytics %} + {% include google_analytics.html %} + {% endif %} -{% if site.google_analytics %} -{% include google_analytics.html %} -{% endif %} 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; +}