summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTakeshi KOMIYA <i.tkomiya@gmail.com>2021-11-12 01:49:28 +0900
committerGitHub <noreply@github.com>2021-11-12 01:49:28 +0900
commit921cbe12d0420aadf1ba3b9de30b278c29ce1de9 (patch)
tree46f5fd145d815e7380c06d64f1795c8444614af6
parent121d9394fc5d33f13c66599620a9b9966c894b6a (diff)
parent9e7e6dd5ed26dac6529973af1e63142d128ef8b3 (diff)
downloadsphinx-git-921cbe12d0420aadf1ba3b9de30b278c29ce1de9.tar.gz
Merge pull request #9815 from not-my-profile/sidebar-divs
base theme: Wrap sidebar components in <div>s
-rw-r--r--sphinx/themes/basic/localtoc.html6
-rw-r--r--sphinx/themes/basic/relations.html16
2 files changed, 14 insertions, 8 deletions
diff --git a/sphinx/themes/basic/localtoc.html b/sphinx/themes/basic/localtoc.html
index d761c2378..750f5daa0 100644
--- a/sphinx/themes/basic/localtoc.html
+++ b/sphinx/themes/basic/localtoc.html
@@ -8,6 +8,8 @@
:license: BSD, see LICENSE for details.
#}
{%- if display_toc %}
- <h3><a href="{{ pathto(root_doc)|e }}">{{ _('Table of Contents') }}</a></h3>
- {{ toc }}
+ <div>
+ <h3><a href="{{ pathto(root_doc)|e }}">{{ _('Table of Contents') }}</a></h3>
+ {{ toc }}
+ </div>
{%- endif %}
diff --git a/sphinx/themes/basic/relations.html b/sphinx/themes/basic/relations.html
index c4391fe4d..db478b719 100644
--- a/sphinx/themes/basic/relations.html
+++ b/sphinx/themes/basic/relations.html
@@ -8,12 +8,16 @@
:license: BSD, see LICENSE for details.
#}
{%- if prev %}
- <h4>{{ _('Previous topic') }}</h4>
- <p class="topless"><a href="{{ prev.link|e }}"
- title="{{ _('previous chapter') }}">{{ prev.title }}</a></p>
+ <div>
+ <h4>{{ _('Previous topic') }}</h4>
+ <p class="topless"><a href="{{ prev.link|e }}"
+ title="{{ _('previous chapter') }}">{{ prev.title }}</a></p>
+ </div>
{%- endif %}
{%- if next %}
- <h4>{{ _('Next topic') }}</h4>
- <p class="topless"><a href="{{ next.link|e }}"
- title="{{ _('next chapter') }}">{{ next.title }}</a></p>
+ <div>
+ <h4>{{ _('Next topic') }}</h4>
+ <p class="topless"><a href="{{ next.link|e }}"
+ title="{{ _('next chapter') }}">{{ next.title }}</a></p>
+ </div>
{%- endif %}