-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathtop-50-border.css
51 lines (45 loc) · 1.04 KB
/
top-50-border.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
#search-result-top50 {
margin-top: 2rem;
margin-bottom: 2rem;
background-color: rgb(10, 29, 54);
width: 350px;
border-radius: 1rem;
position: relative;
}
@property --angle {
syntax: "<angle>";
initial-value: 0deg;
inherits: false;
}
#search-result-top50::after, #search-result-top50::before {
content: '';
position: absolute;
height: 100%;
width: 100%;
background-image: conic-gradient(from var(--angle),rgb(223, 223, 110), rgb(231, 114, 114), rgb(134, 228, 134), rgb(131, 131, 228), rgb(218, 117, 218), rgb(223, 223, 110));
top: 50%;
left: 50%;
translate: -50% -50%;
z-index: -1;
padding: 0.5rem;
border-radius: 1rem;
animation: 3s spin linear infinite;
}
#search-result-top50::before {
filter: blur(1.5rem);
opacity: 0.5;
}
@keyframes spin {
from {
--angle: 0deg;
}
to {
--angle: 360deg;
}
}
#search-result-top50 div:nth-child(odd) {
background-color: rgb(13, 36, 66);
}
#search-result-top50 div {
font-size: 1.1rem;
}