Float label support for textarea

pull/358/head
cagataycivici 2020-07-03 11:45:38 +03:00
parent d783c2257d
commit 627396f031
1 changed files with 6 additions and 0 deletions

View File

@ -46,9 +46,15 @@
transition-timing-function: ease;
line-height: 1;
}
.p-float-label textarea ~ label {
top: 1rem;
}
.p-float-label input:focus ~ label,
.p-float-label input.p-filled ~ label,
.p-float-label textarea:focus ~ label,
.p-float-label textarea.p-filled ~ label,
.p-float-label .p-inputwrapper-focus ~ label,
.p-float-label .p-inputwrapper-filled ~ label {
top: -.75rem;