From e82ba97a396e4e9d77486b48e6ee8b1dfd1c1b4c Mon Sep 17 00:00:00 2001
From: Jacky Zhao <j.zhao2k19@gmail.com>
Date: Mon, 24 Jul 2023 07:07:58 +0000
Subject: [PATCH] actually add processed tag to frontmatter
---
quartz/styles/base.scss | 89 +++++++++++++++++++++++++++++++++-----------
1 files changed, 66 insertions(+), 23 deletions(-)
diff --git a/quartz/styles/base.scss b/quartz/styles/base.scss
index f0b252b..ee39b47 100644
--- a/quartz/styles/base.scss
+++ b/quartz/styles/base.scss
@@ -5,6 +5,8 @@
html {
scroll-behavior: smooth;
+ -webkit-text-size-adjust: none;
+ text-size-adjust: none;
}
body {
@@ -21,9 +23,21 @@
border-radius: 5px;
}
-p, ul, text, a, tr, td, li, ol, ul, .katex, .math {
+p,
+ul,
+text,
+a,
+tr,
+td,
+li,
+ol,
+ul,
+.katex,
+.math {
color: var(--darkgray);
fill: var(--darkgray);
+ overflow-wrap: anywhere;
+ hyphens: auto;
}
.math {
@@ -70,16 +84,12 @@
margin: 0 5vw;
}
- & p {
- overflow-wrap: anywhere;
- }
-
& article {
& > h1 {
font-size: 2rem;
}
- & li:has(> input[type='checkbox']) {
+ & li:has(> input[type="checkbox"]) {
list-style-type: none;
padding-left: 0;
margin-left: -1.4rem;
@@ -113,14 +123,14 @@
flex-direction: row;
padding: 0;
width: initial;
- margin-top: 4rem;
+ margin-top: 2rem;
}
}
& .sidebar.left {
left: calc(calc(100vw - $pageWidth) / 2 - $sidePanelWidth);
@media all and (max-width: $fullPageWidth) {
- gap: 1rem;
+ gap: 0rem;
align-items: center;
}
}
@@ -144,7 +154,8 @@
}
}
- & .center, & footer {
+ & .center,
+ & footer {
width: $pageWidth;
margin-left: auto;
margin-right: auto;
@@ -195,9 +206,12 @@
}
}
-
-
-h1, h2, h3, h4, h5, h6 {
+h1,
+h2,
+h3,
+h4,
+h5,
+h6 {
&[id] > a[href^="#"] {
margin: 0 0.5rem;
opacity: 0;
@@ -207,13 +221,37 @@
font-family: var(--codeFont);
user-select: none;
}
+
&[id]:hover > a {
opacity: 1;
}
}
+// typography improvements
+h1 {
+ font-size: 1.75rem;
+ margin-top: 2.75rem;
+}
+
+h2 {
+ font-size: 1.4rem;
+ margin-top: 2.4rem;
+}
+
+h3 {
+ font-size: 1.12rem;
+ margin-top: 2.12rem;
+}
+
+h4,
+h5,
+h6 {
+ font-size: 1rem;
+ margin-top: 2rem;
+}
+
div[data-rehype-pretty-code-fragment] {
- line-height: 1.5rem;
+ line-height: 1.6rem;
position: relative;
& > div[data-rehype-pretty-code-title] {
@@ -277,11 +315,11 @@
}
}
- &[data-line-numbers-max-digits='2'] > [data-line]::before {
+ &[data-line-numbers-max-digits="2"] > [data-line]::before {
width: 2rem;
}
-
- &[data-line-numbers-max-digits='3'] > [data-line]::before {
+
+ &[data-line-numbers-max-digits="3"] > [data-line]::before {
width: 3rem;
}
}
@@ -296,8 +334,10 @@
background: var(--lightgray);
}
-tbody, li, p {
- line-height: 1.5rem;
+tbody,
+li,
+p {
+ line-height: 1.6rem;
}
table {
@@ -307,7 +347,8 @@
border-collapse: collapse;
}
-td, th {
+td,
+th {
padding: 0.2rem 1rem;
border: 1px solid var(--gray);
}
@@ -331,7 +372,8 @@
background-color: var(--lightgray);
}
-audio, video {
+audio,
+video {
width: 100%;
border-radius: 5px;
}
@@ -340,7 +382,8 @@
flex: 1 1 auto;
}
-ul.overflow, ol.overflow {
+ul.overflow,
+ol.overflow {
height: 400px;
overflow-y: scroll;
@@ -354,9 +397,9 @@
&:after {
pointer-events: none;
- content: '';
+ content: "";
width: 100%;
- height: 50px;
+ height: 50px;
position: absolute;
left: 0;
bottom: 0;
--
Gitblit v1.10.0