Phyks (Lucas Verney)
fffe9c4cd3
Major code review, cleaning the code and adding a lot of comments. Also implements a separate store to keep entities with a reference count and garbage collection. This closes #15. Known issues at the moment are: * Webplayer is no longer working, it has to be refactored. * AlbumPage is to be implemented.
61 lines
964 B
SCSS
61 lines
964 B
SCSS
/**
|
|
* Album component style.
|
|
*/
|
|
|
|
/** Variables */
|
|
$rowMarginTop: 30px;
|
|
$rowMarginBottom: 10px;
|
|
$artMarginBottom: 10px;
|
|
|
|
/* Style for an album row */
|
|
.row {
|
|
margin-top: $rowMarginTop;
|
|
}
|
|
|
|
/* Style for album arts */
|
|
.art {
|
|
display: inline-block;
|
|
margin-bottom: $artMarginBottom;
|
|
width: 75%;
|
|
height: auto;
|
|
|
|
/* doiuse-disable viewport-units */
|
|
|
|
max-width: 25vw;
|
|
|
|
/* doiuse-enable viewport-units */
|
|
}
|
|
|
|
.art:hover {
|
|
transform: scale(1.1);
|
|
}
|
|
|
|
/* Play button is based on the one in Songs list. */
|
|
.play {
|
|
composes: play from "./Songs.scss";
|
|
}
|
|
|
|
@media (max-width: 767px) {
|
|
.nameRow h2 {
|
|
margin-top: 0;
|
|
margin-bottom: 0;
|
|
}
|
|
|
|
.artRow p,
|
|
.artRow img {
|
|
margin: 0;
|
|
}
|
|
|
|
.nameRow,
|
|
.artRow {
|
|
float: none;
|
|
display: inline-block;
|
|
vertical-align: middle;
|
|
margin-bottom: $rowMarginBottom;
|
|
}
|
|
|
|
.songs {
|
|
composes: songs from "./Songs.scss";
|
|
}
|
|
}
|