8000 Add `nav.contents` everywhere that `div.topic` is used · sphinx-doc/sphinx@5806f0a · GitHub
[go: up one dir, main page]

Skip to content

Commit 5806f0a

Browse files
committed
Add nav.contents everywhere that div.topic is used
1 parent 8da2efb commit 5806f0a

File tree

11 files changed

+40
-0
lines changed

11 files changed

+40
-0
lines changed

doc/_themes/sphinx13/static/sphinx13.css

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -372,6 +372,7 @@ div.quotebar {
372372
margin-left: 1em;
373373
}
374374

375+
nav.contents,
375376
div.topic,
376377
aside.topic {
377378
background-color: #f8f8f8;

sphinx/themes/basic/static/basic.css_t

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -337,12 +337,18 @@ p.sidebar-title {
337337
font-weight: bold;
338338
}
339339

340+
{%- if docutils_version_info[:2] >= (0, 18) %}
341+
nav.contents,
342+
{% endif %}
340343
div.admonition, div.topic, aside.topic, blockquote {
341344
clear: left;
342345
}
343346

344347
/* -- topics ---------------------------------------------------------------- */
345348

349+
{%- if docutils_version_info[:2] >= (0, 18) %}
350+
nav.contents,
351+
{% endif %}
346352
div.topic, aside.topic {
347353
border: 1px solid #ccc;
348354
padding: 7px;
@@ -381,6 +387,9 @@ div.body p.centered {
381387

382388
div.sidebar > :last-child,
383389
aside.sidebar > :last-child,
390+
{%- if docutils_version_info[:2] >= (0, 18) %}
391+
nav.contents > :last-child,
392+
{% endif %}
384393
div.topic > :last-child,
385394
aside.topic > :last-child,
386395
div.admonition > :last-child {
@@ -389,6 +398,9 @@ div.admonition > :last-child {
389398

390399
div.sidebar::after,
391400
aside.sidebar::after,
401+
{%- if docutils_version_info[:2] >= (0, 18) %}
402+
nav.contents::after,
403+
{% endif %}
392404
div.topic::after,
393405
aside.topic::after,
394406
div.admonition::after,

sphinx/themes/bizstyle/static/bizstyle.css_t

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -306,6 +306,9 @@ div.quotebar {
306306
border: 1px solid #ccc;
307307
}
308308

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

sphinx/themes/classic/static/classic.css_t

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -290,6 +290,9 @@ div.seealso {
290290
border: 1px solid #ff6;
291291
}
292292

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

sphinx/themes/epub/static/epub.css_t

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -245,6 +245,9 @@ p.sidebar-title {
245245

246246
/* -- topics ---------------------------------------------------------------- */
247247

248+
{%- if docutils_version_info[:2] >= (0, 18) %}
249+
nav.contents,
250+
{% endif %}
248251
div.topic, aside.topic {
249252
border: 1px solid #ccc;
250253
padding: 7px 7px 0 7px;

sphinx/themes/nature/static/nature.css_t

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -194,6 +194,9 @@ div.seealso {
194194
border: 1px solid #ff6;
195195
}
196196

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

sphinx/themes/nonav/static/nonav.css_t

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -234,6 +234,9 @@ p.sidebar-title {
234234

235235
/* -- topics ---------------------------------------------------------------- */
236236

237+
{%- if docutils_version_info[:2] >= (0, 18) %}
238+
nav.contents,
239+
{% endif %}
237240
div.topic, aside.topic {
238241
border: 1px solid #ccc;
239242
padding: 7px 7px 0 7px;

sphinx/themes/pyramid/static/epub.css_t

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -254,6 +254,9 @@ div.seealso {
254254
border: 1px solid #ff6;
255255
}
256256

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

sphinx/themes/pyramid/static/pyramid.css_t

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -245,6 +245,9 @@ div.seealso {
245245
padding: 10px 20px 10px 60px;
246246
}
247247

248+
{%- if docutils_version_info[:2] >= (0, 18) %}
249+
nav.contents,
250+
{% endif %}
248251
div.topic, aside.topic {
249252
background: #eeeeee;
250253
border: 2px solid #C6C9CB;

sphinx/themes/sphinxdoc/static/sphinxdoc.css_t

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -266,6 +266,9 @@ div.quotebar {
266266
border: 1px solid #ccc;
267267
}
268268

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

0 commit comments

Comments
 (0)
0