diff --git a/pep_sphinx_extensions/pep_theme/static/mq.css b/pep_sphinx_extensions/pep_theme/static/mq.css index 59b82dae525..d704293d57b 100644 --- a/pep_sphinx_extensions/pep_theme/static/mq.css +++ b/pep_sphinx_extensions/pep_theme/static/mq.css @@ -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%; @@ -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%; @@ -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; } @@ -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%; diff --git a/pep_sphinx_extensions/pep_theme/static/style.css b/pep_sphinx_extensions/pep_theme/static/style.css index bbfc5ea4d2b..5c9390f8b41 100644 --- a/pep_sphinx_extensions/pep_theme/static/style.css +++ b/pep_sphinx_extensions/pep_theme/static/style.css @@ -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; diff --git a/pep_sphinx_extensions/pep_theme/templates/page.html b/pep_sphinx_extensions/pep_theme/templates/page.html index 2a55a8a139e..cee8049f5fa 100644 --- a/pep_sphinx_extensions/pep_theme/templates/page.html +++ b/pep_sphinx_extensions/pep_theme/templates/page.html @@ -53,14 +53,14 @@

Python Enhancement Proposals

{# Exclude noisy non-PEP pages from Pagefind indexing #} {%- if pagename.startswith(("404", "numerical", "pep-0000", "topic")) %} -
+
{%- else %} -
+
{%- endif %} {# Add pagefind meta for the title to improve search result display #} {{ title }} {{ body }} -
+
{%- if not pagename.startswith(("404", "numerical")) %}