Load all hints and add inline button

This commit is contained in:
Florine W. Dekker 2022-12-14 21:17:41 +01:00
parent e5e6a0d347
commit 7ecd9ec165
Signed by: FWDekker
GPG Key ID: D3DCFAA8A4560BE0
3 changed files with 10 additions and 2 deletions

View File

@ -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",

View File

@ -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;

View File

@ -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"] ?? "";