From c538c151c7462ad0395ff2c15c5e11e89e362aa8 Mon Sep 17 00:00:00 2001
From: Striven <sg.striven@cutecat.club>
Date: Sat, 04 Apr 2026 19:47:16 +0000
Subject: [PATCH] Initial commit
---
quartz/components/styles/popover.scss | 38 ++++++++++++++++++++++++++++++++++----
1 files changed, 34 insertions(+), 4 deletions(-)
diff --git a/quartz/components/styles/popover.scss b/quartz/components/styles/popover.scss
index 3616e51..70e1dd6 100644
--- a/quartz/components/styles/popover.scss
+++ b/quartz/components/styles/popover.scss
@@ -16,16 +16,20 @@
.popover {
z-index: 999;
- position: absolute;
+ position: fixed;
overflow: visible;
padding: 1rem;
+ left: 0;
+ top: 0;
+ will-change: transform;
& > .popover-inner {
position: relative;
width: 30rem;
max-height: 20rem;
- padding: 0 1rem 2rem 1rem;
+ padding: 0 1rem 1rem 1rem;
font-weight: initial;
+ font-style: initial;
line-height: normal;
font-size: initial;
font-family: var(--bodyFont);
@@ -34,6 +38,32 @@
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 {
@@ -46,12 +76,12 @@
opacity 0.3s ease,
visibility 0.3s ease;
- @media all and (max-width: $mobileBreakpoint) {
+ @media all and ($mobile) {
display: none !important;
}
}
-a:hover .popover,
+.active-popover,
.popover:hover {
animation: dropin 0.3s ease;
animation-fill-mode: forwards;
--
Gitblit v1.10.0