File tree 6 files changed +11
-6
lines changed
theme/pydata_sphinx_theme
6 files changed +11
-6
lines changed Original file line number Diff line number Diff line change @@ -5,7 +5,9 @@ div.deprecated {
5
5
margin : 1.5625em auto ;
6
6
padding : 0 0.6rem 0 0.6rem ;
7
7
overflow : hidden ;
8
+ /* break-inside has replaced page-break-inside and is widely usable since 2019 */
8
9
page-break-inside : avoid ;
10
+ break-inside : avoid ;
9
11
border-left : 0.2rem solid ;
10
12
border-color : var (--pst-color-info );
11
13
border-radius : $admonition-border-radius ;
Original file line number Diff line number Diff line change @@ -9,7 +9,9 @@ div.admonition,
9
9
margin : 1.5625em auto ;
10
10
padding : 0 0.6rem 0.8rem 0.6rem ;
11
11
overflow : hidden ;
12
+ /* break-inside has replaced page-break-inside and is widely usable since 2019 */
12
13
page-break-inside : avoid ;
14
+ break-inside : avoid ;
13
15
border-left : $admonition-left-border-width solid ;
14
16
border-color : var (--pst-color-info );
15
17
border-radius : $admonition-border-radius ;
Original file line number Diff line number Diff line change @@ -12,6 +12,7 @@ div.literal-block-wrapper {
12
12
flex-direction : column ;
13
13
width : unset ;
14
14
border-radius : $admonition-border-radius ;
15
+ break-inside : avoid ;
15
16
}
16
17
17
18
// Code blocks with captions
Original file line number Diff line number Diff line change 10
10
11
11
{#- Hide breadcrumbs on the home page #}
12
12
{% if title and pagename != root_doc %}
13
- < nav aria-label ="{{ _('Breadcrumb') }} ">
13
+ < nav aria-label ="{{ _('Breadcrumb') }} " class =" d-print-none " >
14
14
< ul class ="bd-breadcrumbs ">
15
15
{# Home icon #}
16
16
< li class ="breadcrumb-item breadcrumb-home ">
Original file line number Diff line number Diff line change 36
36
37
37
{# A button hidden by default to help assistive devices quickly jump to main content #}
38
38
{# ref: https://www.youtube.com/watch?v=VUR0I5mqq7I #}
39
- < div id ="pst-skip-link " class ="skip-link "> < a href ="#main-content "> {{ _("Skip to main content") }}</ a > </ div >
39
+ < div id ="pst-skip-link " class ="skip-link d-print-none "> < a href ="#main-content "> {{ _("Skip to main content") }}</ a > </ div >
40
40
41
41
{%- endblock %}
42
42
72
72
{% include "sections/announcement.html" %}
73
73
{%- endif %}
74
74
{% block docs_navbar %}
75
- < header class ="bd-header navbar navbar-expand-lg bd-navbar ">
75
+ < header class ="bd-header navbar navbar-expand-lg bd-navbar d-print-none ">
76
76
{%- include "sections/header.html" %}
77
77
</ header >
78
78
{% endblock docs_navbar %}
94
94
< div class ="bd-content ">
95
95
< div class ="bd-article-container ">
96
96
{# Article header #}
97
- < div class ="bd-header-article "> {% include "sections/header-article.html" %}</ div >
97
+ < div class ="bd-header-article d-print-none "> {% include "sections/header-article.html" %}</ div >
98
98
{# Article content #}
99
99
{% block docs_body %}
100
100
{# This is empty and only shows up if text has been highlighted by the URL #}
111
111
{% endif %}
112
112
{# prev-next buttons #}
113
113
{% if theme_show_prev_next %}
114
- < footer class ="prev-next-footer ">
114
+ < footer class ="prev-next-footer d-print-none ">
115
115
{% include "components/prev-next.html" %}
116
116
</ footer >
117
117
{% endif %}
Original file line number Diff line number Diff line change 4
4
{# If we are remote, add a script to make an HTTP request for the value on page load #}
5
5
{%- if is_remote %}
6
6
< script >
7
- document . write ( `<aside class="bd-header-announcement" aria-label="{{ banner_label }}"></aside>` ) ;
7
+ document . write ( `<aside class="bd-header-announcement d-print-none " aria-label="{{ banner_label }}"></aside>` ) ;
8
8
fetch ( "{{ theme_announcement }}" )
9
9
. then ( res => { return res . text ( ) ; } )
10
10
. then ( data => {
You can’t perform that action at this time.
0 commit comments