From 2de48b267a8f2d6ed0461d2febc266559c2d8d47 Mon Sep 17 00:00:00 2001
From: Jacky Zhao <j.zhao2k19@gmail.com>
Date: Wed, 15 Nov 2023 04:01:48 +0000
Subject: [PATCH] fix: set htmlAst after walking tree in ofm (closes #589)
---
quartz/styles/base.scss | 37 ++++++++++++++++++++++++-------------
1 files changed, 24 insertions(+), 13 deletions(-)
diff --git a/quartz/styles/base.scss b/quartz/styles/base.scss
index 92c0f84..2e5edec 100644
--- a/quartz/styles/base.scss
+++ b/quartz/styles/base.scss
@@ -1,7 +1,6 @@
-@use "./custom.scss";
+@use "./variables.scss" as *;
@use "./syntax.scss";
@use "./callouts.scss";
-@use "./variables.scss" as *;
html {
scroll-behavior: smooth;
@@ -65,7 +64,7 @@
color: var(--tertiary) !important;
}
- &.internal {
+ &.internal:not(:has(> img)) {
text-decoration: none;
background-color: var(--highlight);
padding: 0 0.1rem;
@@ -95,6 +94,8 @@
}
& article {
+ position: relative;
+
& > h1 {
font-size: 2rem;
}
@@ -389,23 +390,33 @@
line-height: 1.6rem;
}
-table {
- margin: 1rem;
- padding: 1.5rem;
- border-collapse: collapse;
- & > * {
- line-height: 2rem;
+.table-container {
+ overflow-x: auto;
+
+ & > table {
+ margin: 1rem;
+ padding: 1.5rem;
+ border-collapse: collapse;
+
+ th,
+ td {
+ min-width: 75px;
+ }
+
+ & > * {
+ line-height: 2rem;
+ }
}
}
th {
text-align: left;
- padding: 0.4rem 1rem;
+ padding: 0.4rem 0.7rem;
border-bottom: 2px solid var(--gray);
}
td {
- padding: 0.2rem 1rem;
+ padding: 0.2rem 0.7rem;
}
tr {
@@ -446,7 +457,7 @@
ul.overflow,
ol.overflow {
- height: 300px;
+ max-height: 400;
overflow-y: auto;
// clearfix
@@ -454,7 +465,7 @@
clear: both;
& > li:last-of-type {
- margin-bottom: 50px;
+ margin-bottom: 30px;
}
&:after {
--
Gitblit v1.10.0