Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
48 changes: 32 additions & 16 deletions sphinx-doc/source/_static/custom.css
Original file line number Diff line number Diff line change
@@ -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;
} */
12 changes: 12 additions & 0 deletions sphinx-doc/source/_static/ifm3d.js
Original file line number Diff line number Diff line change
@@ -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);
});
});
5 changes: 4 additions & 1 deletion sphinx-doc/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,9 @@
html_css_files = [
'custom.css',
]
html_js_files = [
'ifm3d.js',
]

myst_enable_extensions = [
"colon_fence",
Expand All @@ -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",
}
}