-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathlink.css
47 lines (39 loc) · 771 Bytes
/
link.css
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
/**
* Link styles. See
* Styling links - Learn web development | MDN
* <https://developer.mozilla.org/en-US/docs/Learn/CSS/Styling_text/Styling_links>
*/
:root {
--main-link-color: deeppink;
--main-link-bg-color: pink;
}
a {
outline: none;
text-decoration: none;
padding: 2px 1px 0;
}
a:link {
color: var(--main-link-color);
}
a:visited {
filter: brightness(2%);
}
a:focus {
background-color: var(--main-link-bg-color);
border-bottom: 1px solid;
}
a:hover {
background-color: var(--main-link-bg-color);
border-bottom: 1px solid;
}
a:active {
background: var(--main-link-color);
color: white;
}
header a:hover,
header a:focus,
footer a:hover,
footer a:focus {
background: initial;
border: initial;
}