btrtracks/public/index.css
2019-02-07 20:13:22 +02:00

376 lines
6.8 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;
cursor: pointer;
}
th .order {
width: 12px;
height: 12px;
display: inline-block;
background-image: url(icon/drop-up-arrow.svg);
background-repeat: no-repeat;
background-size: 16px;
background-position: center;
margin-left: 10px;
}
th .order.dn {
background-image: url(icon/drop-down-arrow.svg);
}
th.small {
width: 5%;
}
td {
cursor: pointer;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
td:hover {
white-space: initial;
}
td,th {
padding: 5px;
}
tr:nth-child(even) {
background-color: #0f1b23;
}
tr.external td {
background-color: rgba(0, 255, 233, 0.25);
}
.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;
position: relative;
}
.inline-flex input {
flex-grow: 1;
min-width: 0;
}
#search-clear {
display: none;
}
.btn-clear {
cursor: pointer;
position: absolute;
right: 10px;
top: 12px;
bottom: 12px;
font-size: 2em;
opacity: 0.5;
padding: 0 10px;
background: url(icon/clear-button.svg) no-repeat;
background-size: 16px;
background-position: center;
}
.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;
}
.playing-bar {
display: flex;
flex: 1;
position: relative;
}
.playing-bar span {
z-index: 10;
}
canvas#visualizer {
position: absolute;
display: block;
opacity: 0.4;
z-index: 9;
bottom: 0;
}
.sidebar.active.background {
pointer-events: initial;
}
.sidebar.active .drop {
opacity: 0.5;
}
.sidebar.active .bar {
max-width: 340px;
}
.sidebar.background {
position: absolute;
top: 0;
bottom: 0;
left: 0;
right: 0;
width: 100%;
height: 100%;
pointer-events: none;
}
.sidebar.sb-abs {
position: absolute;
width: 100%;
height: 100%;
}
.sidebar.drop {
background-color: #060606;
z-index: 11;
opacity: 0;
transition: opacity 0.2s ease-out;
}
.sidebar.bar {
z-index: 12;
max-width: 0px;
background-color: rgba(17, 35, 48, 0.9);
overflow-x: hidden;
transition: max-width 0.2s linear;
}
.sidebar.bar h2 {
padding: 18px;
}
.sidebar.content {
width: 340px;
}
.sidebar .option {
padding: 10px;
display: flex;
}
.sidebar .separator {
font-weight: bold;
padding: 10px;
border-bottom: 2px solid #004561;
font-size: 1.2em;
}
.sidebar .option.checkbox, .sidebar .option.action {
flex-direction: row;
}
.sidebar .option.action button {
flex-grow: 1;
margin: 10px;
}
.sidebar .option label {
flex-grow: 1;
}
.sidebar .option.checkbox input {
margin: 4px 10px;
}
@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;
}
}