Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions pep_sphinx_extensions/pep_theme/static/mq.css
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
padding: 0.5rem 1rem 0;
width: 100%;
}
section#pep-page-section > article,
section#pep-page-section > main,
section#pep-page-section > footer#pep-page-footer {
max-width: 37em;
width: 74%;
Expand All @@ -65,7 +65,7 @@
}
}
@media (min-width: 60em) {
section#pep-page-section > article,
section#pep-page-section > main,
section#pep-page-section > footer#pep-page-footer {
max-width: 56em;
padding-left: 3.2%;
Expand All @@ -83,7 +83,7 @@
font-size: 10pt;
line-height: 1.67;
}
*[role="main"] a[href]:after {
main a[href]:after {
content: " (" attr(href) ")";
font-size: .75rem;
}
Expand Down Expand Up @@ -163,7 +163,7 @@
display: none;
}

section#pep-page-section > article,
section#pep-page-section > main,
section#pep-page-section > footer#pep-page-footer {
float: none;
max-width: 100%;
Expand Down
2 changes: 1 addition & 1 deletion pep_sphinx_extensions/pep_theme/static/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -288,7 +288,7 @@ table.pep-zero-table tr td:nth-child(5) {
}

/* Numerical index */
article:has(> section#numerical-index) {
main:has(> section#numerical-index) {
float: unset !important;
width: 90% !important;
max-width: 90% !important;
Expand Down
6 changes: 3 additions & 3 deletions pep_sphinx_extensions/pep_theme/templates/page.html
Original file line number Diff line number Diff line change
Expand Up @@ -53,14 +53,14 @@ <h1 data-pagefind-ignore>Python Enhancement Proposals</h1>
</div>
{# Exclude noisy non-PEP pages from Pagefind indexing #}
{%- if pagename.startswith(("404", "numerical", "pep-0000", "topic")) %}
<article>
<main>
{%- else %}
<article data-pagefind-body>
<main data-pagefind-body>
{%- endif %}
{# Add pagefind meta for the title to improve search result display #}
<span data-pagefind-meta="title:{{ title }}" data-pagefind-weight="10" class="visually-hidden">{{ title }}</span>
{{ body }}
</article>
</main>
{%- if not pagename.startswith(("404", "numerical")) %}
<nav id="pep-sidebar">
<pagefind-searchbox shortcut="/" style="font-family: inherit"></pagefind-searchbox>
Expand Down
Loading