cyp/app/app.css

95 lines
1.4 KiB
CSS
Raw Normal View History

2019-03-20 05:56:39 +08:00
body {
margin: 0;
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-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;
flex-grow: 1;
line-height: 40px;
}
2019-03-21 17:32:58 +08:00
nav ul li:hover {
2019-03-20 05:56:39 +08:00
background-color: red;
}
2019-03-22 22:35:04 +08:00
nav ul li.active {
background-color: green;
}
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-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-25 22:49:23 +08:00
.component {
height: 100%;
display: flex;
flex-direction: column;
}
#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;
}
#queue li {
display: flex;
flex-direction: row;
}
#queue li + li {
border-top: 1px solid #888;
}
#queue .info {
flex-grow: 1;
}
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;
}