From 3a89eee606ee91695f54a83322f1c9ef68a7c499 Mon Sep 17 00:00:00 2001 From: MoritzWeber0 Date: Sat, 24 May 2025 19:24:09 +0200 Subject: [PATCH] fix: Remove padding of search highlight and unify bg-color --- assets/sass/_variables.scss | 1 + assets/sass/styles.scss | 4 ++++ layouts/shortcodes/expander.html | 2 +- 3 files changed, 6 insertions(+), 1 deletion(-) diff --git a/assets/sass/_variables.scss b/assets/sass/_variables.scss index d800490c..add1ff50 100644 --- a/assets/sass/_variables.scss +++ b/assets/sass/_variables.scss @@ -18,4 +18,5 @@ body { --border-radius-l: 1.2rem; --pagefind-ui-border-radius: var(--border-radius-l); --pagefind-ui-border: #000; + --bs-highlight-bg: var(--bg-accent); } diff --git a/assets/sass/styles.scss b/assets/sass/styles.scss index 6ea1e77a..282be379 100644 --- a/assets/sass/styles.scss +++ b/assets/sass/styles.scss @@ -168,3 +168,7 @@ img { border-radius: var(--border-radius-l); margin-bottom: 2.4rem; } + +.pagefind-highlight { + padding: 0px; +} diff --git a/layouts/shortcodes/expander.html b/layouts/shortcodes/expander.html index 4dba0da0..ae7f0986 100644 --- a/layouts/shortcodes/expander.html +++ b/layouts/shortcodes/expander.html @@ -1,6 +1,6 @@
- {{ (.Get 0) }} + {{ (.Get 0) }}
{{ .Inner }}