/
main.css
66 lines (60 loc) · 1.33 KB
/
main.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
html, body {
margin: 0;
padding: 0;
font-family: sans-serif;
font-size: 40px;
font-weight: 100;
text-transform: uppercase;
background-color: #fafafa;
color: #444;
width: 100%;
height: 100%;
}
html .content, body .content {
text-align: center;
position: relative;
top: 50%;
-ms-transform: translateY(-50%);
-webkit-transform: translateY(-50%);
transform: translateY(-50%);
}
html .content span, body .content span {
width: 30px;
display: inline-block;
}
span {
margin: 0 0.2rem;
}
a {
text-decoration: none;
color: #888;
}
a:hover, a:focus {
text-decoration: none;
font-weight: 400;
color: #444;
-webkit-transition: font-weight 0.5s ease, color 0.5s ease;
transition: font-weight 0.5s ease, color 0.5s ease;
}
h3 {
background-size: 200% auto;
background-image: linear-gradient(to right, rgba(255,255,255,0) 50%, #16CAF4 50%);
background-position: -0% 0;
color: white;
font-size: 14px;
font-style: italic;
font-variant: small-caps;
margin-top: 10px;
padding: 5px 0;
opacity: 0;
text-align: center;
-webkit-transition: opacity 0.5s ease,
background-position 0.5s ease;
transition: opacity 0.5s ease,
background-position 0.5s ease;
}
.random:hover h3, .random:focus h3{
opacity: 1;
background-position: -99.99% 0;
transition-delay: 1.2s;
}