Convert the contact form to vanilla JS.
This commit is contained in:
parent
ffc6c8f2fc
commit
331be7ebe4
2 changed files with 57 additions and 67 deletions
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue