js & css: more width for video-resources when playing

This commit is contained in:
Astro 2012-02-01 20:12:33 +01:00
parent 03cc89892c
commit bd8f48c4af
2 changed files with 10 additions and 0 deletions

View File

@ -55,6 +55,13 @@ function addButton(container, res) {
button.remove();
addPlayer(container, res);
var section = container.parents().
filter(function() {
return $(this).hasClass('video-resource');
})[0];
if (section)
$(section).addClass("playing");
});
container.append(button);
}

View File

@ -688,6 +688,9 @@ li audio, li video, li .poster {
display: inline-block;
text-align: center;
}
.video-resource.playing {
width: auto;
}
.video-resource h4 {
line-height: 1em;
height: 2em;