From 6add0c837e6368d8a198490de25527527513c110 Mon Sep 17 00:00:00 2001 From: Jacky Zhao Date: Wed, 17 Sep 2025 15:26:49 -0700 Subject: [PATCH] fix(style): layout flow, search restyle --- quartz/components/Search.tsx | 2 +- quartz/components/styles/search.scss | 9 ++++----- quartz/styles/base.scss | 20 +++----------------- 3 files changed, 8 insertions(+), 23 deletions(-) diff --git a/quartz/components/Search.tsx b/quartz/components/Search.tsx index 4c6664ae..6e932d2e 100644 --- a/quartz/components/Search.tsx +++ b/quartz/components/Search.tsx @@ -20,7 +20,6 @@ export default ((userOpts?: Partial) => { return (
diff --git a/quartz/components/styles/search.scss b/quartz/components/styles/search.scss index 1712ca67..879686e4 100644 --- a/quartz/components/styles/search.scss +++ b/quartz/components/styles/search.scss @@ -8,8 +8,8 @@ } & > .search-button { - background-color: color-mix(in srgb, var(--lightgray) 60%, var(--light)); - border: none; + background-color: transparent; + border: 1px var(--lightgray) solid; border-radius: 4px; font-family: inherit; font-size: inherit; @@ -21,11 +21,10 @@ cursor: pointer; white-space: nowrap; width: 100%; - justify-content: space-between; & > p { display: inline; - padding: 0 1rem; + color: var(--gray); } & svg { @@ -36,7 +35,7 @@ .search-path { stroke: var(--darkgray); - stroke-width: 2px; + stroke-width: 1.5px; transition: stroke 0.5s ease; } } diff --git a/quartz/styles/base.scss b/quartz/styles/base.scss index 8bd1123e..391139cd 100644 --- a/quartz/styles/base.scss +++ b/quartz/styles/base.scss @@ -44,22 +44,8 @@ ul, .typst-doc * { color: var(--darkgray); fill: var(--darkgray); - hyphens: auto; -} - -p, -ul, -text, -a, -li, -ol, -ul, -.katex, -.math, -.typst-doc, -.typst-doc * { - overflow-wrap: anywhere; - /* tr and td removed from list of selectors for overflow-wrap, allowing them to use default 'normal' property value */ + overflow-wrap: break-word; + text-wrap: pretty; } .math { @@ -225,7 +211,7 @@ a { } & .sidebar { - gap: 2rem; + gap: 1.2rem; top: 0; box-sizing: border-box; padding: $topSpacing 2rem 2rem 2rem;