File tree Expand file tree Collapse file tree
pep_sphinx_extensions/pep_theme Expand file tree Collapse file tree Original file line number Diff line number Diff line change 3838 padding : 0.5rem 1rem 0 ;
3939 width : 100% ;
4040 }
41- section # pep-page-section > article ,
41+ section # pep-page-section > main ,
4242 section # pep-page-section > footer # pep-page-footer {
4343 max-width : 37em ;
4444 width : 74% ;
6565 }
6666}
6767@media (min-width : 60em ) {
68- section # pep-page-section > article ,
68+ section # pep-page-section > main ,
6969 section # pep-page-section > footer # pep-page-footer {
7070 max-width : 56em ;
7171 padding-left : 3.2% ;
8383 font-size : 10pt ;
8484 line-height : 1.67 ;
8585 }
86- * [ role = " main" ] a [href ]: after {
86+ main a [href ]: after {
8787 content : " (" attr (href) ")" ;
8888 font-size : .75rem ;
8989 }
163163 display : none;
164164 }
165165
166- section # pep-page-section > article ,
166+ section # pep-page-section > main ,
167167 section # pep-page-section > footer # pep-page-footer {
168168 float : none;
169169 max-width : 100% ;
Original file line number Diff line number Diff line change @@ -288,7 +288,7 @@ table.pep-zero-table tr td:nth-child(5) {
288288}
289289
290290/* Numerical index */
291- article : has (> section # numerical-index ) {
291+ main : has (> section # numerical-index ) {
292292 float : unset !important ;
293293 width : 90% !important ;
294294 max-width : 90% !important ;
Original file line number Diff line number Diff line change @@ -53,14 +53,14 @@ <h1 data-pagefind-ignore>Python Enhancement Proposals</h1>
5353 </ div >
5454 {# Exclude noisy non-PEP pages from Pagefind indexing #}
5555 {%- if pagename.startswith(("404", "numerical", "pep-0000", "topic")) %}
56- < article >
56+ < main >
5757 {%- else %}
58- < article data-pagefind-body >
58+ < main data-pagefind-body >
5959 {%- endif %}
6060 {# Add pagefind meta for the title to improve search result display #}
6161 < span data-pagefind-meta ="title:{{ title }} " data-pagefind-weight ="10 " class ="visually-hidden "> {{ title }}</ span >
6262 {{ body }}
63- </ article >
63+ </ main >
6464 {%- if not pagename.startswith(("404", "numerical")) %}
6565 < nav id ="pep-sidebar ">
6666 < pagefind-searchbox shortcut ="/ " style ="font-family: inherit "> </ pagefind-searchbox >
You can’t perform that action at this time.
0 commit comments