Convert the contact form to vanilla JS.

This commit is contained in:
Fredrik Jonsson 2022-12-21 13:39:50 +01:00
commit 331be7ebe4

View file

@ -258,17 +258,18 @@ figure {
// Form
.content {
label:has(+ :required) {
&::after {
content: '*';
color: var(--color-mark-highlight);
}
}
input,
textarea {
@include margin-bottom(.75);
width: 92%;
&:required + span::after {
content: ' *';
color: var(--color-mark-highlight);
vertical-align: top;
}
&:not(:placeholder-shown):valid {
background-color: var(--color-status-bg);
}