From ec00a40aefca73596ab76e3ebe3a8e1129b43688 Mon Sep 17 00:00:00 2001
From: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Date: Tue, 27 Jan 2026 18:27:17 +0000
Subject: [PATCH] chore(deps): bump the production-dependencies group with 4 updates (#2289)
---
quartz/components/styles/popover.scss | 82 ++++++++++++++++++++++++++++++++---------
1 files changed, 64 insertions(+), 18 deletions(-)
diff --git a/quartz/components/styles/popover.scss b/quartz/components/styles/popover.scss
index 0d26d7d..70e1dd6 100644
--- a/quartz/components/styles/popover.scss
+++ b/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% {
@@ -14,30 +16,74 @@
.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);
+ position: fixed;
+ overflow: visible;
+ padding: 1rem;
+ left: 0;
+ top: 0;
+ will-change: transform;
- font-weight: initial;
+ & > .popover-inner {
+ position: relative;
+ width: 30rem;
+ max-height: 20rem;
+ padding: 0 1rem 1rem 1rem;
+ font-weight: initial;
+ font-style: 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;
+ overscroll-behavior: contain;
+ white-space: normal;
+ user-select: none;
+ cursor: default;
+ }
+
+ & > .popover-inner[data-content-type] {
+ &[data-content-type*="pdf"],
+ &[data-content-type*="image"] {
+ padding: 0;
+ max-height: 100%;
+ }
+
+ &[data-content-type*="image"] {
+ img {
+ margin: 0;
+ border-radius: 0;
+ display: block;
+ }
+ }
+
+ &[data-content-type*="pdf"] {
+ iframe {
+ width: 100%;
+ }
+ }
+ }
+
+ 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 ($mobile) {
display: none !important;
}
}
-a:hover .popover, .popover:hover {
- animation: dropin 0.5s ease;
- opacity: 1;
- visibility: visible;
+.active-popover,
+.popover:hover {
+ animation: dropin 0.3s ease;
+ animation-fill-mode: forwards;
+ animation-delay: 0.2s;
}
--
Gitblit v1.10.0