From 66e297c0eacca69da7b88be2a1377e8c1aba6720 Mon Sep 17 00:00:00 2001
From: Jacky Zhao <j.zhao2k19@gmail.com>
Date: Thu, 14 Dec 2023 00:40:24 +0000
Subject: [PATCH] css: make article no longer relative to prevent z-fighting

---
 quartz/styles/base.scss |    9 +++++++--
 1 files changed, 7 insertions(+), 2 deletions(-)

diff --git a/quartz/styles/base.scss b/quartz/styles/base.scss
index 8bb8efb..09ce206 100644
--- a/quartz/styles/base.scss
+++ b/quartz/styles/base.scss
@@ -64,11 +64,17 @@
     color: var(--tertiary) !important;
   }
 
-  &.internal:not(:has(img)) {
+  &.internal {
     text-decoration: none;
     background-color: var(--highlight);
     padding: 0 0.1rem;
     border-radius: 5px;
+
+    &:has(> img) {
+      background-color: none;
+      border-radius: 0;
+      padding: 0;
+    }
   }
 }
 
@@ -94,7 +100,6 @@
   }
 
   & article {
-    position: relative;
 
     & > h1 {
       font-size: 2rem;

--
Gitblit v1.10.0