From d2ecb5c0acf8270dc6d78727cceac42ab2f1112e Mon Sep 17 00:00:00 2001 From: Snaipe Date: Mon, 22 Feb 2016 01:09:16 +0100 Subject: [PATCH] Added collapsible definition lists for sphinx docs --- doc/_static/style.css | 22 ++++++++++++++++++++-- doc/_templates/page.html | 14 ++++++++++++++ 2 files changed, 34 insertions(+), 2 deletions(-) diff --git a/doc/_static/style.css b/doc/_static/style.css index caca612..ddb3301 100644 --- a/doc/_static/style.css +++ b/doc/_static/style.css @@ -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 */ } diff --git a/doc/_templates/page.html b/doc/_templates/page.html index fb70918..f22e6a6 100644 --- a/doc/_templates/page.html +++ b/doc/_templates/page.html @@ -1,3 +1,17 @@ {% extends "!page.html" %} {% set css_files = css_files + ["_static/style.css"] %} + + +{% block footer %} + +{% endblock %}