From 6ce5967cb187c2582611920894768eb110f8e29e Mon Sep 17 00:00:00 2001 From: ddbourgin Date: Sat, 8 Jan 2022 16:58:39 -0500 Subject: [PATCH] adjust font size in documentation, pin sidebar --- docs/_static/css/custom.css | 32 ++++++++++++++++++++++++-------- 1 file changed, 24 insertions(+), 8 deletions(-) diff --git a/docs/_static/css/custom.css b/docs/_static/css/custom.css index 29a4f13..b2be07e 100644 --- a/docs/_static/css/custom.css +++ b/docs/_static/css/custom.css @@ -1,18 +1,32 @@ body { - font-size: 16px !important; + font-size: 15px !important; } -table.field-list, -table.footnote { +/* gray background for parameters */ +table.field-list { background-color: #f9f9f9 !important; } +/* style the footnote display */ +table.footnote td { + padding: 0.3em 0.5em !important; + line-height: 1.4em !important; +} + +table li { + padding-bottom: 0.5em; +} + table.field-list th, table.field-list td { - padding: 0.8em !important; + padding: 0.5em !important; border: 1px solid #888 !important; } +p.rubric { + margin-top: 0px !important; +} + /* recolor the code snippets in sidebar */ @media screen and (max-width: 875px) { div.sphinxsidebar h3, @@ -24,6 +38,12 @@ table.field-list td { } } + +/* sidebar pinned to the top of the page */ +div.sphinxsidebar { + position: absolute; +} + /* don't show table delimiters */ table.docutils { border: none !important; @@ -36,7 +56,3 @@ table.docutils td, table.docutils th { border: none; padding: 0.0em 0.0em; } - -table.footnote td { - padding: 0.3em 0.5em; -}