Added collapsible definition lists for sphinx docs
This commit is contained in:
parent
1d216ac929
commit
d2ecb5c0ac
2 changed files with 34 additions and 2 deletions
22
doc/_static/style.css
vendored
22
doc/_static/style.css
vendored
|
@ -1,7 +1,25 @@
|
|||
.breatheparameterlist li p {
|
||||
display: inline;
|
||||
display: inline;
|
||||
}
|
||||
|
||||
.breatheenumvalues li p {
|
||||
display: inline;
|
||||
display: inline;
|
||||
}
|
||||
|
||||
.container > dl > dt {
|
||||
display: block;
|
||||
width: 100%;
|
||||
clear: both;
|
||||
}
|
||||
|
||||
.container > dl > dt:before {
|
||||
content: " ▼ ";
|
||||
}
|
||||
|
||||
.container > dl > dt.open:before {
|
||||
content: " ▶ ";
|
||||
}
|
||||
|
||||
.container > dl {
|
||||
margin-bottom: 0 !important; /* Dirty hack */
|
||||
}
|
||||
|
|
14
doc/_templates/page.html
vendored
14
doc/_templates/page.html
vendored
|
@ -1,3 +1,17 @@
|
|||
{% extends "!page.html" %}
|
||||
|
||||
{% set css_files = css_files + ["_static/style.css"] %}
|
||||
|
||||
|
||||
{% block footer %}
|
||||
<script type="text/javascript">
|
||||
$(document).ready(function() {
|
||||
$(".container > dl > *").hide();
|
||||
$(".container > dl > dt").show();
|
||||
$(".container > dl > dt").click(function() {
|
||||
$(this).parent().children().not("dt").toggle(400);
|
||||
$(this).parent().children("dt").toggleClass("open");
|
||||
})
|
||||
});
|
||||
</script>
|
||||
{% endblock %}
|
||||
|
|
Loading…
Add table
Reference in a new issue