diff --git a/docs/template/index.html.jinja2 b/docs/template/index.html.jinja2
index c1ab9959..131e0d7b 100644
--- a/docs/template/index.html.jinja2
+++ b/docs/template/index.html.jinja2
@@ -4,9 +4,11 @@
{% block nav %}
-
+ + ++ +
-+
+ + +{% include "search.html.jinja2" %} diff --git a/docs/template/theme.css b/docs/template/theme.css index 03b59811..702307a4 100644 --- a/docs/template/theme.css +++ b/docs/template/theme.css @@ -38,8 +38,17 @@ } } -.homediv { padding-top: 56px; max-width: 1080px; } +/* Center search box and version number in nav bars. */ +/* Then fix up internal div display with some margins. */ +input { display: block; margin: auto; } +nav h6 { text-align: center; } +nav div { padding-right: 8%; } + +/* Add padding for nav bar footer in case of long version numbers (dev docs). */ +nav footer { padding-right: 5px; } +/* Styles for greeting page and buttons. */ +.homediv { padding-top: 56px; max-width: 1080px; } .button { background-color: var(--muted); color: var(--pdoc-background); @@ -55,10 +64,11 @@ cursor: pointer; width: 48%; } - .button:hover { background-color: var(--text); color: var(--active); } +/* Render display equations in horizontally scrollable box. */ +/* Also tries to hide the scroll bar (sometimes it doesn't work). */ .katex-display { overflow: auto hidden }