Skip to content

Commit

Permalink
Make numerical table wider
Browse files Browse the repository at this point in the history
  • Loading branch information
hugovk committed Sep 26, 2024
1 parent 14012cb commit e439e06
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
7 changes: 7 additions & 0 deletions pep_sphinx_extensions/pep_theme/static/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -281,6 +281,13 @@ table.pep-zero-table tr td:nth-child(5) {
width: 50%;
}

/* Numerical index */
article:has(> section#numerical-index) {
float: unset !important;
width: 100% !important;
max-width: 100% !important;
}

/* Breadcrumbs rules */
section#pep-page-section > header {
border-bottom: 1px solid var(--colour-rule-light);
Expand Down
2 changes: 2 additions & 0 deletions pep_sphinx_extensions/pep_theme/templates/page.html
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ <h1>Python Enhancement Proposals</h1>
<article>
{{ body }}
</article>
{%- if not pagename == "numerical" %}
<nav id="pep-sidebar">
<h2>Contents</h2>
{{ toc }}
Expand All @@ -57,6 +58,7 @@ <h2>Contents</h2>
<a id="source" href="https://github.com/python/peps/blob/main/peps/{{pagename}}.rst">Page Source (GitHub)</a>
{%- endif %}
</nav>
{%- endif %}
</section>
<script src="{{ pathto('_static/colour_scheme.js', resource=True) }}"></script>
<script src="{{ pathto('_static/wrap_tables.js', resource=True) }}"></script>
Expand Down

0 comments on commit e439e06

Please sign in to comment.