From 9c2b43e11f0cc36a7cfca0e24efd65475aa9bed3 Mon Sep 17 00:00:00 2001
From: Roan Horning
Date: Wed, 27 Aug 2025 11:42:32 -0400
Subject: [PATCH] Update search page to include tag index
---
public_html/css/hpr.css | 37 +++++--
templates/content-search.tpl.html | 168 ++++++++++++++++++++++--------
templates/content-tags.tpl.html | 33 +++---
3 files changed, 165 insertions(+), 73 deletions(-)
diff --git a/public_html/css/hpr.css b/public_html/css/hpr.css
index ec2b227..f11441c 100644
--- a/public_html/css/hpr.css
+++ b/public_html/css/hpr.css
@@ -436,7 +436,7 @@ fieldset > table {
width: calc(100vw + -16vw + -1rem);
max-width: 100%;
}
-
+fieldset > input,
fieldset > table td input,
fieldset > table td textarea {
width: calc(100vw + -16vw + -1.5rem);
@@ -471,18 +471,37 @@ fieldset > table td input[type="radio"] {
width: initial;
margin-bottom: 0.5rem;
}
-
-fieldset > input {
- background: var(--background-secondary);
- color: white;
- font-weight: 600;
- padding: 0.5rem;
- border: thin solid var(--input-border-primary);
- border-radius: 0.2rem;
+#search form {
+ flex: 1 1 auto
+}
+#search fieldset > input {
+ width: initial;
+}
+#search fieldset > input[type="submit"] {
+ background-color: var(--background-secondary);
+ color: var(--text-secondary);
+}
+#search fieldset > input[type="submit"]:hover {
+ background-color: var(--link-secondary);
+ color: var(--background-secondary);
}
.no-css {
display: none;
}
+#tags #tag_initial_letter_index {
+ columns: 3 auto;
+}
+#tags #tag_initial_letter_index li {
+ font-weight: bold;
+ list-style: none;
+}
+#tags .tag-index {
+ columns: 3 calc(var(--for-tablet-landscape-up) /3 );
+ column-gap: 1rem;
+}
+#tags .index-link {
+ text-align: right;
+}
.sr-only {
position: absolute;
width: 1px;
diff --git a/templates/content-search.tpl.html b/templates/content-search.tpl.html
index 53e7a61..ba8fab1 100644
--- a/templates/content-search.tpl.html
+++ b/templates/content-search.tpl.html
@@ -1,45 +1,123 @@
-
-
-
-Search Show Tags
-
-Complete list of all the Tags
-
-Google
-
-
-privacy policy
-
-
-DuckDuckGo
-
-
-privacy policy
-
-
-Bing
-
-
-
-privacy policy
-
-
+
+
diff --git a/templates/content-tags.tpl.html b/templates/content-tags.tpl.html
index 13a9dd3..170da33 100644
--- a/templates/content-tags.tpl.html
+++ b/templates/content-tags.tpl.html
@@ -1,3 +1,4 @@
+
\ No newline at end of file