Skip to content

Commit 3ed6c3a

Browse files
author
Niutoseq
committed
fixing breadcrumbs links and some scrolling to anchors
1 parent aa20b5f commit 3ed6c3a

File tree

4 files changed

+27
-6
lines changed

4 files changed

+27
-6
lines changed

docs/_static/css/general.css

Lines changed: 8 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/_static/css/main.css

Lines changed: 8 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/_static/js/app.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,4 @@ window.addEventListener('load', function() {
33
link.target = '_blank';
44
});
55
});
6+

docs/_static/scss/general.scss

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ a.ahref-orange {
3838
}
3939

4040
h1 {
41-
font-size: 48px;
41+
font-size: 40px;
4242
line-height: inherit;
4343
margin: 40px 0;
4444
}
@@ -48,6 +48,11 @@ h2 {
4848
line-height: 1.2em;
4949
margin-top: 40px;
5050
}
51+
52+
section {
53+
scroll-margin-top: 120px;
54+
}
55+
5156
.wy-grid-for-nav {
5257
display: grid;
5358
grid-template-columns: 300px 900px 300px;
@@ -68,6 +73,7 @@ h2 {
6873
position: sticky;
6974
top: 0;
7075
background: inherit;
76+
z-index: 10;
7177
}
7278

7379
.wy-nav-content {
@@ -122,6 +128,8 @@ h2 {
122128

123129
.wy-menu-vertical li.current>a {
124130
color: var(--primary-orange);
131+
scroll-margin-top: 10px;
132+
125133
}
126134

127135
.wy-menu-vertical li.toctree-l2 a,
@@ -477,7 +485,7 @@ li.wy-breadcrumbs-aside a {
477485
position: fixed;
478486
top: 60px;
479487
border-bottom: 1px solid var(--grey-border);
480-
z-index:2;
488+
z-index:20;
481489
background-color: white;
482490
}
483491

0 commit comments

Comments
 (0)