Skip to content

Commit 6add0c8

Browse files
committed
fix(style): layout flow, search restyle
1 parent 8df8d5c commit 6add0c8

File tree

3 files changed

+8
-23
lines changed

3 files changed

+8
-23
lines changed

quartz/components/Search.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,14 +20,14 @@ export default ((userOpts?: Partial<SearchOptions>) => {
2020
return (
2121
<div class={classNames(displayClass, "search")}>
2222
<button class="search-button">
23-
<p>{i18n(cfg.locale).components.search.title}</p>
2423
<svg role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 19.9 19.7">
2524
<title>Search</title>
2625
<g class="search-path" fill="none">
2726
<path stroke-linecap="square" d="M18.5 18.3l-5.4-5.4" />
2827
<circle cx="8" cy="8" r="7" />
2928
</g>
3029
</svg>
30+
<p>{i18n(cfg.locale).components.search.title}</p>
3131
</button>
3232
<div class="search-container">
3333
<div class="search-space">

quartz/components/styles/search.scss

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@
88
}
99

1010
& > .search-button {
11-
background-color: color-mix(in srgb, var(--lightgray) 60%, var(--light));
12-
border: none;
11+
background-color: transparent;
12+
border: 1px var(--lightgray) solid;
1313
border-radius: 4px;
1414
font-family: inherit;
1515
font-size: inherit;
@@ -21,11 +21,10 @@
2121
cursor: pointer;
2222
white-space: nowrap;
2323
width: 100%;
24-
justify-content: space-between;
2524

2625
& > p {
2726
display: inline;
28-
padding: 0 1rem;
27+
color: var(--gray);
2928
}
3029

3130
& svg {
@@ -36,7 +35,7 @@
3635

3736
.search-path {
3837
stroke: var(--darkgray);
39-
stroke-width: 2px;
38+
stroke-width: 1.5px;
4039
transition: stroke 0.5s ease;
4140
}
4241
}

quartz/styles/base.scss

Lines changed: 3 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -44,22 +44,8 @@ ul,
4444
.typst-doc * {
4545
color: var(--darkgray);
4646
fill: var(--darkgray);
47-
hyphens: auto;
48-
}
49-
50-
p,
51-
ul,
52-
text,
53-
a,
54-
li,
55-
ol,
56-
ul,
57-
.katex,
58-
.math,
59-
.typst-doc,
60-
.typst-doc * {
61-
overflow-wrap: anywhere;
62-
/* tr and td removed from list of selectors for overflow-wrap, allowing them to use default 'normal' property value */
47+
overflow-wrap: break-word;
48+
text-wrap: pretty;
6349
}
6450

6551
.math {
@@ -225,7 +211,7 @@ a {
225211
}
226212

227213
& .sidebar {
228-
gap: 2rem;
214+
gap: 1.2rem;
229215
top: 0;
230216
box-sizing: border-box;
231217
padding: $topSpacing 2rem 2rem 2rem;

0 commit comments

Comments
 (0)