-
Notifications
You must be signed in to change notification settings - Fork 0
/
styles.css
140 lines (121 loc) · 2.35 KB
/
styles.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
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
:root {
--bg-color: #e2e9ef;
--heading-color: #123;
/* --highlight-color: #299bff; */
--highlight-color: rgba(17, 34, 51, 0.15);
--text-color: #123;
--link-color: #123;
--link-bg-color: rgba(17, 34, 51, 0.05);
}
@media (prefers-color-scheme: dark) {
/* For when this is supported */
:root {
--bg-color: black;
--heading-color: white;
--highlight-color: rgba(255, 255, 255, 0.2);
--text-color: rgba(255, 255, 255, 0.7);
--link-color: rgba(255, 255, 255, 0.8);
--link-bg-color: rgba(255, 255, 255, 0.1);
}
}
* {
margin: 0;
padding: 0;
}
body,
html {
height: 100%;
font-size: 24px;
letter-spacing: -0.013rem;
}
body {
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica,
Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
background: var(--bg-color);
color: var(--text-color);
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
backface-visibility: hidden;
transform: translateZ(0);
display: flex;
justify-content: center;
align-items: center;
}
main {
text-align: center;
}
footer {
padding-top: 2em;
font-size: 0.65rem;
opacity: 0.5;
}
a {
color: var(--link-color);
background: var(--link-bg-color);
border-radius: 100px;
padding: 1em 1.4em;
position: relative;
transition: all 100ms ease-in-out;
display: block;
text-align: left;
text-decoration: none;
}
a span {
margin-right: 0.5em;
flex: 0;
}
a:hover,
a:focus {
color: var(--link-color);
background: var(--highlight-color);
border-color: transparent;
transition: all 100ms linear;
outline: 0;
box-sizing: border-box;
}
a:active {
position: relative;
top: 2px;
transform: scale(0.95);
transition: all 50ms ease-in-out;
}
h1 {
font-size: 2rem;
letter-spacing: -0.016em;
color: var(--heading-color);
}
.avatar {
border-radius: 50%;
margin-bottom: 1em;
width: 2em;
height: 2em;
font-size: 2em;
}
.links {
font-size: 0.75rem;
letter-spacing: -0.008rem;
margin-top: 1.5em;
}
.links {
list-style-type: none;
display: flex;
flex-direction: column;
}
.links li {
margin-top: 1em;
}
.links li:first-child {
margin-top: 0;
}
@media screen and (max-width: 450px) {
footer {
padding-bottom: 1rem;
}
.links {
flex-direction: column;
}
.links li {
margin-left: 0;
margin-top: 0.5rem;
}
}