From 06e3f8b93d5fbe96e7a05e4eb6be97b6a2d7ead0 Mon Sep 17 00:00:00 2001
From: Jacky Zhao <j.zhao2k19@gmail.com>
Date: Sat, 17 Feb 2024 18:34:51 +0000
Subject: [PATCH] fix(style): introduce semiBoldWeight and various improvements to reduce CLS

---
 quartz/styles/base.scss |   12 ++++--------
 1 files changed, 4 insertions(+), 8 deletions(-)

diff --git a/quartz/styles/base.scss b/quartz/styles/base.scss
index 7bc799a..6c8f836 100644
--- a/quartz/styles/base.scss
+++ b/quartz/styles/base.scss
@@ -7,8 +7,6 @@
   text-size-adjust: none;
   overflow-x: hidden;
   width: 100vw;
-  -webkit-font-smoothing: antialiased;
-  -moz-osx-font-smoothing: grayscale;
 }
 
 body,
@@ -28,7 +26,7 @@
 }
 
 ::selection {
-  background: color-mix(in srgb, var(--tertiary) 60%, transparent);
+  background: color-mix(in srgb, var(--tertiary) 60%, rgba(255, 255, 255, 0));
   color: var(--darkgray);
 }
 
@@ -56,7 +54,7 @@
 }
 
 a {
-  font-weight: $boldWeight;
+  font-weight: $semiBoldWeight;
   text-decoration: none;
   transition: color 0.2s ease;
   color: var(--secondary);
@@ -261,11 +259,9 @@
   font-weight: revert;
   margin-bottom: 0;
 
-  article > & > a {
+  article > & > a[role="anchor"] {
     color: var(--dark);
-    &.internal {
-      background-color: transparent;
-    }
+    background-color: transparent;
   }
 }
 

--
Gitblit v1.10.0