keroosha.cybergulag.today/quartz/components/styles/popover.scss

61 lines
1.0 KiB
SCSS
Raw Permalink Normal View History

@use "../../styles/variables.scss" as *;
2023-06-18 02:05:46 +03:00
@keyframes dropin {
0% {
opacity: 0;
visibility: hidden;
}
2023-06-18 20:47:07 +03:00
1% {
2023-06-18 02:05:46 +03:00
opacity: 0;
}
100% {
opacity: 1;
visibility: visible;
}
}
.popover {
z-index: 999;
position: absolute;
2023-06-18 20:47:07 +03:00
overflow: visible;
padding: 1rem;
2023-06-18 02:05:46 +03:00
2023-06-18 20:47:07 +03:00
& > .popover-inner {
position: relative;
2023-06-18 20:47:07 +03:00
width: 30rem;
2023-07-10 05:32:24 +03:00
max-height: 20rem;
2023-07-26 07:10:37 +03:00
padding: 0 1rem 1rem 1rem;
2023-06-18 20:47:07 +03:00
font-weight: initial;
2023-07-02 23:08:29 +03:00
line-height: normal;
2023-06-20 06:37:45 +03:00
font-size: initial;
2023-07-01 10:03:01 +03:00
font-family: var(--bodyFont);
border: 1px solid var(--lightgray);
2023-06-18 20:47:07 +03:00
background-color: var(--light);
border-radius: 5px;
2023-07-23 03:27:41 +03:00
box-shadow: 6px 6px 36px 0 rgba(0, 0, 0, 0.25);
overflow: auto;
2023-08-23 23:10:23 +03:00
white-space: normal;
2023-06-18 20:47:07 +03:00
}
2023-06-18 02:05:46 +03:00
2023-06-20 06:37:45 +03:00
h1 {
font-size: 1.5rem;
}
2023-06-18 02:05:46 +03:00
visibility: hidden;
opacity: 0;
2023-08-24 01:16:04 +03:00
transition:
opacity 0.3s ease,
visibility 0.3s ease;
2023-06-18 02:05:46 +03:00
@media all and (max-width: $mobileBreakpoint) {
2023-06-18 02:05:46 +03:00
display: none !important;
}
}
2023-07-23 03:27:41 +03:00
a:hover .popover,
.popover:hover {
2023-06-18 20:47:07 +03:00
animation: dropin 0.3s ease;
animation-fill-mode: forwards;
animation-delay: 0.2s;
2023-06-18 02:05:46 +03:00
}