Jacky Zhao
2023-07-23 7db2eda76cf51fd631d385c12a7b411339406067
quartz/components/styles/popover.scss
@@ -1,9 +1,11 @@
@use "../../styles/variables.scss" as *;
@keyframes dropin {
  0% {
    opacity: 0;
    visibility: hidden;
  }
  50% {
  1% {
    opacity: 0;
  }
  100% {
@@ -15,29 +17,43 @@
.popover {
  z-index: 999;
  position: absolute;
  overflow: scroll;
  width: 30rem;
  height: 20rem;
  padding: 0 1rem;
  margin-top: -1rem;
  border: 1px solid var(--lightgray);
  background-color: var(--light);
  border-radius: 5px;
  box-shadow: 6px 6px 36px 0 rgba(0,0,0,0.25);
  overflow: visible;
  padding: 1rem;
  font-weight: initial;
  & > .popover-inner {
    position: relative;
    width: 30rem;
    max-height: 20rem;
    padding: 0 1rem 2rem 1rem;
    font-weight: initial;
    line-height: normal;
    font-size: initial;
    font-family: var(--bodyFont);
    border: 1px solid var(--lightgray);
    background-color: var(--light);
    border-radius: 5px;
    box-shadow: 6px 6px 36px 0 rgba(0, 0, 0, 0.25);
    overflow: auto;
  }
  h1 {
    font-size: 1.5rem;
  }
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.2s ease, visibility 0.2s ease;
  transition:
    opacity 0.3s ease,
    visibility 0.3s ease;
  @media all and (max-width: 600px) {
  @media all and (max-width: $mobileBreakpoint) {
    display: none !important;
  }
}
a:hover .popover, .popover:hover {
  animation: dropin 0.5s ease;
  opacity: 1;
  visibility: visible;
a:hover .popover,
.popover:hover {
  animation: dropin 0.3s ease;
  animation-fill-mode: forwards;
  animation-delay: 0.2s;
}