update components

This commit is contained in:
Luke Pulverenti 2016-08-02 21:32:16 -04:00
parent 823f69bb92
commit db0bac5a2b
22 changed files with 113 additions and 91 deletions

View file

@ -1,4 +1,4 @@
[is=emby-collapse] {
.emby-collapse {
margin: .5em 0;
}

View file

@ -62,11 +62,11 @@
EmbyButtonPrototype.attachedCallback = function () {
if (this.getAttribute('data-embycollapse') == 'true') {
if (this.classList.contains('emby-collapse')) {
return;
}
this.setAttribute('data-embycollapse', 'true');
this.classList.add('emby-collapse');
var collapseContent = this.querySelector('.collapseContent');
if (collapseContent) {