-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.css
146 lines (134 loc) · 2.78 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
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
:root {
--plane-color: rgba(0, 150, 87, 0.96);
--ball-color: rgba(239, 232, 105, 0.96);
--arrow-color: rgba(228, 40, 43, 0.96);
--plane-grid-color: rgba(0, 0, 0, 0.2);
--plane-grid-width: 1px;
--plane-grid-horizontal: linear-gradient(
var(--plane-grid-color) var(--plane-grid-width),
transparent var(--plane-grid-width)
);
--plane-grid-vertical: linear-gradient(
90deg,
var(--plane-grid-color) var(--plane-grid-width),
transparent var(--plane-grid-width)
);
}
* {
box-sizing: border-box;
}
body {
margin: 0;
position: fixed;
width: 100vw;
height: 100vh;
overflow: hidden;
background-color: var(--plane-color);
}
div.button {
position: absolute;
inset: 0;
z-index: 3;
background-color: rgba(0, 0, 0, 0.32);
cursor: pointer;
}
div.button::before {
content: '';
position: absolute;
inset: 0;
margin: auto;
width: 64px;
height: 64px;
background-color: rgba(255, 255, 255, 0.48);
background-image: url(assets/images/capsule-corp.logo.svg);
background-position: center;
background-size: 56%;
background-repeat: no-repeat;
border-radius: 100%;
}
div.button::after {
content: '';
position: absolute;
inset: 0;
margin: auto;
width: 96px;
height: 96px;
background: rgba(255, 255, 255, 0.32);
border-radius: 100%;
animation: growing 1s infinite ease-in-out;
}
@keyframes growing {
50% {
width: 81px;
height: 81px;
}
}
div.map {
width: 100vw;
height: 100vh;
overflow: visible;
transition: transform 500ms ease;
}
div.plane {
position: absolute;
width: 2000px;
height: 2000px;
top: calc((1000px - 50vh) * -1);
left: calc((1000px - 50vw) * -1);
background-image: var(--plane-grid-horizontal), var(--plane-grid-vertical);
background-size: 16px 16px;
border-radius: 100%;
transform-origin: 1000px 1000px;
}
div.ball {
position: absolute;
width: 16px;
height: 16px;
border-radius: 100%;
background-color: var(--ball-color);
box-shadow: 0 0 12px 4px var(--ball-color);
opacity: 0;
transition: opacity 500ms;
cursor: pointer;
}
div.ball:hover::before {
content: attr(data-coords);
position: absolute;
bottom: 150%;
left: 50%;
margin-bottom: 5px;
margin-left: -80px;
padding: 6px 12px;
border-radius: 32px;
background-color: rgba(0, 0, 0, 0.24);
color: rgba(255, 255, 255, 0.64);
font-family: system-ui;
font-weight: 500;
text-align: center;
font-size: 12px;
line-height: 12px;
}
div.arrow {
position: absolute;
inset: 0;
margin: auto;
width: 20px;
height: 24px;
opacity: 0;
clip-path: polygon(50% 0%, 100% 100%, 50% 81%, 0 100%);
background-color: var(--arrow-color);
cursor: pointer;
transition: transform 500ms ease;
}
div.credits {
position: fixed;
inset: 20px;
top: unset;
margin: 0 auto;
padding: 8px 16px 12px 16px;
font-family: system-ui;
color: white;
background: rgba(0, 0, 0, 0.3);
border-radius: 8px;
text-align: center;
}