2019-03-27 00:07:52 +08:00
|
|
|
*,
|
|
|
|
*::before,
|
|
|
|
*::after {
|
|
|
|
box-sizing: inherit;
|
|
|
|
}
|
2019-03-26 19:35:47 +08:00
|
|
|
html {
|
|
|
|
background-color: #fff;
|
|
|
|
}
|
2019-03-20 05:56:39 +08:00
|
|
|
body {
|
2019-03-27 00:07:52 +08:00
|
|
|
box-sizing: border-box;
|
2019-03-26 22:40:23 +08:00
|
|
|
font-family: lato, sans-serif;
|
2019-03-29 03:28:55 +08:00
|
|
|
line-height: 1;
|
2019-03-26 22:40:23 +08:00
|
|
|
background-color: #333;
|
2019-03-26 19:35:47 +08:00
|
|
|
color: #fff;
|
|
|
|
text-shadow: 0 1px 1px #000;
|
2019-03-26 17:09:26 +08:00
|
|
|
max-width: 800px;
|
|
|
|
margin: 0 auto;
|
|
|
|
overflow: hidden;
|
2019-03-20 05:56:39 +08:00
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
|
|
|
height: 100vh;
|
|
|
|
}
|
2019-03-25 22:49:23 +08:00
|
|
|
body > header,
|
|
|
|
body > footer {
|
2019-03-22 23:17:10 +08:00
|
|
|
box-shadow: 0 0 3px #000;
|
|
|
|
}
|
2019-03-26 22:40:23 +08:00
|
|
|
input,
|
|
|
|
select,
|
|
|
|
button {
|
|
|
|
color: inherit;
|
|
|
|
}
|
|
|
|
button {
|
|
|
|
-webkit-appearance: none;
|
|
|
|
-moz-appearance: none;
|
|
|
|
appearance: none;
|
|
|
|
background-color: transparent;
|
|
|
|
padding: 0;
|
|
|
|
border: none;
|
|
|
|
line-height: 1;
|
|
|
|
cursor: pointer;
|
|
|
|
}
|
2019-03-26 19:35:47 +08:00
|
|
|
@font-face {
|
|
|
|
font-family: 'Lato';
|
|
|
|
src: url('font/LatoLatin-Regular.woff2') format('woff2');
|
|
|
|
font-style: normal;
|
|
|
|
font-weight: normal;
|
|
|
|
}
|
|
|
|
@font-face {
|
|
|
|
font-family: 'Lato';
|
|
|
|
src: url('font/LatoLatin-bold.woff2') format('woff2');
|
|
|
|
font-style: bold;
|
|
|
|
font-weight: normal;
|
|
|
|
}
|
2019-03-28 22:23:28 +08:00
|
|
|
.icon {
|
|
|
|
vertical-align: middle;
|
|
|
|
width: 24px;
|
|
|
|
}
|
|
|
|
.icon path:not([fill]),
|
|
|
|
.icon polygon:not([fill]),
|
|
|
|
.icon circle:not([fill]) {
|
|
|
|
fill: currentColor;
|
|
|
|
}
|
2019-03-21 17:32:58 +08:00
|
|
|
main {
|
|
|
|
flex-grow: 1;
|
2019-03-25 22:49:23 +08:00
|
|
|
overflow: hidden;
|
2019-03-21 17:32:58 +08:00
|
|
|
}
|
|
|
|
nav ul {
|
2019-03-20 05:56:39 +08:00
|
|
|
margin: 0;
|
|
|
|
padding: 0;
|
|
|
|
list-style: none;
|
|
|
|
display: flex;
|
|
|
|
flex-direction: row;
|
|
|
|
}
|
2019-03-21 17:32:58 +08:00
|
|
|
nav ul li {
|
2019-03-20 05:56:39 +08:00
|
|
|
text-align: center;
|
2019-03-26 19:35:47 +08:00
|
|
|
flex: 1 0 0;
|
2019-03-20 05:56:39 +08:00
|
|
|
line-height: 40px;
|
2019-03-29 03:28:55 +08:00
|
|
|
cursor: pointer;
|
|
|
|
border-top: 4px solid transparent;
|
|
|
|
border-bottom: 4px solid transparent;
|
2019-03-20 05:56:39 +08:00
|
|
|
}
|
2019-03-22 22:35:04 +08:00
|
|
|
nav ul li.active {
|
2019-03-29 03:28:55 +08:00
|
|
|
border-top-color: dodgerblue;
|
2019-03-22 22:35:04 +08:00
|
|
|
}
|
2019-03-22 23:17:10 +08:00
|
|
|
#player {
|
|
|
|
display: flex;
|
|
|
|
flex-direction: row;
|
|
|
|
}
|
|
|
|
#player .art img {
|
|
|
|
vertical-align: top;
|
|
|
|
}
|
|
|
|
#player .info {
|
|
|
|
flex-grow: 1;
|
2019-03-28 22:23:28 +08:00
|
|
|
white-space: nowrap;
|
|
|
|
overflow: hidden;
|
|
|
|
text-overflow: ellipsis;
|
2019-03-22 23:17:10 +08:00
|
|
|
}
|
2019-03-21 17:32:58 +08:00
|
|
|
#player:not([data-state=play]) .pause {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
#player[data-state=play] .play {
|
|
|
|
display: none;
|
2019-03-20 05:56:39 +08:00
|
|
|
}
|
2019-03-22 22:35:04 +08:00
|
|
|
#player:not([data-flags~=random]) .random,
|
|
|
|
#player:not([data-flags~=repeat]) .repeat {
|
2019-03-21 17:32:58 +08:00
|
|
|
opacity: 0.5;
|
2019-03-20 05:56:39 +08:00
|
|
|
}
|
2019-03-27 00:07:52 +08:00
|
|
|
#player .icon {
|
2019-03-26 22:40:23 +08:00
|
|
|
width: 64px;
|
2019-03-27 00:07:52 +08:00
|
|
|
}
|
|
|
|
#player .misc {
|
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
|
|
|
width: 48px;
|
|
|
|
}
|
|
|
|
#player .misc .icon {
|
|
|
|
width: 48px;
|
2019-03-26 22:40:23 +08:00
|
|
|
}
|
2019-03-25 22:49:23 +08:00
|
|
|
.component {
|
|
|
|
height: 100%;
|
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
|
|
|
}
|
2019-03-26 19:35:47 +08:00
|
|
|
.component ul {
|
|
|
|
flex-grow: 1;
|
|
|
|
overflow: auto;
|
|
|
|
list-style: none;
|
|
|
|
margin: 0;
|
|
|
|
padding: 0;
|
|
|
|
}
|
|
|
|
.component .grid li {
|
|
|
|
display: flex;
|
|
|
|
flex-direction: row;
|
2019-03-26 22:40:23 +08:00
|
|
|
align-items: center;
|
2019-03-28 22:23:28 +08:00
|
|
|
padding: 0 4px;
|
2019-03-29 03:28:55 +08:00
|
|
|
white-space: nowrap;
|
2019-03-26 19:35:47 +08:00
|
|
|
}
|
|
|
|
.component .grid li h2 {
|
|
|
|
flex-grow: 1;
|
2019-03-26 22:40:23 +08:00
|
|
|
font-size: 100%;
|
|
|
|
font-weight: normal;
|
2019-03-26 19:35:47 +08:00
|
|
|
margin: 0;
|
|
|
|
overflow: hidden;
|
|
|
|
text-overflow: ellipsis;
|
|
|
|
}
|
2019-03-28 22:23:28 +08:00
|
|
|
.component .grid li button {
|
|
|
|
flex-shrink: 0;
|
|
|
|
}
|
|
|
|
@media (pointer: coarse) {
|
|
|
|
.component .grid li button .icon {
|
|
|
|
width: 32px;
|
|
|
|
}
|
|
|
|
}
|
2019-03-26 19:35:47 +08:00
|
|
|
.component .grid li:nth-child(odd) {
|
2019-03-26 22:40:23 +08:00
|
|
|
background-color: #555;
|
|
|
|
}
|
2019-03-25 22:49:23 +08:00
|
|
|
#queue {
|
|
|
|
height: 100%;
|
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
|
|
|
}
|
2019-03-22 23:17:10 +08:00
|
|
|
#queue ul {
|
2019-03-25 22:49:23 +08:00
|
|
|
flex-grow: 1;
|
|
|
|
overflow: auto;
|
2019-03-22 23:17:10 +08:00
|
|
|
list-style: none;
|
|
|
|
margin: 0;
|
|
|
|
padding: 0;
|
|
|
|
}
|
2019-03-26 19:35:47 +08:00
|
|
|
#queue .grid li {
|
|
|
|
display: flex;
|
|
|
|
flex-direction: row;
|
2019-03-26 22:40:23 +08:00
|
|
|
align-items: center;
|
2019-03-28 22:23:28 +08:00
|
|
|
padding: 0 4px;
|
2019-03-29 03:28:55 +08:00
|
|
|
white-space: nowrap;
|
2019-03-26 19:35:47 +08:00
|
|
|
}
|
|
|
|
#queue .grid li h2 {
|
|
|
|
flex-grow: 1;
|
2019-03-26 22:40:23 +08:00
|
|
|
font-size: 100%;
|
|
|
|
font-weight: normal;
|
2019-03-26 19:35:47 +08:00
|
|
|
margin: 0;
|
|
|
|
overflow: hidden;
|
|
|
|
text-overflow: ellipsis;
|
|
|
|
}
|
2019-03-28 22:23:28 +08:00
|
|
|
#queue .grid li button {
|
|
|
|
flex-shrink: 0;
|
|
|
|
}
|
|
|
|
@media (pointer: coarse) {
|
|
|
|
#queue .grid li button .icon {
|
|
|
|
width: 32px;
|
|
|
|
}
|
|
|
|
}
|
2019-03-26 19:35:47 +08:00
|
|
|
#queue .grid li:nth-child(odd) {
|
2019-03-26 22:40:23 +08:00
|
|
|
background-color: #555;
|
|
|
|
}
|
2019-03-22 22:35:04 +08:00
|
|
|
#queue .current {
|
|
|
|
font-weight: bold;
|
|
|
|
}
|
2019-03-25 22:49:23 +08:00
|
|
|
#library {
|
|
|
|
height: 100%;
|
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
|
|
|
}
|
|
|
|
#library ul {
|
|
|
|
flex-grow: 1;
|
|
|
|
overflow: auto;
|
|
|
|
list-style: none;
|
|
|
|
margin: 0;
|
|
|
|
padding: 0;
|
|
|
|
}
|
2019-03-26 19:35:47 +08:00
|
|
|
#library .grid li {
|
|
|
|
display: flex;
|
|
|
|
flex-direction: row;
|
2019-03-26 22:40:23 +08:00
|
|
|
align-items: center;
|
2019-03-28 22:23:28 +08:00
|
|
|
padding: 0 4px;
|
2019-03-29 03:28:55 +08:00
|
|
|
white-space: nowrap;
|
2019-03-26 19:35:47 +08:00
|
|
|
}
|
|
|
|
#library .grid li h2 {
|
|
|
|
flex-grow: 1;
|
2019-03-26 22:40:23 +08:00
|
|
|
font-size: 100%;
|
|
|
|
font-weight: normal;
|
2019-03-26 19:35:47 +08:00
|
|
|
margin: 0;
|
|
|
|
overflow: hidden;
|
|
|
|
text-overflow: ellipsis;
|
|
|
|
}
|
2019-03-28 22:23:28 +08:00
|
|
|
#library .grid li button {
|
|
|
|
flex-shrink: 0;
|
|
|
|
}
|
|
|
|
@media (pointer: coarse) {
|
|
|
|
#library .grid li button .icon {
|
|
|
|
width: 32px;
|
|
|
|
}
|
|
|
|
}
|
2019-03-26 19:35:47 +08:00
|
|
|
#library .grid li:nth-child(odd) {
|
2019-03-26 22:40:23 +08:00
|
|
|
background-color: #555;
|
|
|
|
}
|
2019-03-26 19:35:47 +08:00
|
|
|
#fs {
|
|
|
|
height: 100%;
|
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
|
|
|
}
|
|
|
|
#fs ul {
|
|
|
|
flex-grow: 1;
|
|
|
|
overflow: auto;
|
|
|
|
list-style: none;
|
|
|
|
margin: 0;
|
|
|
|
padding: 0;
|
|
|
|
}
|
|
|
|
#fs .grid li {
|
|
|
|
display: flex;
|
|
|
|
flex-direction: row;
|
2019-03-26 22:40:23 +08:00
|
|
|
align-items: center;
|
2019-03-28 22:23:28 +08:00
|
|
|
padding: 0 4px;
|
2019-03-29 03:28:55 +08:00
|
|
|
white-space: nowrap;
|
2019-03-26 19:35:47 +08:00
|
|
|
}
|
|
|
|
#fs .grid li h2 {
|
|
|
|
flex-grow: 1;
|
2019-03-26 22:40:23 +08:00
|
|
|
font-size: 100%;
|
|
|
|
font-weight: normal;
|
2019-03-26 19:35:47 +08:00
|
|
|
margin: 0;
|
|
|
|
overflow: hidden;
|
|
|
|
text-overflow: ellipsis;
|
|
|
|
}
|
2019-03-28 22:23:28 +08:00
|
|
|
#fs .grid li button {
|
|
|
|
flex-shrink: 0;
|
|
|
|
}
|
|
|
|
@media (pointer: coarse) {
|
|
|
|
#fs .grid li button .icon {
|
|
|
|
width: 32px;
|
|
|
|
}
|
|
|
|
}
|
2019-03-26 19:35:47 +08:00
|
|
|
#fs .grid li:nth-child(odd) {
|
2019-03-26 22:40:23 +08:00
|
|
|
background-color: #555;
|
|
|
|
}
|
2019-03-28 22:23:28 +08:00
|
|
|
#playlists {
|
|
|
|
height: 100%;
|
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
|
|
|
}
|
|
|
|
#playlists ul {
|
|
|
|
flex-grow: 1;
|
|
|
|
overflow: auto;
|
|
|
|
list-style: none;
|
|
|
|
margin: 0;
|
|
|
|
padding: 0;
|
|
|
|
}
|
|
|
|
#playlists .grid li {
|
|
|
|
display: flex;
|
|
|
|
flex-direction: row;
|
|
|
|
align-items: center;
|
|
|
|
padding: 0 4px;
|
2019-03-29 03:28:55 +08:00
|
|
|
white-space: nowrap;
|
2019-03-28 22:23:28 +08:00
|
|
|
}
|
|
|
|
#playlists .grid li h2 {
|
|
|
|
flex-grow: 1;
|
|
|
|
font-size: 100%;
|
|
|
|
font-weight: normal;
|
|
|
|
margin: 0;
|
|
|
|
overflow: hidden;
|
|
|
|
text-overflow: ellipsis;
|
|
|
|
}
|
|
|
|
#playlists .grid li button {
|
2019-03-26 22:40:23 +08:00
|
|
|
flex-shrink: 0;
|
2019-03-26 19:35:47 +08:00
|
|
|
}
|
2019-03-28 22:23:28 +08:00
|
|
|
@media (pointer: coarse) {
|
|
|
|
#playlists .grid li button .icon {
|
|
|
|
width: 32px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
#playlists .grid li:nth-child(odd) {
|
|
|
|
background-color: #555;
|
|
|
|
}
|