Convert the contact form to vanilla JS.

This commit is contained in:
Fredrik Jonsson 2022-12-21 13:39:50 +01:00
commit 331be7ebe4
2 changed files with 57 additions and 67 deletions

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);
}

View file

@ -78,7 +78,7 @@
display: inline-block;
fill: var(--color-text);
width: 1.6rem;
margin-left: 0.1rem;
margin-left: .1rem;
rect {
transform-origin: center;