forked from 0-Tikaro/minimum-viable-startpage
-
Notifications
You must be signed in to change notification settings - Fork 2
/
styles.css
141 lines (125 loc) · 2.32 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
141
/* Red borders on visible elements - handy for debugging */
/** { border: 1px solid red; }*/
:root {
--bg-color: #223030;
--text-color: black;
--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: 10vh;
text-align: center;
color: white;
}
#logo h1 {
font-weight: 200;
font-size: 4rem;
margin-bottom: 0;
}
#logo h2 {
font-weight: 200;
font-size: 2rem;
margin-top: 0;
opacity: 0.95;
}
#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: .5% 1.5%;
margin: .25%;
background-color: rgba(255, 255, 255, 0.75);
border-radius: 0.5em;
}
.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;
}
.subgroup {
display: inline-block;
vertical-align: top;
text-align: left;
width: 95%;
margin: .25%;
padding: .5% 1.5%;
}
.subgroup p {
margin-top: 0;
margin-bottom: 0;
padding: 0.3rem 0;
}
.subgroup p + p {
margin: 0;
}
.subgroup h2 {
font-weight: 400;
font-size: 1.5rem;
margin-bottom: 0;
border-bottom: 1px solid var(--text-color);
}
.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; }
}