Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/sphinx-doc/sphinx.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdam Turner <9087854+AA-Turner@users.noreply.github.com>2022-06-08 01:10:15 +0300
committerAdam Turner <9087854+AA-Turner@users.noreply.github.com>2022-06-08 01:12:29 +0300
commit5806f0af2788db40661d62e5e88c2c1560ae46b6 (patch)
tree20a37054bec2a6b8331a6991fc84f3b8f1299542
parent8da2efb1d71ab2d384ddc90cf4fdebe5d18e91cd (diff)
Add `nav.contents` everywhere that `div.topic` is used
-rw-r--r--doc/_themes/sphinx13/static/sphinx13.css1
-rw-r--r--sphinx/themes/basic/static/basic.css_t12
-rw-r--r--sphinx/themes/bizstyle/static/bizstyle.css_t3
-rw-r--r--sphinx/themes/classic/static/classic.css_t3
-rw-r--r--sphinx/themes/epub/static/epub.css_t3
-rw-r--r--sphinx/themes/nature/static/nature.css_t3
-rw-r--r--sphinx/themes/nonav/static/nonav.css_t3
-rw-r--r--sphinx/themes/pyramid/static/epub.css_t3
-rw-r--r--sphinx/themes/pyramid/static/pyramid.css_t3
-rw-r--r--sphinx/themes/sphinxdoc/static/sphinxdoc.css_t3
-rw-r--r--sphinx/themes/traditional/static/traditional.css_t3
11 files changed, 40 insertions, 0 deletions
diff --git a/doc/_themes/sphinx13/static/sphinx13.css b/doc/_themes/sphinx13/static/sphinx13.css
index 789a5d4f3..5d64eda51 100644
--- a/doc/_themes/sphinx13/static/sphinx13.css
+++ b/doc/_themes/sphinx13/static/sphinx13.css
@@ -372,6 +372,7 @@ div.quotebar {
margin-left: 1em;
}
+nav.contents,
div.topic,
aside.topic {
background-color: #f8f8f8;
diff --git a/sphinx/themes/basic/static/basic.css_t b/sphinx/themes/basic/static/basic.css_t
index 67bfec755..0a0447f0f 100644
--- a/sphinx/themes/basic/static/basic.css_t
+++ b/sphinx/themes/basic/static/basic.css_t
@@ -337,12 +337,18 @@ p.sidebar-title {
font-weight: bold;
}
+{%- if docutils_version_info[:2] >= (0, 18) %}
+nav.contents,
+{% endif %}
div.admonition, div.topic, aside.topic, blockquote {
clear: left;
}
/* -- topics ---------------------------------------------------------------- */
+{%- if docutils_version_info[:2] >= (0, 18) %}
+nav.contents,
+{% endif %}
div.topic, aside.topic {
border: 1px solid #ccc;
padding: 7px;
@@ -381,6 +387,9 @@ div.body p.centered {
div.sidebar > :last-child,
aside.sidebar > :last-child,
+{%- if docutils_version_info[:2] >= (0, 18) %}
+nav.contents > :last-child,
+{% endif %}
div.topic > :last-child,
aside.topic > :last-child,
div.admonition > :last-child {
@@ -389,6 +398,9 @@ div.admonition > :last-child {
div.sidebar::after,
aside.sidebar::after,
+{%- if docutils_version_info[:2] >= (0, 18) %}
+nav.contents::after,
+{% endif %}
div.topic::after,
aside.topic::after,
div.admonition::after,
diff --git a/sphinx/themes/bizstyle/static/bizstyle.css_t b/sphinx/themes/bizstyle/static/bizstyle.css_t
index b5c84e0bb..47dcc7e4f 100644
--- a/sphinx/themes/bizstyle/static/bizstyle.css_t
+++ b/sphinx/themes/bizstyle/static/bizstyle.css_t
@@ -306,6 +306,9 @@ div.quotebar {
border: 1px solid #ccc;
}
+{%- if docutils_version_info[:2] >= (0, 18) %}
+nav.contents,
+{% endif %}
div.topic, aside.topic {
background-color: #f8f8f8;
}
diff --git a/sphinx/themes/classic/static/classic.css_t b/sphinx/themes/classic/static/classic.css_t
index 58b55c8bf..9107dc934 100644
--- a/sphinx/themes/classic/static/classic.css_t
+++ b/sphinx/themes/classic/static/classic.css_t
@@ -290,6 +290,9 @@ div.seealso {
border: 1px solid #ff6;
}
+{%- if docutils_version_info[:2] >= (0, 18) %}
+nav.contents,
+{% endif %}
div.topic, aside.topic {
background-color: #eee;
}
diff --git a/sphinx/themes/epub/static/epub.css_t b/sphinx/themes/epub/static/epub.css_t
index bd64a1bc8..9cc47152b 100644
--- a/sphinx/themes/epub/static/epub.css_t
+++ b/sphinx/themes/epub/static/epub.css_t
@@ -245,6 +245,9 @@ p.sidebar-title {
/* -- topics ---------------------------------------------------------------- */
+{%- if docutils_version_info[:2] >= (0, 18) %}
+nav.contents,
+{% endif %}
div.topic, aside.topic {
border: 1px solid #ccc;
padding: 7px 7px 0 7px;
diff --git a/sphinx/themes/nature/static/nature.css_t b/sphinx/themes/nature/static/nature.css_t
index f3c0d0224..c1a2cd6cb 100644
--- a/sphinx/themes/nature/static/nature.css_t
+++ b/sphinx/themes/nature/static/nature.css_t
@@ -194,6 +194,9 @@ div.seealso {
border: 1px solid #ff6;
}
+{%- if docutils_version_info[:2] >= (0, 18) %}
+nav.contents,
+{% endif %}
div.topic, aside.topic {
background-color: #eee;
}
diff --git a/sphinx/themes/nonav/static/nonav.css_t b/sphinx/themes/nonav/static/nonav.css_t
index 90c3300cf..d62536ab2 100644
--- a/sphinx/themes/nonav/static/nonav.css_t
+++ b/sphinx/themes/nonav/static/nonav.css_t
@@ -234,6 +234,9 @@ p.sidebar-title {
/* -- topics ---------------------------------------------------------------- */
+{%- if docutils_version_info[:2] >= (0, 18) %}
+nav.contents,
+{% endif %}
div.topic, aside.topic {
border: 1px solid #ccc;
padding: 7px 7px 0 7px;
diff --git a/sphinx/themes/pyramid/static/epub.css_t b/sphinx/themes/pyramid/static/epub.css_t
index 8606c8c8d..7f59c670c 100644
--- a/sphinx/themes/pyramid/static/epub.css_t
+++ b/sphinx/themes/pyramid/static/epub.css_t
@@ -254,6 +254,9 @@ div.seealso {
border: 1px solid #ff6;
}
+{%- if docutils_version_info[:2] >= (0, 18) %}
+nav.contents,
+{% endif %}
div.topic, aside.topic {
background-color: #eee;
}
diff --git a/sphinx/themes/pyramid/static/pyramid.css_t b/sphinx/themes/pyramid/static/pyramid.css_t
index f093ba164..bf18b8b15 100644
--- a/sphinx/themes/pyramid/static/pyramid.css_t
+++ b/sphinx/themes/pyramid/static/pyramid.css_t
@@ -245,6 +245,9 @@ div.seealso {
padding: 10px 20px 10px 60px;
}
+{%- if docutils_version_info[:2] >= (0, 18) %}
+nav.contents,
+{% endif %}
div.topic, aside.topic {
background: #eeeeee;
border: 2px solid #C6C9CB;
diff --git a/sphinx/themes/sphinxdoc/static/sphinxdoc.css_t b/sphinx/themes/sphinxdoc/static/sphinxdoc.css_t
index b6de4ae6f..f6a838404 100644
--- a/sphinx/themes/sphinxdoc/static/sphinxdoc.css_t
+++ b/sphinx/themes/sphinxdoc/static/sphinxdoc.css_t
@@ -266,6 +266,9 @@ div.quotebar {
border: 1px solid #ccc;
}
+{%- if docutils_version_info[:2] >= (0, 18) %}
+nav.contents,
+{% endif %}
div.topic, aside.topic {
background-color: #f8f8f8;
}
diff --git a/sphinx/themes/traditional/static/traditional.css_t b/sphinx/themes/traditional/static/traditional.css_t
index b5b05dc21..5caf48ccf 100644
--- a/sphinx/themes/traditional/static/traditional.css_t
+++ b/sphinx/themes/traditional/static/traditional.css_t
@@ -506,6 +506,9 @@ p.rubric {
/* "Topics" */
+{%- if docutils_version_info[:2] >= (0, 18) %}
+nav.contents,
+{% endif %}
div.topic, aside.topic {
background-color: #eee;
border: 1px solid #ccc;