Skip to content

Commit 513454c

Browse files
committed
fix jump link z index scrolling bug
1 parent 6c6fe47 commit 513454c

1 file changed

Lines changed: 63 additions & 58 deletions

File tree

Lines changed: 63 additions & 58 deletions
Original file line numberDiff line numberDiff line change
@@ -1,84 +1,89 @@
1-
a, ul, li {
2-
font-family: "ibm-plex-sans", "Helvetica Neue", Arial, sans-serif;
3-
color: black;
4-
font-size: var(--plex-18);
1+
a,
2+
ul,
3+
li {
4+
font-family: "ibm-plex-sans", "Helvetica Neue", Arial, sans-serif;
5+
color: black;
6+
font-size: var(--plex-18);
57
}
68

7-
a, ul, li {
8-
margin: 0;
9-
padding: 0;
9+
a,
10+
ul,
11+
li {
12+
margin: 0;
13+
padding: 0;
1014
}
1115

1216
.jump-links {
13-
padding: 1em 5em 0em 5em;
14-
position: sticky;
15-
top: 3em;
16-
border-bottom: solid lightgray;
17-
background-color: white;
18-
color: black;
17+
padding: 1em 5em 0em 5em;
18+
position: sticky;
19+
top: 3em;
20+
border-bottom: solid lightgray;
21+
background-color: white;
22+
color: black;
23+
z-index: 10;
1924
}
2025

2126
.jump-links ul {
22-
display: flex;
23-
flex-flow: row wrap;
24-
column-gap: 3em;
25-
row-gap: 0;
26-
padding: 0;
27-
line-height: 3em;
27+
display: flex;
28+
flex-flow: row wrap;
29+
column-gap: 3em;
30+
row-gap: 0;
31+
padding: 0;
32+
line-height: 3em;
2833
}
2934

3035
.jump-links li {
31-
font-weight: 500;
32-
font-size: 0.9em;
33-
padding: 0;
34-
border-bottom: white solid 4px;
35-
display: flex !important;
36-
flex-flow: row nowrap;
37-
align-items: center;
38-
gap: 0.5em;
36+
font-weight: 500;
37+
font-size: 0.9em;
38+
padding: 0;
39+
border-bottom: white solid 4px;
40+
display: flex !important;
41+
flex-flow: row nowrap;
42+
align-items: center;
43+
gap: 0.5em;
3944
}
4045

4146
.jump-links li img {
42-
padding: 0;
43-
margin: 0;
44-
max-height: 2em;
45-
display: none;
47+
padding: 0;
48+
margin: 0;
49+
max-height: 2em;
50+
display: none;
4651
}
4752

4853
.jump-links li:hover {
49-
border-color: #0f62fe;
54+
border-color: #0f62fe;
5055
}
5156

5257
.jump-links li a {
53-
text-decoration: none;
58+
text-decoration: none;
5459
}
5560

56-
@media screen and (max-width: 48em) {
57-
.jump-links {
58-
padding: 2em;
59-
position: relative;
60-
top: 0;
61-
}
62-
63-
.jump-links ul {
64-
display: grid;
65-
grid-template-columns: repeat(2, 1fr);
66-
gap: 1em;
67-
}
61+
@media screen and (max-width: 48em) {
62+
.jump-links {
63+
padding: 2em;
64+
position: relative;
65+
top: 0;
66+
}
67+
68+
.jump-links ul {
69+
display: grid;
70+
grid-template-columns: repeat(2, 1fr);
71+
gap: 1em;
72+
}
6873

69-
.jump-links li img {
70-
display: block;
71-
}
74+
.jump-links li img {
75+
display: block;
76+
}
7277

73-
.jump-links li:hover {
74-
border-color: white;
75-
}
78+
.jump-links li:hover {
79+
border-color: white;
80+
}
7681
}
7782

78-
@media screen and (max-width: 27em) {
79-
.jump-links ul {
80-
display: flex;
81-
flex-flow: column wrap;
82-
gap: 0.2em;
83-
}
84-
}
83+
@media screen and (max-width: 27em) {
84+
.jump-links ul {
85+
display: flex;
86+
flex-flow: column wrap;
87+
gap: 0.2em;
88+
}
89+
}

0 commit comments

Comments
 (0)