Skip to content

Commit 797a026

Browse files
committed
feat: nicer header link styling
1 parent 2bf6213 commit 797a026

1 file changed

Lines changed: 13 additions & 5 deletions

File tree

‎sass/_header.scss‎

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

3+
@use 'sass:color';
4+
35
@media (prefers-color-scheme: dark) {
46
a.header-link {
57
color: white;
68
}
79

810
a.header-link:hover {
9-
color: white;
10-
opacity: 0.5;
11+
color: color.adjust(
12+
$apollo-theme-colour,
13+
$saturation: -50%,
14+
$lightness: 20%,
15+
)
1116
}
1217
}
1318

@@ -17,8 +22,11 @@
1722
}
1823

1924
a.header-link:hover {
20-
color: black;
21-
opacity: 0.7;
25+
color: color.adjust(
26+
$apollo-theme-colour,
27+
$saturation: -30%,
28+
$lightness: -20%,
29+
)
2230
}
2331
}
2432

@@ -43,7 +51,7 @@ header {
4351
padding: 8px;
4452
margin-block: auto;
4553
font-weight: 600;
46-
transition: opacity 0.2s;
54+
transition: color 0.15s;
4755
}
4856
}
4957
}

0 commit comments

Comments
 (0)