Validate expense/reimbursement forms
Adds some general helpers and styles for minimalistic form validation.
This commit is contained in:
@@ -58,7 +58,7 @@ section#signup {
|
||||
}
|
||||
}
|
||||
|
||||
input[type=text], select {
|
||||
input[type=text], input[type=url], select {
|
||||
width: 100%;
|
||||
padding: 1rem;
|
||||
border: none;
|
||||
@@ -72,12 +72,15 @@ section#signup {
|
||||
&:focus, &.valid {
|
||||
background-color: rgba(22, 21, 40, 0.6);
|
||||
}
|
||||
&:focus {
|
||||
&:focus :not(:invalid) {
|
||||
border-color: $blue;
|
||||
}
|
||||
&::placeholder {
|
||||
color: rgba(238, 238, 238, 0.5);
|
||||
}
|
||||
&.invalid {
|
||||
border-color: $red;
|
||||
}
|
||||
}
|
||||
|
||||
select {
|
||||
|
||||
Reference in New Issue
Block a user