From bece8fcab6e12db79617dcbcccb174d299140b51 Mon Sep 17 00:00:00 2001
From: Luis Michaelis <me@lmichaelis.de>
Date: Fri, 02 Feb 2024 17:51:34 +0000
Subject: [PATCH] fix: properly handle absolute paths in `CreatedModifiedDate` (#790)

---
 quartz/components/styles/search.scss |   15 ++++++++-------
 1 files changed, 8 insertions(+), 7 deletions(-)

diff --git a/quartz/components/styles/search.scss b/quartz/components/styles/search.scss
index 1471a77..24a7284 100644
--- a/quartz/components/styles/search.scss
+++ b/quartz/components/styles/search.scss
@@ -83,11 +83,14 @@
       }
 
       & > #search-layout {
-        display: flex;
+        display: none;
         flex-direction: row;
-        visibility: hidden;
         border: 1px solid var(--lightgray);
 
+        &.display-results {
+          display: flex;
+        }
+
         @media all and (min-width: $tabletBreakpoint) {
           &[data-preview] {
             & .result-card > p.preview {
@@ -114,7 +117,8 @@
         }
 
         @media all and (max-width: $tabletBreakpoint) {
-          display: block;
+          display: block !important;
+
           & > *:not(#results-container) {
             display: none !important;
           }
@@ -128,6 +132,7 @@
         & .highlight {
           background: color-mix(in srgb, var(--tertiary) 60%, transparent);
           border-radius: 5px;
+          scroll-margin-top: 2rem;
         }
 
         & > #preview-container {
@@ -149,10 +154,6 @@
             margin: 0 auto;
             width: min($pageWidth, 100%);
           }
-
-          a.internal {
-            background-color: inherit;
-          }
         }
 
         & > #results-container {

--
Gitblit v1.10.0