Skip to content

Commit 30b1f97

Browse files
committed
fix: Remove padding of search highlight and unify bg-color
1 parent e6b8b65 commit 30b1f97

3 files changed

Lines changed: 6 additions & 1 deletion

File tree

assets/sass/_variables.scss

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,5 @@ body {
1818
--border-radius-l: 1.2rem;
1919
--pagefind-ui-border-radius: var(--border-radius-l);
2020
--pagefind-ui-border: #000;
21+
--bs-highlight-bg: var(--bg-accent);
2122
}

assets/sass/styles.scss

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -168,3 +168,7 @@ img {
168168
border-radius: var(--border-radius-l);
169169
margin-bottom: 2.4rem;
170170
}
171+
172+
.pagefind-highlight {
173+
padding: 0px !important;
174+
}

layouts/shortcodes/expander.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<details name="{{ (.Get 1) }}">
22
<summary>
3-
{{ (.Get 0) }}
3+
<span>{{ (.Get 0) }}</span>
44
</summary>
55
<div>
66
{{ .Inner }}

0 commit comments

Comments
 (0)