-
Notifications
You must be signed in to change notification settings - Fork 24
/
index.css
95 lines (84 loc) · 2.35 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
:root {
--radis-glow: 200px;
--opacity-glow: 0.4;
--radis-flare: 50px;
--opacity-flare: 0.8;
/* --color-permanent: rgba(66, 186, 255, 1); */
--color-permanent: rgba(66, 186, 255, 1);
/* --color-temporary: rgba(254, 211, 0, 1); */
--color-temporary: rgba(254, 211, 0, 1);;
}
.leaflet-marker-pane .light {
width: 200px!important;
height: 200px!important;
margin-top: -100px!important;
margin-left: -100px!important;
background: transparent!important;
border: transparent!important;
}
.leaflet-marker-pane .light .glow {
width: 0px;
height: 0px;
border-radius: 50%;
opacity: 0;
background: -webkit-radial-gradient(rgba(254, 211, 0, 1), rgba(255, 223, 67, 0) 70%);
position: absolute;
display: block;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
transition: all 1000ms cubic-bezier(0.68, -0.55, 0.265, 1.55);
}
.leaflet-marker-pane .light .flare {
width: 0px;
height: 0px;
border-radius: 50%;
opacity: 0;
background: rgba(255, 223, 67, 0);
position: absolute;
display: block;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
transition: all 1000ms cubic-bezier(0.68, -0.55, 0.265, 1.55);
}
@keyframes highlight-glow {
0% {
width: 0px;
height: 0px;
opacity: 0;
}
100% {
width: var(--radis-glow);
height: var(--radis-glow);
opacity: var(--opacity-glow);
}
}
@keyframes highlight-flare {
0% {
width: 0px;
height: 0px;
opacity: 0;
}
100% {
width: var(--radis-flare);
height: var(--radis-flare);
opacity: var(--opacity-flare);
}
}
.permanent .glow {
background: -webkit-radial-gradient(var(--color-permanent), rgba(255, 223, 67, 0) 70%)!important;
animation: highlight-glow 2s infinite cubic-bezier(0.68, -0.55, 0.265, 1.55);
}
.permanent .flare {
background: var(--color-permanent) !important;
animation: highlight-flare 2s infinite cubic-bezier(0.68, -0.55, 0.265, 1.55);
}
img:hover+.light.temporary .glow {
background: -webkit-radial-gradient(var(--color-temporary), rgba(255, 223, 67, 0) 70%);
transition: all 800ms cubic-bezier(0.68, -0.55, 0.265, 1.55);
}
img:hover+.light.temporary .flare {
background: var(--color-temporary);
transition: all 800ms cubic-bezier(0.68, -0.55, 0.265, 1.55);
}