-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.css
120 lines (96 loc) · 1.91 KB
/
index.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
:root {
--border-padding: 50px;
}
body {
margin: 0;
font-family: 'Playfair Display', serif;
}
* {
box-sizing: border-box;
}
figure {
opacity: 0;
transition: opacity 0.8s;
}
figure > video {
position: fixed;
top: var(--border-padding);
left: var(--border-padding);
height: calc(100% - 2 * var(--border-padding));
width: calc(100% - 2 * var(--border-padding));
object-fit: cover;
opacity: 0.7;
}
figure > figcaption {
position: fixed;
right: calc(2 * var(--border-padding));
bottom: var(--border-padding);
transform: translateY(50%);
display: flex;
align-items: flex-end;
margin: 0;
margin-bottom: 0.1em;
font-size: 40px;
line-height: 1;
white-space: nowrap;
}
figure > figcaption > em {
display: inline-block;
margin: 0 0.5em 0.2em;
font-size: 0.6em;
font-style: normal;
}
figure a {
position: relative;
font-weight: inherit;
cursor: pointer;
color: inherit;
text-decoration: inherit;
border-bottom: 1px solid #000;
}
figure > p {
position: fixed;
right: calc(var(--border-padding) + 20px);
bottom: calc(100% - var(--border-padding));
transform: translateY(44%);
margin: 0;
font-size: 18px;
font-weight: 500;
}
#loader {
position: fixed;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
font-size: 40px;
}
#loader > span {
opacity: 0;
animation: load 2s infinite;
}
#loader > span:nth-child(1) {
animation-delay: .0s;
}
#loader > span:nth-child(2) {
animation-delay: .2s;
}
#loader > span:nth-child(3) {
animation-delay: .4s;
}
#defaultError, #keyError {
display: none;
position: fixed;
top: 50%;
left: 50%;
transform: translate(-50%,-50%);
margin: 0;
font-size: 20px;
}
@keyframes load {
10%, 50% {
opacity: 1;
}
0%, 100% {
opacity: 0;
}
}