btrtracks/public/index.css
2018-10-11 13:41:38 +03:00

255 lines
4.3 KiB
CSS

* {
margin: 0;
padding: 0;
}
body {
background-color: #0d171e;
font-family: sans-serif;
color: #fff;
}
.container {
display: flex;
flex-direction: column;
flex-grow: 1;
min-height: 0;
height: 100vh;
}
#search {
color: #fff;
background-color: #152b3a;
border: 0;
padding: 10px;
font-size: 2.5em;
border-left: 10px solid #112330;
display: block;
}
.table-container {
flex-grow: 1;
overflow: auto;
overflow-x: hidden;
}
.player {
display: flex;
min-height: max-content;
flex-direction: column;
bottom: 0;
width: 100%;
background-color: #152b3a;
}
.player audio {
width: 100%;
}
.player #playing {
padding: 10px;
}
table {
table-layout: fixed;
border-spacing: 0;
border-collapse: collapse;
}
th {
text-align: left;
}
th.small {
width: 5%;
}
td {
cursor: pointer;
}
td,th {
padding: 5px;
}
tr:nth-child(even) {
background-color: #0f1b23;
}
.pages {
display: flex;
flex-direction: row;
min-height: max-content;
}
.pages .paging {
flex: 1;
text-align: center;
font-size: 3em;
}
.paging.btn {
background-color: #112635;
cursor: pointer;
}
.paging.btn.inner {
background-color: #102331;
}
.paging.bg {
background-color: #0e202c;
}
.player-controls {
display: flex;
flex-direction: row;
height: 40px;
background-color: #0c2233;
}
.player-controls .grow {
flex-grow: 1;
}
.player-controls span {
display: block;
}
.player-controls .icon {
width: 30px;
height: 30px;
cursor: pointer;
background-size: 60%;
background-repeat: no-repeat;
background-position: center;
margin: 5px;
padding: 0 5px;
}
.player-controls .timestamp {
margin-top: 0.9em;
font-size: 0.8em;
padding: 0 5px;
min-width: 8em;
text-align: center;
}
.play-btn {
background-image: url('icon/play.svg');
}
.pause-btn {
background-image: url('icon/pause.svg');
}
.mute-btn {
background-image: url('icon/volume.svg');
}
.mute1-btn {
background-image: url('icon/volume-low.svg');
}
.muted-btn {
background-image: url('icon/volume-off.svg');
}
.next-btn {
background-image: url('icon/play-next.svg');
}
.prev-btn {
background-image: url('icon/play-prev.svg');
}
.volume {
display: flex;
flex-direction: row;
}
.volume .volume-bar {
width: 5em;
}
.volume .volume-bar .seek-inner {
width: 100%;
}
.seek-container {
height: 8px;
width: 100%;
margin: 16px 5px 0 5px;
background-color: #00131b;
cursor: pointer;
}
.seek-inner {
height: 100%;
width: 0%;
background-color: #00b7ff;
}
.ctx-menu {
position: absolute;
background-color: #0c2233;
border: 2px solid #031421;
}
.ctx-menu ul {
list-style: none;
display: block;
}
.ctx-menu ul li {
display: block;
}
.ctx-item, .dropdown-content div {
padding: 10px;
cursor: pointer;
display: block;
}
.ctx-item:nth-child(even), .dropdown-content div:nth-child(even) {
background-color: #0b1f2f;
}
.ctx-item:hover, .dropdown-content div:hover {
background-color: #0c273c;
}
.inline-flex {
display: flex;
flex-direction: row;
min-height: fit-content;
}
.inline-flex input {
flex-grow: 1;
min-width: 0;
}
.queue-tag {
padding: 10px;
background-color: #007d32;
text-transform: uppercase;
font-weight: bold;
border-right: 5px solid #005c25;
}
.dropdown-button {
background-color: #112330;
position: relative;
padding: 25px 30px;
cursor: pointer;
}
.dropdown-button::after {
content: "";
background: url(icon/down-arrow.svg) no-repeat;
background-size: auto auto;
background-size: 16px;
position: absolute;
width: 16px;
height: 16px;
right: 5px;
top: 40%;
}
.dropdown-content {
display: none;
position: absolute;
background-color: #112330;
min-width: 160px;
box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
z-index: 1;
}
.dropdown-content div {
padding: 20px;
}
.dropdown:hover .dropdown-content {
display: block;
}
@media only screen and (max-width: 600px) {
tr td:nth-child(1), th:nth-child(1) {
display: none;
}
tr td:nth-child(3), th:nth-child(3) {
display: none;
}
tr td:nth-child(4), th:nth-child(4) {
display: none;
}
tr td:nth-child(5), th:nth-child(5) {
display: none;
}
tr td:nth-child(6), th:nth-child(6) {
display: none;
}
.pages .paging {
flex: 1;
text-align: center;
font-size: 1.3em;
}
.allowance {
margin-bottom: 100px !important;
}
.volume .volume-bar {
display: none;
}
}