diff options
| -rw-r--r-- | CHANGES | 3 | ||||
| -rw-r--r-- | sphinx/themes/haiku/layout.html | 2 | ||||
| -rw-r--r-- | sphinx/themes/scrolls/static/print.css | 12 |
3 files changed, 10 insertions, 7 deletions
@@ -56,6 +56,9 @@ Bugs fixed * #1050: Add anonymous labels into ``objects.inv`` to be referenced via intersphinx. +* #1095: Fix print-media stylesheet being included always in the "scrolls" + theme. + Documentation ------------- diff --git a/sphinx/themes/haiku/layout.html b/sphinx/themes/haiku/layout.html index 337d0ca2..0c6b41e7 100644 --- a/sphinx/themes/haiku/layout.html +++ b/sphinx/themes/haiku/layout.html @@ -8,8 +8,6 @@ :license: BSD, see LICENSE for details. #} {%- extends "basic/layout.html" %} -{% set script_files = script_files + ['_static/theme_extras.js'] %} -{% set css_files = css_files + ['_static/print.css'] %} {# do not display relbars #} {% block relbar1 %}{% endblock %} diff --git a/sphinx/themes/scrolls/static/print.css b/sphinx/themes/scrolls/static/print.css index fb633d87..715d90ab 100644 --- a/sphinx/themes/scrolls/static/print.css +++ b/sphinx/themes/scrolls/static/print.css @@ -1,5 +1,7 @@ -div.header, div.relnav, #toc { display: none; } -#contentwrapper { padding: 0; margin: 0; border: none; } -body { color: black; background-color: white; } -div.footer { border-top: 1px solid #888; color: #888; margin-top: 1cm; } -div.footer a { text-decoration: none; } +@media print { + div.header, div.relnav, #toc { display: none; } + #contentwrapper { padding: 0; margin: 0; border: none; } + body { color: black; background-color: white; } + div.footer { border-top: 1px solid #888; color: #888; margin-top: 1cm; } + div.footer a { text-decoration: none; } +} |
