Fixed some of the album selection stuff

This commit is contained in:
gballan1 2016-11-28 20:13:09 -05:00
parent faa0ed3464
commit a6663db3e6
3 changed files with 13 additions and 6 deletions

View File

@ -62,7 +62,7 @@
.album-art
width: 100%
.music-album
.music-album .thumbnail
+transition(background, 200ms)
&:hover

View File

@ -680,18 +680,18 @@ body {
.album-art {
width: 100%; }
.music-album {
.music-album .thumbnail {
-webkit-transition: background, 200ms;
-moz-transition: background, 200ms;
transition: background, 200ms; }
.music-album:hover {
.music-album .thumbnail:hover {
background: #f0f0f0;
cursor: pointer; }
.music-album:hover a {
.music-album .thumbnail:hover a {
color: #e51400; }
.music-album.selected {
.music-album .thumbnail.selected {
background: #e0e0e0; }
.music-album.selected a {
.music-album .thumbnail.selected a {
color: #e51400; }
.shows-header {

View File

@ -3,10 +3,17 @@ var player = '';
$(document).ready(function() {
player = $('#music-player').get(0);
// on music track click
$('.now-playing-list .music-track').on('click', function() {
// change selected track
changeSelectedTrack(this);
});
// on album art click
$('.music-album').on('click', function() {
// change selected album
changeSelectedAlbum(this);
});
});
function changeSelectedAlbum(albumElem) {