bizstyle&sphinxdoc themes: Fix float behavior

This commit is contained in:
Matthias Geier 2020-05-17 17:34:03 +02:00
parent efc1c5ef08
commit ba36265116
4 changed files with 10 additions and 20 deletions

View File

@ -14,10 +14,6 @@
<script src="{{ pathto('_static/bizstyle.js', 1) }}"></script>
{%- endblock %}
{# put the sidebar before the body #}
{% block sidebar1 %}{{ sidebar() }}{% endblock %}
{% block sidebar2 %}{% endblock %}
{# doctype override #}
{%- block doctype %}
<!doctype html>

View File

@ -39,6 +39,11 @@ div.document {
-webkit-box-shadow: 2px 2px 5px #000;
}
div.documentwrapper {
float: left;
width: 100%;
}
div.bodywrapper {
margin: 0 0 0 240px;
border-left: 1px solid #ccc;
@ -105,7 +110,6 @@ div.sphinxsidebarwrapper {
}
div.sphinxsidebar {
margin: 0;
padding: 0.5em 12px 12px 12px;
width: {{ theme_sidebarwidth|todim }};
{%- if theme_rightsidebar|tobool %}

View File

@ -1,14 +0,0 @@
{#
sphinxdoc/layout.html
~~~~~~~~~~~~~~~~~~~~~
Sphinx layout template for the sphinxdoc theme.
:copyright: Copyright 2007-2020 by the Sphinx team, see AUTHORS.
:license: BSD, see LICENSE for details.
#}
{%- extends "basic/layout.html" %}
{# put the sidebar before the body #}
{% block sidebar1 %}{{ sidebar() }}{% endblock %}
{% block sidebar2 %}{% endblock %}

View File

@ -37,6 +37,11 @@ div.document {
background-repeat: repeat-x;
}
div.documentwrapper {
float: left;
width: 100%;
}
div.bodywrapper {
margin: 0 calc({{ theme_sidebarwidth|todim }} + 10px) 0 0;
border-right: 1px solid #ccc;
@ -86,7 +91,6 @@ div.sphinxsidebarwrapper {
}
div.sphinxsidebar {
margin: 0;
padding: 0.5em 15px 15px 0;
width: calc({{ theme_sidebarwidth|todim }} - 20px);
float: right;