fix: fix label styling

fix: handle primary color not being there
This commit is contained in:
Andy Burke 2025-09-16 20:11:42 -07:00
parent f03ca66a07
commit e1bb07a138
3 changed files with 9 additions and 9 deletions

View file

@ -216,7 +216,7 @@ form div {
margin-bottom: 1.5em;
}
form label {
form label.placeholder {
position: absolute;
top: 0;
font-size: large;
@ -230,8 +230,8 @@ form label {
font-size 0.2s ease-in-out;
}
form input:focus ~ label,
form input:valid ~ label {
form input:focus ~ label.placeholder,
form input:valid ~ label.placeholder {
top: -1.6rem;
font-size: small;
border: 1px solid rgba(128, 128, 128, 0.2);