Fixed some of the album selection stuff
This commit is contained in:
parent
faa0ed3464
commit
a6663db3e6
@ -62,7 +62,7 @@
|
|||||||
.album-art
|
.album-art
|
||||||
width: 100%
|
width: 100%
|
||||||
|
|
||||||
.music-album
|
.music-album .thumbnail
|
||||||
+transition(background, 200ms)
|
+transition(background, 200ms)
|
||||||
|
|
||||||
&:hover
|
&:hover
|
||||||
|
@ -680,18 +680,18 @@ body {
|
|||||||
.album-art {
|
.album-art {
|
||||||
width: 100%; }
|
width: 100%; }
|
||||||
|
|
||||||
.music-album {
|
.music-album .thumbnail {
|
||||||
-webkit-transition: background, 200ms;
|
-webkit-transition: background, 200ms;
|
||||||
-moz-transition: background, 200ms;
|
-moz-transition: background, 200ms;
|
||||||
transition: background, 200ms; }
|
transition: background, 200ms; }
|
||||||
.music-album:hover {
|
.music-album .thumbnail:hover {
|
||||||
background: #f0f0f0;
|
background: #f0f0f0;
|
||||||
cursor: pointer; }
|
cursor: pointer; }
|
||||||
.music-album:hover a {
|
.music-album .thumbnail:hover a {
|
||||||
color: #e51400; }
|
color: #e51400; }
|
||||||
.music-album.selected {
|
.music-album .thumbnail.selected {
|
||||||
background: #e0e0e0; }
|
background: #e0e0e0; }
|
||||||
.music-album.selected a {
|
.music-album .thumbnail.selected a {
|
||||||
color: #e51400; }
|
color: #e51400; }
|
||||||
|
|
||||||
.shows-header {
|
.shows-header {
|
||||||
|
@ -3,10 +3,17 @@ var player = '';
|
|||||||
$(document).ready(function() {
|
$(document).ready(function() {
|
||||||
player = $('#music-player').get(0);
|
player = $('#music-player').get(0);
|
||||||
|
|
||||||
|
// on music track click
|
||||||
$('.now-playing-list .music-track').on('click', function() {
|
$('.now-playing-list .music-track').on('click', function() {
|
||||||
// change selected track
|
// change selected track
|
||||||
changeSelectedTrack(this);
|
changeSelectedTrack(this);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
// on album art click
|
||||||
|
$('.music-album').on('click', function() {
|
||||||
|
// change selected album
|
||||||
|
changeSelectedAlbum(this);
|
||||||
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
function changeSelectedAlbum(albumElem) {
|
function changeSelectedAlbum(albumElem) {
|
||||||
|
Loading…
Reference in New Issue
Block a user