[Glitch] Add HTML form validation for the registration form

Port d70c3ab4c3 to glitch-soc

Signed-off-by: Thibaut Girka <thib@sitedethib.com>
This commit is contained in:
ThibG
2020-08-11 23:09:13 +02:00
committed by Thibaut Girka
parent da62e350e0
commit b6c0f1fdc6
2 changed files with 12 additions and 1 deletions

View File

@ -355,7 +355,8 @@ code {
box-shadow: none;
}
&:focus:invalid:not(:placeholder-shown) {
&:focus:invalid:not(:placeholder-shown),
&:required:invalid:not(:placeholder-shown) {
border-color: lighten($error-red, 12%);
}