Skip to content

Commit

Permalink
Move aside.topic into the conditional blocks
Browse files Browse the repository at this point in the history
  • Loading branch information
AA-Turner committed Jun 7, 2022
1 parent 5806f0a commit 27f0532
Show file tree
Hide file tree
Showing 10 changed files with 24 additions and 13 deletions.
10 changes: 6 additions & 4 deletions sphinx/themes/basic/static/basic.css_t
Expand Up @@ -339,17 +339,19 @@ p.sidebar-title {

{%- if docutils_version_info[:2] >= (0, 18) %}
nav.contents,
aside.topic,
{% endif %}
div.admonition, div.topic, aside.topic, blockquote {
div.admonition, div.topic, blockquote {
clear: left;
}

/* -- topics ---------------------------------------------------------------- */

{%- if docutils_version_info[:2] >= (0, 18) %}
nav.contents,
aside.topic,
{% endif %}
div.topic, aside.topic {
div.topic {
border: 1px solid #ccc;
padding: 7px;
margin: 10px 0 10px 0;
Expand Down Expand Up @@ -389,9 +391,9 @@ div.sidebar > :last-child,
aside.sidebar > :last-child,
{%- if docutils_version_info[:2] >= (0, 18) %}
nav.contents > :last-child,
aside.topic > :last-child,
{% endif %}
div.topic > :last-child,
aside.topic > :last-child,
div.admonition > :last-child {
margin-bottom: 0;
}
Expand All @@ -400,9 +402,9 @@ div.sidebar::after,
aside.sidebar::after,
{%- if docutils_version_info[:2] >= (0, 18) %}
nav.contents::after,
aside.topic::after,
{% endif %}
div.topic::after,
aside.topic::after,
div.admonition::after,
blockquote::after {
display: block;
Expand Down
3 changes: 2 additions & 1 deletion sphinx/themes/bizstyle/static/bizstyle.css_t
Expand Up @@ -308,8 +308,9 @@ div.quotebar {

{%- if docutils_version_info[:2] >= (0, 18) %}
nav.contents,
aside.topic,
{% endif %}
div.topic, aside.topic {
div.topic {
background-color: #f8f8f8;
}

Expand Down
3 changes: 2 additions & 1 deletion sphinx/themes/classic/static/classic.css_t
Expand Up @@ -292,8 +292,9 @@ div.seealso {

{%- if docutils_version_info[:2] >= (0, 18) %}
nav.contents,
aside.topic,
{% endif %}
div.topic, aside.topic {
div.topic {
background-color: #eee;
}

Expand Down
3 changes: 2 additions & 1 deletion sphinx/themes/epub/static/epub.css_t
Expand Up @@ -247,8 +247,9 @@ p.sidebar-title {

{%- if docutils_version_info[:2] >= (0, 18) %}
nav.contents,
aside.topic,
{% endif %}
div.topic, aside.topic {
div.topic {
border: 1px solid #ccc;
padding: 7px 7px 0 7px;
margin: 10px 0 10px 0;
Expand Down
3 changes: 2 additions & 1 deletion sphinx/themes/nature/static/nature.css_t
Expand Up @@ -196,8 +196,9 @@ div.seealso {

{%- if docutils_version_info[:2] >= (0, 18) %}
nav.contents,
aside.topic,
{% endif %}
div.topic, aside.topic {
div.topic {
background-color: #eee;
}

Expand Down
3 changes: 2 additions & 1 deletion sphinx/themes/nonav/static/nonav.css_t
Expand Up @@ -236,8 +236,9 @@ p.sidebar-title {

{%- if docutils_version_info[:2] >= (0, 18) %}
nav.contents,
aside.topic,
{% endif %}
div.topic, aside.topic {
div.topic {
border: 1px solid #ccc;
padding: 7px 7px 0 7px;
margin: 10px 0 10px 0;
Expand Down
3 changes: 2 additions & 1 deletion sphinx/themes/pyramid/static/epub.css_t
Expand Up @@ -256,8 +256,9 @@ div.seealso {

{%- if docutils_version_info[:2] >= (0, 18) %}
nav.contents,
aside.topic,
{% endif %}
div.topic, aside.topic {
div.topic {
background-color: #eee;
}

Expand Down
3 changes: 2 additions & 1 deletion sphinx/themes/pyramid/static/pyramid.css_t
Expand Up @@ -247,8 +247,9 @@ div.seealso {

{%- if docutils_version_info[:2] >= (0, 18) %}
nav.contents,
aside.topic,
{% endif %}
div.topic, aside.topic {
div.topic {
background: #eeeeee;
border: 2px solid #C6C9CB;
padding: 10px 20px;
Expand Down
3 changes: 2 additions & 1 deletion sphinx/themes/sphinxdoc/static/sphinxdoc.css_t
Expand Up @@ -268,8 +268,9 @@ div.quotebar {

{%- if docutils_version_info[:2] >= (0, 18) %}
nav.contents,
aside.topic,
{% endif %}
div.topic, aside.topic {
div.topic {
background-color: #f8f8f8;
}

Expand Down
3 changes: 2 additions & 1 deletion sphinx/themes/traditional/static/traditional.css_t
Expand Up @@ -508,8 +508,9 @@ p.rubric {

{%- if docutils_version_info[:2] >= (0, 18) %}
nav.contents,
aside.topic,
{% endif %}
div.topic, aside.topic {
div.topic {
background-color: #eee;
border: 1px solid #ccc;
padding: 0 7px 0 7px;
Expand Down

0 comments on commit 27f0532

Please sign in to comment.