Convert the contact form to vanilla JS.
This commit is contained in:
parent
ffc6c8f2fc
commit
331be7ebe4
1 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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue