forked from platypush/platypush
263 lines
5.9 KiB
SCSS
263 lines
5.9 KiB
SCSS
@import 'common/vars';
|
|
@import 'common/mixins';
|
|
@import 'common/layout';
|
|
@import 'webpanel/plugins/music.mpd/vars';
|
|
|
|
.music-mpd-container {
|
|
line-height: 3rem;
|
|
letter-spacing: .03rem;
|
|
overflow: hidden;
|
|
|
|
* > .item {
|
|
display: flex;
|
|
align-items: center;
|
|
cursor: pointer;
|
|
border-radius: 1rem;
|
|
padding: .5rem;
|
|
|
|
&:nth-child(odd) { background: rgba(255, 255, 255, 0.0); }
|
|
&:nth-child(even) { background: $default-bg-3; }
|
|
&:hover { background: $hover-bg !important; }
|
|
&.selected { background: $selected-bg; }
|
|
|
|
.artist {
|
|
font-size: $artist-font-size;
|
|
}
|
|
}
|
|
|
|
* > .duration {
|
|
color: $duration-color;
|
|
font-size: $duration-font-size;
|
|
}
|
|
|
|
* > button {
|
|
border: 0;
|
|
|
|
&:disabled {
|
|
background: none;
|
|
}
|
|
|
|
&.enabled {
|
|
color: $button-enabled-color;
|
|
}
|
|
|
|
&:hover {
|
|
.fa {
|
|
opacity: 0.75;
|
|
}
|
|
}
|
|
}
|
|
|
|
.panels {
|
|
display: flex;
|
|
|
|
.browser, .playlist {
|
|
height: 100vh - 16rem;
|
|
overflow: auto;
|
|
}
|
|
|
|
.browser {
|
|
background: $browser-panel-bg;
|
|
border-right: $default-border-2;
|
|
padding: .3rem 1rem 6rem 1rem;
|
|
font-size: $browser-font-size;
|
|
|
|
.item {
|
|
background: none;
|
|
&:nth-of-type(2) {
|
|
margin-top: 4.5rem;
|
|
}
|
|
}
|
|
|
|
.fa {
|
|
color: #666;
|
|
}
|
|
}
|
|
|
|
.browser,
|
|
.playlist {
|
|
position: relative; // For the dropdown menu
|
|
padding: .5rem 1rem 6rem 1rem;
|
|
|
|
.browser-controls,
|
|
.playlist-controls {
|
|
position: fixed;
|
|
height: 5rem;
|
|
background: $playlist-controls-bg;
|
|
border-bottom: $playlist-controls-border;
|
|
margin: -.5rem 0 0 -1rem;
|
|
padding: .5rem;
|
|
|
|
input[type=text] {
|
|
width: 100%;
|
|
border-radius: 5rem;
|
|
}
|
|
|
|
* > button {
|
|
border: 0;
|
|
padding: 0 1.5rem;
|
|
|
|
&:disabled {
|
|
background: none;
|
|
}
|
|
|
|
&.enabled {
|
|
color: $button-enabled-color;
|
|
}
|
|
|
|
.fa-search {
|
|
color: $button-hover-color;
|
|
}
|
|
}
|
|
|
|
button {
|
|
padding: 0 .75rem;
|
|
|
|
}
|
|
}
|
|
|
|
.spacer {
|
|
height: 5rem;
|
|
}
|
|
|
|
.empty {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
height: 100%;
|
|
font-size: 5rem;
|
|
color: $empty-playlist-color;
|
|
text-shadow: $empty-playlist-shadow;
|
|
}
|
|
|
|
.item {
|
|
&.active {
|
|
height: 4rem;
|
|
@include animation(active-track 5s infinite);
|
|
}
|
|
|
|
&:first-child {
|
|
margin-top: 4.5rem;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
.controls {
|
|
@extend .vertical-center;
|
|
position: fixed;
|
|
width: 100%;
|
|
bottom: 0;
|
|
border-top: $default-border-2;
|
|
padding: 1rem;
|
|
background: $control-panel-bg;
|
|
box-shadow: $control-panel-shadow;
|
|
z-index: 2;
|
|
|
|
.track-container {
|
|
@extend .vertical-center;
|
|
line-height: 2.6rem;
|
|
|
|
.track-info {
|
|
.artist {
|
|
font-weight: bold;
|
|
}
|
|
}
|
|
}
|
|
|
|
button {
|
|
&:hover {
|
|
.fa {
|
|
color: $button-hover-color;
|
|
}
|
|
}
|
|
}
|
|
|
|
.playback-controls {
|
|
.row {
|
|
@extend .vertical-center;
|
|
justify-content: center;
|
|
}
|
|
|
|
button {
|
|
padding: 0 1.5rem;
|
|
|
|
.fa-play, .fa-pause {
|
|
color: $button-hover-color;
|
|
font-size: $font-size * 2;
|
|
margin-top: .3rem;
|
|
|
|
&:hover {
|
|
color: $play-button-hover-color;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
.pull-right {
|
|
padding-right: 2.5rem;
|
|
button {
|
|
&:not(last-child) {
|
|
padding: 0 .7rem;
|
|
}
|
|
|
|
&:last-child {
|
|
padding: 0;
|
|
}
|
|
}
|
|
|
|
.volume-container {
|
|
button {
|
|
padding: 0 .3rem 0 0;
|
|
background: none;
|
|
}
|
|
}
|
|
}
|
|
|
|
* > .seek-slider {
|
|
width: 75%;
|
|
}
|
|
|
|
* > .volume-slider {
|
|
width: 75%;
|
|
margin-right: 1rem;
|
|
}
|
|
|
|
* > .elapsed-time,
|
|
* > .total-time {
|
|
font-size: $control-time-font-size;
|
|
color: $control-time-color;
|
|
}
|
|
|
|
* > .elapsed-time {
|
|
margin-right: 1.5rem;
|
|
}
|
|
|
|
* > .total-time {
|
|
margin-left: 1.5rem;
|
|
}
|
|
}
|
|
}
|
|
|
|
#music-mpd-playlist-dropdown {
|
|
width: 20rem;
|
|
}
|
|
|
|
@keyframes active-track {
|
|
0% { background: $active-track-bg-1; }
|
|
50% { background: $active-track-bg-2; }
|
|
100% { background: $active-track-bg-1; }
|
|
}
|
|
|
|
@-moz-keyframes active-track {
|
|
0% { background: $active-track-bg-1; }
|
|
50% { background: $active-track-bg-2; }
|
|
100% { background: $active-track-bg-1; }
|
|
}
|
|
|
|
@-webkit-keyframes active-track {
|
|
0% { background: $active-track-bg-1; }
|
|
50% { background: $active-track-bg-2; }
|
|
100% { background: $active-track-bg-1; }
|
|
}
|