-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyle.css
111 lines (100 loc) · 2.15 KB
/
style.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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
:root {
--color-default: #111;
--color-links: #555;
--color-github: #000;
--color-linkedin: #0072b1;
--color-resume: #a00;
--color-stackoverflow: #f48024;
}
body {
margin: 0;
font-family: 'Open Sans';
font-weight: 400;
color: var(--color-default);
}
main, nav, ul, li, a {
display: flex;
flex-direction: column;
justify-content: center;
}
main {
min-height: 100vh;
align-items: stretch;
font-size: 6vw;
text-align: center;
}
@media (min-width: 25rem) {
main {
font-size: 1.5rem;
}
}
h1 {
font-size: 1.75em;
font-weight: 300;
margin: 0 0 1em;
}
nav {
align-items: center;
}
ul {
align-items: stretch;
list-style-type: none;
margin: 0;
padding: 0;
}
li {
align-items: center;
margin: 0.5em 0 0;
}
li:first-child {
margin-top: 0;
}
a {
align-items: center;
position: relative;
color: var(--color-links);
text-decoration: none;
padding: 0.5em 0.25em;
transition: color 0.3s ease-in-out;
}
a:after {
content: "";
position: absolute;
bottom: 0;
left: 0;
width: 0;
height: 0.15em;
opacity: 0;
background-color: currentColor;
transition: opacity 0.3s ease-in-out, width 0.3s ease-in-out;
}
a:focus {
outline: none;
}
a:focus:not(:active):after,
a:hover:after {
width: 100%;
opacity: 1;
}
a[href^="files/resume"]:focus:not(:active),
a[href^="files/resume"]:hover {
color: var(--color-resume);
}
a[href^="https://linkedin.com"]:focus:not(:active),
a[href^="https://linkedin.com"]:hover,
a[href^="https://www.linkedin.com"]:focus:not(:active),
a[href^="https://www.linkedin.com"]:hover {
color: var(--color-linkedin);
}
a[href^="https://stackoverflow.com"]:focus:not(:active),
a[href^="https://stackoverflow.com"]:hover,
a[href^="https://www.stackoverflow.com"]:focus:not(:active),
a[href^="https://www.stackoverflow.com"]:hover {
color: var(--color-stackoverflow);
}
a[href^="https://github.com"]:focus:not(:active),
a[href^="https://github.com"]:hover,
a[href^="https://www.github.com"]:focus:not(:active),
a[href^="https://www.github.com"]:hover {
color: var(--color-github);
}