Skip to content

Commit b9377c7

Browse files
committed
feat: add hover effects to header
1 parent 44e87e5 commit b9377c7

1 file changed

Lines changed: 24 additions & 0 deletions

File tree

‎sass/_header.scss‎

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,28 @@
11
@use 'variables' as *;
22

3+
@media (prefers-color-scheme: dark) {
4+
a.header-link {
5+
color: white;
6+
}
7+
8+
a.header-link:hover {
9+
color: white;
10+
opacity: 0.5;
11+
}
12+
}
13+
14+
@media (prefers-color-scheme: light) {
15+
a.header-link {
16+
color: black;
17+
}
18+
19+
a.header-link:hover {
20+
color: black;
21+
opacity: 0.7;
22+
}
23+
}
24+
25+
326
header {
427
nav, div.links {
528
justify-content: space-between;
@@ -19,6 +42,7 @@ header {
1942
padding: 8px;
2043
margin-block: auto;
2144
font-weight: 600;
45+
transition: opacity 0.2s;
2246
}
2347
}
2448
}

0 commit comments

Comments
 (0)