cyp/app/css/player.less
2019-04-16 08:40:16 +02:00

93 lines
1.4 KiB
Plaintext

#player {
@art-size: 96px;
.flex-row;
align-items: stretch;
&:not([data-state=play]) .pause { display: none; }
&[data-state=play] .play { display: none; }
&:not([data-flags~=random]) .random, &:not([data-flags~=repeat]) .repeat { opacity: 0.5; }
[type=range] {
margin: 0;
width: 0; // fails to shrink otherwise
flex-grow: 1;
}
.art {
margin-right: 0;
height: @art-size;
img, .icon {
width: @art-size;
}
}
.info {
flex-grow: 2;
flex-basis: 0;
padding: 0 var(--icon-spacing);
overflow: hidden;
.flex-column;
justify-content: space-around;
h2 {
font-size: 125%;
margin: 0;
}
.title, .subtitle { .long-line; }
}
.timeline {
.flex-row;
.duration, .elapsed {
flex-basis: 5ch;
text-align: center;
}
}
.controls {
flex-grow: 1;
flex-basis: 0;
max-width: 220px;
.flex-column;
justify-content: space-around;
.playback {
.flex-row;
justify-content: space-around;
.icon { width: 40px; }
.icon-play, .icon-pause { width: 64px; }
}
.volume {
.flex-row;
.mute { margin-right: 4px; }
}
}
.misc {
display: flex;
flex-direction: column;
align-self: stretch;
justify-content: space-around;
.icon { width: 32px; }
}
@media (max-width: 519px) {
flex-wrap: wrap;
justify-content: space-between;
.info {
order: 1;
flex-basis: 100%;
height: @art-size;
}
}
}