Jacky Zhao
2023-06-18 c4cf0dcb022ff826433b63b8ff68830bb8503895
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
@keyframes dropin {
  0% {
    opacity: 0;
    visibility: hidden;
  }
  1% {
    opacity: 0;
  }
  100% {
    opacity: 1;
    visibility: visible;
  }
}
 
.popover {
  z-index: 999;
  position: absolute;
  overflow: visible;
  padding: 1rem;
 
  & > .popover-inner {
    width: 30rem;
    height: 20rem;
    padding: 0 1rem 1rem 1rem;
    font-weight: initial;
    border: 1px solid var(--gray);
    background-color: var(--light);
    border-radius: 5px;
    box-shadow: 6px 6px 36px 0 rgba(0,0,0,0.25);
    overflow: scroll;
  }
 
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.3s ease, visibility 0.3s ease;
 
  @media all and (max-width: 600px) {
    display: none !important;
  }
}
 
a:hover .popover, .popover:hover {
  animation: dropin 0.3s ease;
  animation-fill-mode: forwards;
  animation-delay: 0.2s;
}