From 7ecd9ec16575b382daa2dc752019c5cfd181c0f9 Mon Sep 17 00:00:00 2001 From: "Florine W. Dekker" Date: Wed, 14 Dec 2022 21:17:41 +0100 Subject: [PATCH] Load all hints and add inline button --- package.json | 2 +- src/main/css/snippets/common.css | 8 ++++++++ src/main/js/Validation.ts | 2 +- 3 files changed, 10 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 3fb25f7..706a596 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@fwdekker/template", - "version": "3.5.5", + "version": "3.5.6", "description": "The base template for pages on fwdekker.com.", "author": "Florine W. Dekker", "license": "MIT", diff --git a/src/main/css/snippets/common.css b/src/main/css/snippets/common.css index fb8db85..0699c3e 100644 --- a/src/main/css/snippets/common.css +++ b/src/main/css/snippets/common.css @@ -78,6 +78,14 @@ noscript.fwd-js-notice p { } +/* Forms */ +.inline-button { + display: inline-block; + width: unset; + margin: 0; +} + + /* Header */ header.fwd-header a[href="."] { color: unset; diff --git a/src/main/js/Validation.ts b/src/main/js/Validation.ts index 4119a3a..d95161b 100644 --- a/src/main/js/Validation.ts +++ b/src/main/js/Validation.ts @@ -200,7 +200,7 @@ doAfterLoad(() => { }); }); - $a("input + small[data-hint]").forEach((hint: Element) => { + $a("small[data-hint]").forEach((hint: Element) => { if (!(hint instanceof HTMLElement)) return; hint.innerHTML = hint.dataset["hint"] ?? "";