Skip to content

Commit

Permalink
Add nav.contents everywhere that div.topic is used
Browse files Browse the repository at this point in the history
  • Loading branch information
AA-Turner committed Jun 7, 2022
1 parent 8da2efb commit 5806f0a
Show file tree
Hide file tree
Showing 11 changed files with 40 additions and 0 deletions.
1 change: 1 addition & 0 deletions doc/_themes/sphinx13/static/sphinx13.css
Original file line number Diff line number Diff line change
Expand Up @@ -372,6 +372,7 @@ div.quotebar {
margin-left: 1em;
}

nav.contents,
div.topic,
aside.topic {
background-color: #f8f8f8;
Expand Down
12 changes: 12 additions & 0 deletions sphinx/themes/basic/static/basic.css_t
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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 {
Expand All @@ -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,
Expand Down
3 changes: 3 additions & 0 deletions sphinx/themes/bizstyle/static/bizstyle.css_t
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down
3 changes: 3 additions & 0 deletions sphinx/themes/classic/static/classic.css_t
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down
3 changes: 3 additions & 0 deletions sphinx/themes/epub/static/epub.css_t
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
3 changes: 3 additions & 0 deletions sphinx/themes/nature/static/nature.css_t
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down
3 changes: 3 additions & 0 deletions sphinx/themes/nonav/static/nonav.css_t
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
3 changes: 3 additions & 0 deletions sphinx/themes/pyramid/static/epub.css_t
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down
3 changes: 3 additions & 0 deletions sphinx/themes/pyramid/static/pyramid.css_t
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
3 changes: 3 additions & 0 deletions sphinx/themes/sphinxdoc/static/sphinxdoc.css_t
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down
3 changes: 3 additions & 0 deletions sphinx/themes/traditional/static/traditional.css_t
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 5806f0a

Please sign in to comment.