Skip to content

Commit 47f82bb

Browse files
committed
feat/sprungmarken: interaction-handling
1 parent 725699b commit 47f82bb

File tree

2 files changed

+2
-16
lines changed

2 files changed

+2
-16
lines changed

assets/sass/anchorlink.scss

+1-15
Original file line numberDiff line numberDiff line change
@@ -1,35 +1,21 @@
11
.a-anchorlink {
22
display: flex;
3-
4-
&:hover {
5-
> a {
6-
opacity: 1;
7-
pointer-events: auto;
8-
transition: all .2s;
9-
}
10-
}
113
}
124

135
.a-anchorlink__link {
146
display: inline-flex;
15-
opacity: 0;
16-
transition: all .2s;
177
width: 3.2rem;
188
height: 3.2rem;
199
align-items: center;
2010
justify-content: center;
2111
margin-left: .8rem;
2212
border-radius: var(--border-radius-s);
23-
pointer-events: none;
13+
opacity: .8;
2414

2515
&:hover,
2616
&:focus {
2717
background-color: var(--bg-neutral);
28-
}
29-
30-
&:focus {
3118
opacity: 1;
32-
pointer-events: auto;
3319
}
3420
}
3521

assets/sass/styles.scss

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ header {
1616

1717
a:not(.m-teaser) {
1818
color: var(--link-default);
19-
transition: fill 0.3s ease;
19+
transition: all 0.3s ease;
2020
text-underline-offset: .2rem;
2121

2222
&:hover,

0 commit comments

Comments
 (0)