wiki/quartz/components/styles/popover.scss

54 lines
933 B
SCSS
Raw Normal View History

2023-06-17 23:05:46 +00:00
@keyframes dropin {
0% {
opacity: 0;
visibility: hidden;
}
2023-06-18 17:47:07 +00:00
1% {
2023-06-17 23:05:46 +00:00
opacity: 0;
}
100% {
opacity: 1;
visibility: visible;
}
}
.popover {
z-index: 999;
position: absolute;
2023-06-18 17:47:07 +00:00
overflow: visible;
padding: 1rem;
2023-06-17 23:05:46 +00:00
2023-06-18 17:47:07 +00:00
& > .popover-inner {
position: relative;
2023-06-18 17:47:07 +00:00
width: 30rem;
height: 20rem;
padding: 0 1rem 1rem 1rem;
font-weight: initial;
2023-06-20 03:37:45 +00:00
line-height: initial;
font-size: initial;
2023-06-18 17:47:07 +00:00
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;
}
2023-06-17 23:05:46 +00:00
2023-06-20 03:37:45 +00:00
h1 {
font-size: 1.5rem;
}
2023-06-17 23:05:46 +00:00
visibility: hidden;
opacity: 0;
2023-06-18 17:47:07 +00:00
transition: opacity 0.3s ease, visibility 0.3s ease;
2023-06-17 23:05:46 +00:00
@media all and (max-width: 600px) {
display: none !important;
}
}
a:hover .popover, .popover:hover {
2023-06-18 17:47:07 +00:00
animation: dropin 0.3s ease;
animation-fill-mode: forwards;
animation-delay: 0.2s;
2023-06-17 23:05:46 +00:00
}