Skip to content

Commit cc9b0dc

Browse files
Use pst page-toc (#313)
* Use pst page-toc See src/pydata_sphinx_theme/theme/pydata_sphinx_theme/components/page-toc.html * Feedback from @stefanv * Cleanup
1 parent 866df8c commit cc9b0dc

5 files changed

Lines changed: 2 additions & 22 deletions

File tree

assets/theme-css/dark-mode.css

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -41,12 +41,4 @@
4141
background: var(--colorBlockBackground);
4242
color: var(--colorText);
4343
}
44-
45-
/* The .shortcuts-title "list-bulleted.svg" file is black on
46-
transparent background, so we use a CSS filter to invert its color
47-
in dark mode. */
48-
.shortcuts-title img {
49-
filter: invert(1);
50-
opacity: 0.75;
51-
}
5244
}

assets/theme-css/shortcuts.css

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -7,17 +7,6 @@
77
margin: 75px 15px;
88
}
99

10-
.shortcuts-title {
11-
font-size: 1.1rem;
12-
opacity: 0.75;
13-
}
14-
15-
.shortcuts-title img {
16-
padding-right: 0.75rem;
17-
opacity: 0.5;
18-
vertical-align: middle;
19-
}
20-
2110
#shortcuts {
2211
margin-top: 10px;
2312
}

layouts/partials/section/section.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<section class="content-padding flex-row">
22
<div class="shortcuts-container">
3-
<div class="shortcuts-title"><img src="/images/icons/list-bulleted.svg"/>On this page</div>
3+
<div><i class="fa-solid fa-list"></i> On this page</div>
44
<div id="shortcuts"></div>
55
</div>
66
<div class="content-container">

layouts/partials/single/content.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<section class="content-padding flex-row">
22
<div class="shortcuts-container">
3-
<div class="shortcuts-title"><img src="/images/icons/list-bulleted.svg"/>On this page</div>
3+
<div><i class="fa-solid fa-list"></i> On this page</div>
44
<div id="shortcuts"></div>
55
</div>
66
<div class="content-container">

static/images/icons/list-bulleted.svg

Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
 (0)