summaryrefslogtreecommitdiff
path: root/assets/static/css/style.css
diff options
context:
space:
mode:
Diffstat (limited to 'assets/static/css/style.css')
-rw-r--r--assets/static/css/style.css65
1 files changed, 65 insertions, 0 deletions
diff --git a/assets/static/css/style.css b/assets/static/css/style.css
index fb12054..00e9ee3 100644
--- a/assets/static/css/style.css
+++ b/assets/static/css/style.css
@@ -63,6 +63,36 @@ CUSTOM PROPERTIES
--breakout-xl: 24rem;
--breakout-xxl: 32rem;
+ /* Pagefind */
+ --pf-text: var(--foreground);
+ --pf-text-secondary: var(--dim-foreground);
+ --pf-text-muted: var(--dim-foreground);
+
+ --pf-background: var(--background);
+
+ --pf-border: var(--foreground);
+ --pf-border-focus: var(--green);
+
+ --pf-hover: color-mix(in srgb, var(--green) 10%, var(--background));
+
+ --pf-mark: var(--yellow);
+
+ --pf-outline-focus: var(--green);
+
+ --pf-shadow-sm: none;
+ --pf-shadow-md: none;
+ --pf-shadow-lg: none;
+
+ --pf-font: "Libre Baskerville", Georgia, serif;
+
+ --pf-input-height: 2.5rem;
+ --pf-input-font-size: 1rem;
+
+ --pf-border-radius: 0.5rem;
+
+ --pf-searchbox-max-width: 20rem;
+ --pf-searchbox-dropdown-max-height: 24rem;
+
/* Responsive layout */
@media (min-width: 500px) {
--column-max-width: var(--measure);
@@ -401,6 +431,37 @@ body > header {
width: 1.5rem;
}
}
+
+ /* --- Search --- */
+ pagefind-modal-trigger {
+ align-self: center;
+ margin-left: auto;
+
+ button {
+ background: none !important;
+ border: 0 !important;
+ border-radius: 0 !important;
+ box-shadow: none !important;
+ color: var(--foreground) !important;
+ min-height: 0 !important;
+ padding: 0 !important;
+
+ &:hover {
+ color: var(--blue) !important;
+ }
+
+ &:focus-visible {
+ outline: 2px solid var(--bright-blue);
+ outline-offset: 0.25rem;
+ }
+ }
+
+ .pf-trigger-icon {
+ background-color: currentColor !important;
+ height: 1.5rem !important;
+ width: 1.5rem !important;
+ }
+ }
}
#lightmode + span,
@@ -1025,3 +1086,7 @@ article::after,
}
}
}
+
+pagefind-modal .pf-result-card:has([data-pf-selected]) {
+ background: var(--pf-hover) !important;
+}