From af2b776961f2c9185284b0a47540a480cb28a8dc Mon Sep 17 00:00:00 2001 From: Dougal Matthews Date: Thu, 2 Apr 2015 19:28:54 +0100 Subject: [PATCH] Move the inline CSS in ReadTheDocs to the theme_extra file This keeps all our downstream theme tweaks in once place. Fixes #393 --- mkdocs/themes/readthedocs/base.html | 5 ----- mkdocs/themes/readthedocs/css/theme_extra.css | 15 ++++++++++++++- 2 files changed, 14 insertions(+), 6 deletions(-) diff --git a/mkdocs/themes/readthedocs/base.html b/mkdocs/themes/readthedocs/base.html index bdb481f729..d29019c164 100644 --- a/mkdocs/themes/readthedocs/base.html +++ b/mkdocs/themes/readthedocs/base.html @@ -26,11 +26,6 @@ {%- endfor %} - {%- block extrahead %} {% endblock %} {% if google_analytics %} diff --git a/mkdocs/themes/readthedocs/css/theme_extra.css b/mkdocs/themes/readthedocs/css/theme_extra.css index cf01a9c7bc..18b353b791 100644 --- a/mkdocs/themes/readthedocs/css/theme_extra.css +++ b/mkdocs/themes/readthedocs/css/theme_extra.css @@ -1,3 +1,15 @@ +/* + * Tweak the overal size to better match RTD. + */ +body { + font-size: 90%; +} + +h3, h4, h5, h6 { + color: #2980b9; + font-weight: 300 +} + /* * Sphinx doesn't have support for section dividers like we do in * MkDocs, this styles the section titles in the nav @@ -29,7 +41,7 @@ } /* -* readthedocs theme hides nav items when the window height is +* readthedocs theme hides nav items when the window height is * too small to contain them. * * https://github.com/tomchristie/mkdocs/issues/#348 @@ -46,3 +58,4 @@ code { white-space: pre; } +