Skip to content
This repository has been archived by the owner on Mar 30, 2021. It is now read-only.

Commit

Permalink
Fix some styles related to 5-star ratings (fixes #63)
Browse files Browse the repository at this point in the history
After 1.1.0, look into fully supporting the stars rating system.
  • Loading branch information
kbhomes committed Mar 8, 2014
1 parent adc0944 commit 235a11b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
4 changes: 4 additions & 0 deletions google-music-mac/css/cocoa.css
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,10 @@
margin-top: 8px;
}

.song-row .rating-container.stars {
height: auto !important;
}

.song-row .rating-container.thumbs [data-rating] {
margin-top: 0px;
}
Expand Down
6 changes: 3 additions & 3 deletions google-music-mac/js/styles.js
Original file line number Diff line number Diff line change
Expand Up @@ -73,10 +73,10 @@ if (typeof window.Styles === 'undefined') {
var thumbsDownPosition = thumbsDownBackX + 'px ' + thumbsDownBackY + 'px';

window.Styles.applyStyle('thumbsUpDown',
'.song-row [data-col="rating"][data-rating="5"] { background-position: ' + thumbsUpPosition + ' !important; } ' +
'.song-row [data-col="rating"][data-rating="5"]:not(.stars) { background-position: ' + thumbsUpPosition + ' !important; } ' +

'.song-row [data-col="rating"][data-rating="1"], ' +
'.song-row [data-col="rating"][data-rating="2"] { background-position: ' + thumbsDownPosition + ' !important; } '
'.song-row [data-col="rating"][data-rating="1"]:not(.stars), ' +
'.song-row [data-col="rating"][data-rating="2"]:not(.stars) { background-position: ' + thumbsDownPosition + ' !important; } '
);
})();
}

0 comments on commit 235a11b

Please sign in to comment.