-
Notifications
You must be signed in to change notification settings - Fork 22
/
styles.css
111 lines (99 loc) · 1.82 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
/* Red borders on visible elements - handy for debugging */
/** { border: 1px solid red; }*/
:root {
--bg-color: #223030;
--text-color: #dddddd;
--bg-image: url("assets/bg.jpg");
--SHORTCUT_TIMEOUT: 1.5s;
}
body {
padding: 0;
margin: 0;
background: var(--bg-image);
background-color: var(--bg-color);
background-size: cover;
color: var(--text-color);
font-family: 'Raleway', sans-serif;
font-size: 22px;
user-select: none;
animation: fadein 1s;
}
#logo {
padding-top: 25vh;
text-align: center;
}
#logo h1 {
font-weight: 200;
font-size: 4rem;
margin-bottom: 0;
}
#logo h2 {
font-weight: 200;
font-size: 2rem;
margin-top: 0;
opacity: 0.5;
}
#content {
text-align: center;
}
#credits {
/* Uncomment to hide credits from your local copy */
/*display: none;*/
position: absolute;
font-size: 1rem;
opacity: 0.5;
bottom: 1rem;
left: 1rem;
}
.group {
display: inline-block;
vertical-align: top;
text-align: left;
width: 20%;
padding: 1% 3%;
}
.group h1 {
font-weight: 400;
font-size: 2rem;
margin-bottom: 0;
border-bottom: 2px solid var(--text-color);
}
.group p {
margin-bottom: 0;
padding: 0.3rem 0;
}
.group p + p {
margin: 0;
}
.shortcut {
float: right;
opacity: 0;
animation: pulse var(--SHORTCUT_TIMEOUT);
}
a, a:hover {
transition: all 0.4s ease;
}
a {
padding: 0.3rem 0;
color: var(--text-color);
text-decoration: none;
opacity: 0.5;
padding-left: 0;
}
.group a:hover {
opacity: 1;
padding-left: 0.5rem;
}
#credits a:hover {
opacity: 1;
}
@keyframes fadein {
from { opacity: 0; }
to { opacity: 1; }
}
@keyframes pulse {
0% { opacity: 0; }
20% { opacity: 0.3; }
80% { opacity: 0.3; }
100% { opacity: 0; }
}