diff --git a/manual/resources/custom.css b/manual/resources/custom.css index 00569e8d96..2724f1af58 100644 --- a/manual/resources/custom.css +++ b/manual/resources/custom.css @@ -5,32 +5,6 @@ * Distributed under terms of the GPLv3 license. */ -@media screen and (max-width: 875px) { - body { - padding-top: 0; - padding-bottom: 0; - } - div.related { display: none; } - ul { margin-left: 0.75em; } /* fix bullets being displayed outside container */ -} - -@media screen and (min-width: 876px) { - div.related { - height: 3.5ex; - display: flex; - align-items: center; - box-sizing: border-box; - position: fixed; top: 0 - } - div.related > ul { flex-grow: 10; } - div.sphinxsidebar { overflow-y: auto; max-height: calc(100vh - 25px) } - div.document { margin-top: 3.5ex; } -} - -div.document, div.footer { - width: auto; /* fix horizontal scrollbar if screen is less that 940px */ -} - pre, code { white-space: pre-wrap; } diff --git a/manual/templates/layout.html b/manual/templates/layout.html index 67c93c8032..7ee81010d2 100644 --- a/manual/templates/layout.html +++ b/manual/templates/layout.html @@ -1,6 +1,7 @@ {% extends "!layout.html" %} {%- block extrahead %} +{% if not embedded %} + + +{% endif %} {% endblock %} {%- block relbar1 %}{{ relbar() }}{% endblock %} {%- block content %} -
{{ sidebar() }} {%- block document %}
- {%- if render_sidebar %} -
- {%- endif %} +
{% if not embedded %} -
- {% endif %} - {% block body %} {% endblock %} -
- {%- if render_sidebar %} -
- {%- endif %} -
- {%- endblock %} -
-
-{%- endblock %} - + {% endif %} + {% block body %} {% endblock %} + +
+ + {%- endblock document %} +{%- endblock content %} +{%- block footer -%} {%- endblock footer -%}