Skip to content

Commit

Permalink
Move the inline CSS in ReadTheDocs to the theme_extra file
Browse files Browse the repository at this point in the history
This keeps all our downstream theme tweaks in once place. Fixes mkdocs#393
  • Loading branch information
d0ugal committed Apr 2, 2015
1 parent 88bb485 commit af2b776
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 6 deletions.
5 changes: 0 additions & 5 deletions mkdocs/themes/readthedocs/base.html
Expand Up @@ -26,11 +26,6 @@
<script src="{{ path }}"></script>
{%- endfor %}

<style>
body {font-size: 90%;}
pre, code {font-size: 100%;}
h3, h4, h5, h6 {color: #2980b9; font-weight: 300}
</style>
{%- block extrahead %} {% endblock %}

{% if google_analytics %}
Expand Down
15 changes: 14 additions & 1 deletion 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
Expand Down Expand Up @@ -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
Expand All @@ -46,3 +58,4 @@
code {
white-space: pre;
}

0 comments on commit af2b776

Please sign in to comment.