style: header/footer info

This commit is contained in:
Steffen Becker committed 2026-06-25 17:00:54 +02:00
1 parent 31d06809b7
commit f4093e24cf
1 file changed
+3 -3
+3 -3
View File
@@ -180,7 +180,7 @@
<div
class="hf-zone hf-{zone}"
class:hf-empty={!html}
data-hf-label={zone === 'header' ? 'Header' : 'Footer'}
data-hf-label={zone === 'header' ? 'Double-click to add a header' : 'Double-click to add a footer'}
style={boxStyle(zoneBox(zone, p))}
ondblclick={() => startEdit(zone, p)}
role="button"
@@ -235,11 +235,11 @@
justify-content: flex-end;
}
/* Empty zone: invisible until hovered, then show a faint label hint. */
/* Empty zone: invisible until hovered, then show a faint double-click hint. */
.hf-empty::before {
content: attr(data-hf-label);
color: var(--color-text-muted);
font-size: 0.7rem;
font-size: 0.9rem;
font-family: var(--font-sans);
opacity: 0;
transition: opacity 0.12s;