Skip to content

Commit 1dafabf

Browse files
committed
Merge remote-tracking branch 'upstream/main' into sklearn-in-gallery
2 parents f998e62 + 7ebc87e commit 1dafabf

File tree

5 files changed

+14
-7
lines changed

5 files changed

+14
-7
lines changed

src/pydata_sphinx_theme/assets/styles/components/_toc-inpage.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ nav.page-toc {
3232

3333
a.nav-link {
3434
display: block;
35-
padding: 0.125rem 0;
35+
padding: $toc-item-padding-y 0;
3636

3737
// Padding w/ negative margin so the top TOC item highlight overlaps w/ the TOC border
3838
padding-left: 1rem;

src/pydata_sphinx_theme/assets/styles/sections/_sidebar-primary.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -237,7 +237,7 @@ nav.bd-links {
237237

238238
li > a {
239239
display: block;
240-
padding: 0.25rem 0.65rem;
240+
padding: $toc-item-padding-y 0.65rem;
241241

242242
@include link-sidebar;
243243

src/pydata_sphinx_theme/assets/styles/variables/_fonts.scss

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,14 @@ html {
66
// base font size - applied at body/html level
77
--pst-font-size-base: 1rem;
88

9-
// heading font sizes based on bootstrap sizing
10-
--pst-font-size-h1: 2.5rem;
11-
--pst-font-size-h2: 2rem;
9+
// heading font sizes based on a medium contrast type scale
10+
// - see: https://github.com/Quansight-Labs/czi-scientific-python-mgmt/issues/97#issuecomment-2310531483
11+
--pst-font-size-h1: 2.625rem;
12+
--pst-font-size-h2: 2.125rem;
1213
--pst-font-size-h3: 1.75rem;
1314
--pst-font-size-h4: 1.5rem;
1415
--pst-font-size-h5: 1.25rem;
15-
--pst-font-size-h6: 1.1rem;
16+
--pst-font-size-h6: 1rem;
1617

1718
// smaller than heading font sizes
1819
--pst-font-size-milli: 0.9rem;
@@ -28,7 +29,7 @@ html {
2829

2930
// Font weights
3031
--pst-font-weight-caption: 300;
31-
--pst-font-weight-heading: 400;
32+
--pst-font-weight-heading: 600;
3233

3334
// Font family
3435
// These are adapted from https://systemfontstack.com/ */

src/pydata_sphinx_theme/assets/styles/variables/_layout.scss

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,3 +42,7 @@ $navbar-link-padding-y: 0.25rem;
4242
// contains the bounding box of the interactive element).
4343
// - https://github.com/Quansight-Labs/czi-scientific-python-mgmt/issues/81#issuecomment-2251325783
4444
$nav-icon-column-gap: 1.12rem;
45+
46+
// Determines vertical space between entries in both the section (left/primary
47+
// sidebar) and page (right/secondary sidebar) table of contents
48+
$toc-item-padding-y: 0.25rem;
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,4 @@
11
WARNING: Cell printed to stderr:
22
Matplotlib is building the font cache; this may take a moment.
3+
WARNING: failed to reach any of the inventories with the following issues:
4+
intersphinx inventory

0 commit comments

Comments
 (0)