From 185790e32a50e1c9a434c79bc750f9f047cf396e Mon Sep 17 00:00:00 2001 From: Nigel Metheringham Date: Fri, 22 Feb 2013 21:18:43 +0000 Subject: [PATCH 1/3] Change title of localtoc menu from Page to Section --- docsite/_themes/bootstrap/localtoc.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docsite/_themes/bootstrap/localtoc.html b/docsite/_themes/bootstrap/localtoc.html index 6f1bc8433fc..d3014cf7fa3 100644 --- a/docsite/_themes/bootstrap/localtoc.html +++ b/docsite/_themes/bootstrap/localtoc.html @@ -1,5 +1,5 @@ From 86d55c1c4d1d409d0251ee761651f13b824d7bc1 Mon Sep 17 00:00:00 2001 From: Nigel Metheringham Date: Sun, 24 Feb 2013 12:20:16 +0000 Subject: [PATCH 2/3] Tweak maximum length of drop down menu --- docsite/_static/ansible-local.css | 4 ++++ docsite/_themes/bootstrap/layout.html | 16 +++++++++++++++- 2 files changed, 19 insertions(+), 1 deletion(-) create mode 100644 docsite/_static/ansible-local.css diff --git a/docsite/_static/ansible-local.css b/docsite/_static/ansible-local.css new file mode 100644 index 00000000000..9ad8e1f7742 --- /dev/null +++ b/docsite/_static/ansible-local.css @@ -0,0 +1,4 @@ +/* Local CSS tweaks for ansible */ +.dropdown-menu { + overflow-y: auto; +} diff --git a/docsite/_themes/bootstrap/layout.html b/docsite/_themes/bootstrap/layout.html index 1d377d48b86..30f8add71cd 100644 --- a/docsite/_themes/bootstrap/layout.html +++ b/docsite/_themes/bootstrap/layout.html @@ -1,6 +1,6 @@ {% extends "basic/layout.html" %} {% set script_files = script_files + ['_static/bootstrap-dropdown.js', '_static/bootstrap-scrollspy.js'] %} -{% set css_files = ['_static/bootstrap.css', '_static/bootstrap-sphinx.css'] + css_files %} +{% set css_files = ['_static/bootstrap.css', '_static/bootstrap-sphinx.css', '_static/ansible-local.css'] + css_files %} {# Sidebar: Rework into our Boostrap nav section. #} {% macro navBar() %} @@ -97,6 +97,20 @@ s.parentNode.insertBefore(ga, s); })(); + + {% endblock %} From 9ae64ffba9bbdb2261adfb7032fac144912d2579 Mon Sep 17 00:00:00 2001 From: Nigel Metheringham Date: Sun, 24 Feb 2013 13:01:09 +0000 Subject: [PATCH 3/3] Added top padding to h2 elements so not under menubar --- docsite/_static/ansible-local.css | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/docsite/_static/ansible-local.css b/docsite/_static/ansible-local.css index 9ad8e1f7742..5fb48d0498d 100644 --- a/docsite/_static/ansible-local.css +++ b/docsite/_static/ansible-local.css @@ -2,3 +2,7 @@ .dropdown-menu { overflow-y: auto; } + +h2 { + padding-top: 40px; +} \ No newline at end of file