cyp/app/app.css

312 lines
5.1 KiB
CSS

*,
*::before,
*::after {
box-sizing: inherit;
}
html {
background-color: #fff;
}
body {
box-sizing: border-box;
font-family: lato, sans-serif;
line-height: 1;
background-color: #333;
color: #fff;
text-shadow: 0 1px 1px #000;
max-width: 800px;
margin: 0 auto;
overflow: hidden;
display: flex;
flex-direction: column;
height: 100vh;
}
body > header,
body > footer {
box-shadow: 0 0 3px #000;
}
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;
}
@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;
}
.icon {
vertical-align: middle;
width: 24px;
}
.icon path:not([fill]),
.icon polygon:not([fill]),
.icon circle:not([fill]) {
fill: currentColor;
}
main {
flex-grow: 1;
overflow: hidden;
}
nav ul {
margin: 0;
padding: 0;
list-style: none;
display: flex;
flex-direction: row;
}
nav ul li {
text-align: center;
flex: 1 0 0;
line-height: 40px;
cursor: pointer;
border-top: 4px solid transparent;
border-bottom: 4px solid transparent;
}
nav ul li.active {
border-top-color: dodgerblue;
}
#player {
display: flex;
flex-direction: row;
}
#player .art img {
vertical-align: top;
}
#player .info {
flex-grow: 1;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
#player:not([data-state=play]) .pause {
display: none;
}
#player[data-state=play] .play {
display: none;
}
#player:not([data-flags~=random]) .random,
#player:not([data-flags~=repeat]) .repeat {
opacity: 0.5;
}
#player .icon {
width: 64px;
}
#player .misc {
display: flex;
flex-direction: column;
width: 48px;
}
#player .misc .icon {
width: 48px;
}
.component {
height: 100%;
display: flex;
flex-direction: column;
}
.component ul {
flex-grow: 1;
overflow: auto;
list-style: none;
margin: 0;
padding: 0;
}
.component .grid li {
display: flex;
flex-direction: row;
align-items: center;
padding: 0 4px;
white-space: nowrap;
}
.component .grid li h2 {
flex-grow: 1;
font-size: 100%;
font-weight: normal;
margin: 0;
overflow: hidden;
text-overflow: ellipsis;
}
.component .grid li button {
flex-shrink: 0;
}
@media (pointer: coarse) {
.component .grid li button .icon {
width: 32px;
}
}
.component .grid li:nth-child(odd) {
background-color: #555;
}
#queue {
height: 100%;
display: flex;
flex-direction: column;
}
#queue ul {
flex-grow: 1;
overflow: auto;
list-style: none;
margin: 0;
padding: 0;
}
#queue .grid li {
display: flex;
flex-direction: row;
align-items: center;
padding: 0 4px;
white-space: nowrap;
}
#queue .grid li h2 {
flex-grow: 1;
font-size: 100%;
font-weight: normal;
margin: 0;
overflow: hidden;
text-overflow: ellipsis;
}
#queue .grid li button {
flex-shrink: 0;
}
@media (pointer: coarse) {
#queue .grid li button .icon {
width: 32px;
}
}
#queue .grid li:nth-child(odd) {
background-color: #555;
}
#queue .current {
font-weight: bold;
}
#library {
height: 100%;
display: flex;
flex-direction: column;
}
#library ul {
flex-grow: 1;
overflow: auto;
list-style: none;
margin: 0;
padding: 0;
}
#library .grid li {
display: flex;
flex-direction: row;
align-items: center;
padding: 0 4px;
white-space: nowrap;
}
#library .grid li h2 {
flex-grow: 1;
font-size: 100%;
font-weight: normal;
margin: 0;
overflow: hidden;
text-overflow: ellipsis;
}
#library .grid li button {
flex-shrink: 0;
}
@media (pointer: coarse) {
#library .grid li button .icon {
width: 32px;
}
}
#library .grid li:nth-child(odd) {
background-color: #555;
}
#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;
align-items: center;
padding: 0 4px;
white-space: nowrap;
}
#fs .grid li h2 {
flex-grow: 1;
font-size: 100%;
font-weight: normal;
margin: 0;
overflow: hidden;
text-overflow: ellipsis;
}
#fs .grid li button {
flex-shrink: 0;
}
@media (pointer: coarse) {
#fs .grid li button .icon {
width: 32px;
}
}
#fs .grid li:nth-child(odd) {
background-color: #555;
}
#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;
white-space: nowrap;
}
#playlists .grid li h2 {
flex-grow: 1;
font-size: 100%;
font-weight: normal;
margin: 0;
overflow: hidden;
text-overflow: ellipsis;
}
#playlists .grid li button {
flex-shrink: 0;
}
@media (pointer: coarse) {
#playlists .grid li button .icon {
width: 32px;
}
}
#playlists .grid li:nth-child(odd) {
background-color: #555;
}