20 lines
227 B
CSS
20 lines
227 B
CSS
form {
|
|
width: 100%;
|
|
|
|
display: flex;
|
|
flex-flow: column nowrap;
|
|
gap: 1rem;
|
|
|
|
& input {
|
|
width: 100%;
|
|
|
|
&[aria-invalid="true"] {
|
|
border-color: red;
|
|
}
|
|
}
|
|
|
|
& label:has([aria-invalid="true"]) + small {
|
|
color: red;
|
|
}
|
|
}
|