diff --git a/sphinx-doc/source/_static/custom.css b/sphinx-doc/source/_static/custom.css index 6f26a66da..42c9b6954 100644 --- a/sphinx-doc/source/_static/custom.css +++ b/sphinx-doc/source/_static/custom.css @@ -1,19 +1,35 @@ +body { + font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; +} + +a { + text-decoration: none; + color: #f06700; +} + +a:hover { + color: #46a3ba; + text-decoration: underline; +} + +ul ul { + display: none; +} + +ul .toctree-l1 { + margin: 25px; + padding: 0; +} + +ul .toctree-l1 a { + padding: 2px 15px; + display: block; +} + +ul li:first-child { + border: none; +} + .wy-side-nav-search { background-color: #ff6e00; } -/* -.news-banner{ - margin-bottom: 24px; - color: black; -} -.news-banner-title{ - background-color: #6E8BA0; - font-weight: bold; - padding-left: 12px; - margin: 0; -} -.news-banner-content{ - background-color: #E4E5E7; - padding-left: 12px; - margin: 0; -} */ \ No newline at end of file diff --git a/sphinx-doc/source/_static/ifm3d.js b/sphinx-doc/source/_static/ifm3d.js new file mode 100644 index 000000000..25f2c2e96 --- /dev/null +++ b/sphinx-doc/source/_static/ifm3d.js @@ -0,0 +1,12 @@ +$(function() { + $('ul li a').click(function(e) { + + if ($(this).siblings().length > 0) { + e.preventDefault(); + $('ul ul').hide(); + $(this).parents('ul').show(); + $(this).next('ul').toggle(); + } + console.log($(this).siblings().length); + }); +}); \ No newline at end of file diff --git a/sphinx-doc/source/conf.py b/sphinx-doc/source/conf.py index 00e9daee3..edc76f656 100644 --- a/sphinx-doc/source/conf.py +++ b/sphinx-doc/source/conf.py @@ -91,6 +91,9 @@ html_css_files = [ 'custom.css', ] +html_js_files = [ + 'ifm3d.js', +] myst_enable_extensions = [ "colon_fence", @@ -116,4 +119,4 @@ "ifm3d_gh_url" : "https://github.com/ifm/ifm3d", "ifm3d_main_branch": "o3r/main-next", # The most up to date branch on ifm3d "ifm3d_latest_tag_url": "https://github.com/ifm/ifm3d/tags", -} \ No newline at end of file +}