aboutsummaryrefslogtreecommitdiff
path: root/frontend
diff options
context:
space:
mode:
authorWilliam Hergès <william@herges.fr>2025-10-29 14:46:50 +0100
committerWilliam Hergès <william@herges.fr>2025-10-29 14:46:50 +0100
commitf582b92e2b8e2a301380e420794e71200f0dbdfa (patch)
treea21462dac06b618f67062bb7050a2657d2a7fd18 /frontend
parent8be00c8b9915a91ee57ff6125962f2dccdad1a6f (diff)
feat(security): set headers
Diffstat (limited to 'frontend')
-rw-r--r--frontend/index.ts1
-rw-r--r--frontend/scss/main.scss14
2 files changed, 15 insertions, 0 deletions
diff --git a/frontend/index.ts b/frontend/index.ts
index b970e5f..d3c974f 100644
--- a/frontend/index.ts
+++ b/frontend/index.ts
@@ -1,6 +1,7 @@
import htmx from "htmx.org";
htmx.config.historyRestoreAsHxRequest = false;
+htmx.config.includeIndicatorStyles = false;
function setupAnchors() {
document.querySelectorAll("a").forEach((e) => {
diff --git a/frontend/scss/main.scss b/frontend/scss/main.scss
index d704d74..ced6763 100644
--- a/frontend/scss/main.scss
+++ b/frontend/scss/main.scss
@@ -33,3 +33,17 @@
font-size: 18px;
}
+
+/* for htmx */
+
+.htmx-indicator {
+ opacity: 0;
+}
+.htmx-request .htmx-indicator {
+ opacity: 1;
+ transition: opacity 200ms ease-in;
+}
+.htmx-request.htmx-indicator {
+ opacity: 1;
+ transition: opacity 200ms ease-in;
+}