From 43837f9e2ec4033722cb6957bd67c688afb3ae2c Mon Sep 17 00:00:00 2001
From: Jacky Zhao <j.zhao2k19@gmail.com>
Date: Sun, 26 Dec 2021 04:45:30 +0000
Subject: [PATCH] add makefile, fix link padding, test capitalization

---
 assets/base.scss |   45 +++++++++++++++++++++++----------------------
 1 files changed, 23 insertions(+), 22 deletions(-)

diff --git a/assets/base.scss b/assets/base.scss
index c38263f..4d195c3 100644
--- a/assets/base.scss
+++ b/assets/base.scss
@@ -23,19 +23,6 @@
   padding: revert;
 }
 
-a {
-  font-family: Inter;
-  font-weight: 700;
-  font-size: 1em;
-  text-decoration: none;
-  transition: all 0.2s ease;
-  color: var(--secondary);
-
-  &:hover {
-    color: var(--tertiary) !important;
-  }
-}
-
 #TableOfContents > ol {
   counter-reset: section;
   margin-left: 0em;
@@ -128,6 +115,16 @@
 article a {
   font-family: Source Sans Pro;
   font-weight: 600;
+
+  // internal link
+  &[href^="./"], &[href^="/"] {
+    text-decoration: none;
+    background-color: #afbfc933;
+    padding: 0 0.2em;
+    margin-right: -0.2em;
+    font-weight: 600;
+    border-radius: 3px;
+  }
 }
 
 sup > a {
@@ -135,6 +132,19 @@
   padding: 0 0.1em 0 0.2em;
 }
 
+a {
+  font-family: Inter, sans-serif;
+  font-weight: 700;
+  font-size: 1em;
+  text-decoration: none;
+  transition: all 0.2s ease;
+  color: var(--secondary);
+
+  &:hover {
+    color: var(--tertiary) !important;
+  }
+}
+
 pre {
   font-family: 'Fira Code';
   padding: 0.75em;
@@ -187,15 +197,6 @@
   background-color: var(--dark);
 }
 
-// internal link
-a[href^="./"] {
-  text-decoration: none;
-  background-color: #afbfc933;
-  padding: 0 0.2em;
-  font-weight: 600;
-  border-radius: 3px;
-}
-
 .singlePage {
   margin: 4em 30vw;
 

--
Gitblit v1.10.0