mirror of
https://github.com/jellyfin/jellyfin-web.git
synced 2024-11-17 19:08:18 -07:00
update input
This commit is contained in:
parent
ae55e83e30
commit
26c5493ff7
@ -22,7 +22,6 @@
|
|||||||
label.innerHTML = this.getAttribute('label') || '';
|
label.innerHTML = this.getAttribute('label') || '';
|
||||||
label.classList.add('inputLabel');
|
label.classList.add('inputLabel');
|
||||||
|
|
||||||
label.classList.add('inputLabelUnfocused');
|
|
||||||
label.htmlFor = this.id;
|
label.htmlFor = this.id;
|
||||||
parentNode.insertBefore(label, this);
|
parentNode.insertBefore(label, this);
|
||||||
|
|
||||||
@ -41,10 +40,8 @@
|
|||||||
this.addEventListener('focus', function () {
|
this.addEventListener('focus', function () {
|
||||||
onChange.call(this);
|
onChange.call(this);
|
||||||
label.classList.add('inputLabelFocused');
|
label.classList.add('inputLabelFocused');
|
||||||
label.classList.remove('inputLabelUnfocused');
|
|
||||||
});
|
});
|
||||||
this.addEventListener('blur', function () {
|
this.addEventListener('blur', function () {
|
||||||
label.classList.add('inputLabelUnfocused');
|
|
||||||
label.classList.remove('inputLabelFocused');
|
label.classList.remove('inputLabelFocused');
|
||||||
});
|
});
|
||||||
|
|
||||||
|
@ -436,7 +436,7 @@ paper-input label, paper-textarea label {
|
|||||||
color: #ccc;
|
color: #ccc;
|
||||||
}
|
}
|
||||||
|
|
||||||
.ui-body-b .selectLabelUnfocused, .ui-body-b .inputLabelUnfocused {
|
.ui-body-b .selectLabelUnfocused, .ui-body-b .inputLabel {
|
||||||
color: #ccc;
|
color: #ccc;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user