aboutsummaryrefslogtreecommitdiffstats
path: root/browser/static
diff options
context:
space:
mode:
authorJan Tuomi <jan@jantuomi.fi>2025-02-17 18:19:21 +0200
committerJan Tuomi <jan@jantuomi.fi>2025-02-17 18:19:21 +0200
commitb6bba140654c18687e05874e822cccbef6fea4fa (patch)
tree5af50be15c9d321d5e9d9cffb2cca0b589e76aa9 /browser/static
parent001b52fc1b6d2b30b371611f5a8b961e5c6945d3 (diff)
Improve templating
Diffstat (limited to 'browser/static')
-rw-r--r--browser/static/htmp.js10
-rw-r--r--browser/static/styles.css10
2 files changed, 10 insertions, 10 deletions
diff --git a/browser/static/htmp.js b/browser/static/htmp.js
index 36deae2..62956a4 100644
--- a/browser/static/htmp.js
+++ b/browser/static/htmp.js
@@ -39,13 +39,3 @@ document.querySelectorAll("form[htmp]").forEach(function (el) {
el.action = action.toString();
el.target = "htmp";
});
-
-document.querySelectorAll("a[htmp]").forEach(function (el) {
- const re = el.attributes.replace.value;
-
- const href = new URL(el.href);
- href.hash = re;
- href.searchParams.set("htmp", re);
- el.target = "htmp";
- el.href = href.toString();
-});
diff --git a/browser/static/styles.css b/browser/static/styles.css
index 0faa49f..82bed74 100644
--- a/browser/static/styles.css
+++ b/browser/static/styles.css
@@ -78,6 +78,16 @@ input[type="submit"] {
margin-top: 20px;
}
+button.link,
+input[type="submit"].link {
+ background: none;
+ color: var(--blue);
+ padding: 0;
+ margin: 0;
+ text-decoration: underline;
+ font-family: "Inclusive Sans";
+}
+
button.red,
input[type="submit"].red {
background-color: var(--red);