1
0
Fork 0
mirror of https://github.com/jellyfin/jellyfin-web synced 2025-03-30 19:56:21 +00:00

update components

This commit is contained in:
Luke Pulverenti 2016-07-07 00:28:58 -04:00
parent 9a4a0e78a9
commit 5d6cee1223
4 changed files with 33 additions and 11 deletions

View file

@ -20,14 +20,29 @@
cursor: pointer;
outline: none !important;
width: 100%;
-webkit-appearance: none;
-moz-appearance: none;
appearance: none;
}
[is="emby-select"] option {
color: initial;
}
[is="emby-select"] option {
color: initial;
}
.selectContainer {
margin-bottom: 2em;
position: relative;
}
.selectArrowContainer {
position: absolute;
right: 0;
top: .25em;
color: inherit;
}
.selectArrow {
margin-top: .35em;
}
.selectLabel {

View file

@ -153,6 +153,17 @@
var div = document.createElement('div');
div.classList.add('emby-select-selectionbar');
this.parentNode.insertBefore(div, this.nextSibling);
var arrowContainer = document.createElement('div');
arrowContainer.classList.add('selectArrowContainer');
arrowContainer.innerHTML = '<div style="visibility:hidden;">0</div>';
this.parentNode.appendChild(arrowContainer);
var arrow = document.createElement('i');
arrow.classList.add('md-icon');
arrow.classList.add('selectArrow');
arrow.innerHTML = '&#xE313;';
arrowContainer.appendChild(arrow);
}
};