Fix #7297: html theme: `bizstyle does not support sidebarwidth`

This commit is contained in:
Takeshi KOMIYA 2020-03-15 14:22:39 +09:00
parent 8f45bee2a1
commit 6919c06898
3 changed files with 8 additions and 2 deletions

View File

@ -102,6 +102,7 @@ Bugs fixed
* #7139: ``code-block:: guess`` does not work
* #7278: html search: Fix use of ``html_file_suffix`` instead of
``html_link_suffix`` in search results
* #7297: html theme: ``bizstyle`` does not support ``sidebarwidth``
* #7179: std domain: Fix whitespaces are suppressed on referring GenericObject
* #7289: console: use bright colors instead of bold

View File

@ -51,9 +51,13 @@ div.body {
{%- if theme_rightsidebar|tobool %}
div.bodywrapper {
margin: 0 240px 0 0;
margin: 0 calc({{ theme_sidebarwidth|todim }} + 30px) 0 0;
border-right: 1px solid #ccc;
}
{%- else %}
div.bodywrapper {
margin: 0 0 0 calc({{ theme_sidebarwidth|todim }} + 30px);
}
{%- endif %}
div.related {
@ -103,7 +107,7 @@ div.sphinxsidebarwrapper {
div.sphinxsidebar {
margin: 0;
padding: 0.5em 12px 12px 12px;
width: 210px;
width: {{ theme_sidebarwidth|todim }};
{%- if theme_rightsidebar|tobool %}
float: right;
{%- endif %}

View File

@ -5,5 +5,6 @@ pygments_style = friendly
[options]
rightsidebar = false
sidebarwidth = 210
maincolor = #336699