-
Notifications
You must be signed in to change notification settings - Fork 0
/
style.css
272 lines (245 loc) · 5.3 KB
/
style.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
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
/*
<Instagram Logo: A code generated instagram logo>
Copyright (C) <2022> <Cromega>
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as published
by the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Affero General Public License for more details.
You should have received a copy of the GNU Affero General Public License
along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
:root {
--bg_radial: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%,#d6249f 60%,#285AEB 90%);
}
body {
min-width: 100vh;
min-height: 100vh;
display: grid;
justify-items: center;
align-items: center;
}
button {
border: none;
background-color: rgba(255, 255, 255, 0);
width: 24em;
height: 24em;
border-radius: 7em;
display: grid;
justify-content: center;
align-content: center;
}
button:focus {
width: 21em;
height: 21em;
}
button:focus #box {
animation: to_border_box 500ms ease forwards;
}
button:focus #lens {
animation: to_border_lens 500ms ease forwards;
}
button:focus #mask {
animation: to_border_mask 500ms ease forwards;
}
button:focus #flash {
animation: to_border_flash 500ms ease forwards;
}
#bg {
padding: 0 0 0 0;
background-image: var(--bg_radial);
width: 25em;
height: 25em;
border-radius: 5em;
display: grid;
justify-content: center;
align-content: center;
animation: to_in_glow 500ms ease-out forwards;
}
#bg:hover {
animation: to_out_glow 250ms ease-out forwards;
}
#box {
background-color: transparent;
border: solid;
border-color: white;
border-width: 1.2em;
width: 17em;
height: 17em;
border-radius: 4em;
display: grid;
justify-content: center;
align-content: center;
animation: to_bg_box 500ms ease forwards;
}
#lens {
border: solid;
border-color: white;
border-radius: 50%;
border-width: 1em;
width: 8em;
height: 8em;
display: grid;
justify-self: center;
align-self: center;
justify-content: center;
align-content: center;
position: relative;
bottom: 1.4em;
animation: to_bg_lens 500ms ease forwards;
}
#flash {
border: solid;
border-color: white;
border-radius: 50%;
border-width: .5em;
width: 2em;
height: 2em;
position: relative;
bottom: 1em;
left: 2.2em;
display: flex;
flex-direction: row;
justify-self: end;
animation: to_bg_flash 500ms ease forwards;
}
#mask {
background-color: transparent;
width: 0;
height: 0;
border-radius: 50%;
animation: to_bg_mask 500ms ease forwards;
}
@keyframes to_out_glow {
from {
box-shadow: 0 0 0 0 black;
}
to {
box-shadow: 0 0 0 1.5em black;
}
}
@keyframes to_in_glow {
from {
box-shadow: 0 0 0 1.5em black;
}
to {
box-shadow: 0 0 0 0 black;
}
}
@keyframes to_border_box {
from {
background-color: transparent;
border-color: white;
width: 17em;
height: 17em;
}
to {
background-color: white;
border-color: transparent;
width: 17.5em;
height: 17.5em;
}
}
@keyframes to_border_lens {
from {
width: 8em;
height: 8em;
}
to {
background-image: var(--bg_radial);
width: 13.3em;
height: 13.3em;
}
}
@keyframes to_border_flash {
from {
background-color: none;
width: 2em;
height: 2em;
bottom: 1em;
top: 0;
left: 2.2em;
}
to {
background-color: #693acd;
width: 3em;
height: 3em;
bottom: 0;
top: .5em;
left: .8em;
}
}
@keyframes to_border_mask {
from {
background-color: transparent;
width: 0;
height: 0;
border-radius: 50%;
}
to {
background-color: white;
width: 8.6em;
height: 8.6em;
border-radius: 50%;
}
}
@keyframes to_bg_box {
from {
background-color: white;
border-color: transparent;
width: 17.5em;
height: 17.5em;
}
to {
background-color: transparent;
border-color: white;
width: 17em;
height: 17em;
}
}
@keyframes to_bg_lens {
from {
background-image: var(--bg_radial);
width: 13.3em;
height: 13.3em;
}
to {
width: 8em;
height: 8em;
}
}
@keyframes to_bg_flash {
from {
background-color: #693acd;
width: 3em;
height: 3em;
bottom: 0;
top: .5em;
left: .8em;
}
to {
background-color: none;
width: 2em;
height: 2em;
bottom: 1em;
top: 0;
left: 2.2em;
}
}
@keyframes to_bg_mask {
from {
background-color: white;
width: 8.6em;
height: 8.6em;
border-radius: 50%;
}
to {
background-color: transparent;
width: 0;
height: 0;
border-radius: 50%;
}
}