From 2154d36d9993e128faaa6471cdae305cca3d810d Mon Sep 17 00:00:00 2001
From: Jacky Zhao <j.zhao2k19@gmail.com>
Date: Wed, 10 Jul 2024 00:20:13 +0000
Subject: [PATCH] chore: use regex flag instead of string in regexp ctor
---
quartz/styles/base.scss | 27 ++++++++++++++++++---------
1 files changed, 18 insertions(+), 9 deletions(-)
diff --git a/quartz/styles/base.scss b/quartz/styles/base.scss
index 1af96f6..37aa8ce 100644
--- a/quartz/styles/base.scss
+++ b/quartz/styles/base.scss
@@ -43,10 +43,22 @@
.math {
color: var(--darkgray);
fill: var(--darkgray);
- overflow-wrap: anywhere;
hyphens: auto;
}
+p,
+ul,
+text,
+a,
+li,
+ol,
+ul,
+.katex,
+.math {
+ overflow-wrap: anywhere;
+ /* tr and td removed from list of selectors for overflow-wrap, allowing them to use default 'normal' property value */
+}
+
.math {
&.math-display {
text-align: center;
@@ -481,6 +493,10 @@
flex: 1 1 auto;
}
+div:has(> .overflow) {
+ position: relative;
+}
+
ul.overflow,
ol.overflow {
max-height: 400;
@@ -516,12 +532,5 @@
.katex-display {
overflow-x: auto;
- overflow-y: visible;
-
- & > .katex .katex-html {
- .base,
- .strut {
- display: inline;
- }
- }
+ overflow-y: hidden;
}
--
Gitblit v1.10.0