-
Notifications
You must be signed in to change notification settings - Fork 2
/
index.css
96 lines (78 loc) · 1.59 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
body {
display: grid;
place-items: center;
}
main {
display: flex;
flex-direction: column;
align-items: center;
margin: 1rem;
gap: 3rem;
max-width: 60ch;
}
main > img {
max-width: 10rem;
}
h1, h2, h3, p {
text-align: center;
margin: 0;
}
#get-location {
--side-arrow-scale: 3;
--side-arrow-size: calc(var(--side-arrow-scale) * 1rem);
display: flex;
width: 9rem;
background-color: transparent;
aspect-ratio: 1/1;
border-radius: 50%;
box-shadow: 20px 20px 60px #bebebe, -20px -20px 60px #ffffff;
border: none;
position: relative;
cursor: pointer;
gap: 1rem;
}
#get-location img {
width: 100%;
margin: auto;
}
#get-location::before, #get-location::after {
position: absolute;
top: calc((6 - var(--side-arrow-scale)) / 3 * 25%);
font-size: var(--side-arrow-size);
animation-duration: 1s;
animation-timing-function: ease;
animation-direction: alternate;
animation-iteration-count: infinite;
filter: blur(1px);
}
#get-location::before {
content: ">";
left: calc(-1 * var(--side-arrow-size));
animation-name: bounce-left;
}
#get-location::after {
content: "<";
right: calc(-1 * var(--side-arrow-size));;
animation-name: bounce-right;
}
@keyframes bounce-left {
from {
transform: translateX(0);
}
to {
transform: translateX(calc(-1 * var(--side-arrow-size)));
}
}
@keyframes bounce-right {
from {
transform: translateX(0);
}
to {
transform: translateX(var(--side-arrow-size));
}
}
@media (prefers-color-scheme: light) {
#get-location {
box-shadow: 20px 20px 60px #5d5d5d, -20px -20px 60px #505050;
}
}