From cd826fb4774795004bfba1b5edd0f2fc8b4b435c Mon Sep 17 00:00:00 2001
From: Jacky Zhao <j.zhao2k19@gmail.com>
Date: Mon, 22 Jan 2024 18:03:59 +0000
Subject: [PATCH] fix: process comments at a text level rather than a markdown level

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

diff --git a/quartz/styles/base.scss b/quartz/styles/base.scss
index c0c5712..8fb464d 100644
--- a/quartz/styles/base.scss
+++ b/quartz/styles/base.scss
@@ -59,6 +59,7 @@
   text-decoration: none;
   transition: color 0.2s ease;
   color: var(--secondary);
+  display: inline-block;
 
   &:hover {
     color: var(--tertiary) !important;
@@ -69,6 +70,7 @@
     background-color: var(--highlight);
     padding: 0 0.1rem;
     border-radius: 5px;
+    line-height: 1.4rem;
 
     &:has(> img) {
       background-color: none;
@@ -76,6 +78,15 @@
       padding: 0;
     }
   }
+
+  &.external .external-icon {
+    height: 1ex;
+    margin: 0 0.15em;
+
+    > path {
+      fill: var(--dark);
+    }
+  }
 }
 
 .desktop-only {
@@ -328,12 +339,13 @@
 
 pre {
   font-family: var(--codeFont);
-  padding: 0.5rem;
+  padding: 0 0.5rem;
   border-radius: 5px;
   overflow-x: auto;
   border: 1px solid var(--lightgray);
+  position: relative;
 
-  &.mermaid {
+  &:has(> code.mermaid) {
     border: none;
   }
 

--
Gitblit v1.10.0