forked from andyburke/autonomous.contact
fix: fix label styling
fix: handle primary color not being there
This commit is contained in:
parent
f03ca66a07
commit
e1bb07a138
3 changed files with 9 additions and 9 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue