Complete refactoring for rktplayer, in order to make it play on DLNA renderers and also use UpNP media server resources.
This commit is contained in:
@@ -0,0 +1,432 @@
|
||||
body {
|
||||
font-family: Arial;
|
||||
font-size: 11pt;
|
||||
background: #202020;
|
||||
color: #ffffff;
|
||||
}
|
||||
|
||||
.pane {
|
||||
height: calc(100vh - 2em - 20px);
|
||||
width: calc(100% - 10px);
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
padding: 3px;
|
||||
}
|
||||
|
||||
hr {
|
||||
border: none;
|
||||
border-top: 1px solid #909090;
|
||||
margin: 5px 0;
|
||||
}
|
||||
|
||||
.file-box {
|
||||
display: inline-block;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.file-box span {
|
||||
display: inline-block;
|
||||
width: calc(70% - 5px);
|
||||
}
|
||||
|
||||
.file-box button {
|
||||
display: inline-block;
|
||||
width: calc(30% - 5px);
|
||||
}
|
||||
|
||||
.keyval {
|
||||
width: 100%;
|
||||
padding-bottom: 5px;
|
||||
}
|
||||
|
||||
.keyval label {
|
||||
display: inline-block;
|
||||
width: calc(30% - 5px);
|
||||
}
|
||||
|
||||
.keyval span, .keyval input, .keyval select,
|
||||
.keyval textarea, .keyval .file-box {
|
||||
display: inline-block;
|
||||
width: calc(70% - 10px);
|
||||
}
|
||||
|
||||
.button-box {
|
||||
border-top: 1px solid #909090;
|
||||
width: 100%;
|
||||
padding-top: 5px;
|
||||
}
|
||||
|
||||
.buttons {
|
||||
height: 40px;
|
||||
width: 100%;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
border: 1px solid #505050;
|
||||
margin-bottom: 5px;
|
||||
}
|
||||
|
||||
button {
|
||||
background: #e0e0e0;
|
||||
border: none;
|
||||
border-left: 1px solid #505050;
|
||||
border-right: 1px solid #505050;
|
||||
}
|
||||
|
||||
button:hover, button.devtools:hover {
|
||||
background: #909090;
|
||||
transition: all 0.5s ease-in;
|
||||
}
|
||||
|
||||
button.devtools {
|
||||
background: black;
|
||||
}
|
||||
|
||||
button.command {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
width: 40px;
|
||||
height: 40px;
|
||||
}
|
||||
|
||||
button.command img {
|
||||
height: 32px;
|
||||
width: 32px;
|
||||
margin: 0;
|
||||
padding: 2px;
|
||||
}
|
||||
|
||||
input.h-slider {
|
||||
flex-grow: 1;
|
||||
}
|
||||
|
||||
.buttons .text-block {
|
||||
height: 100%;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
/*width: 4em;*/
|
||||
border-left: 1px solid #505050;
|
||||
}
|
||||
|
||||
.buttons span.time, .buttons span.totaltime {
|
||||
font-weight: bold;
|
||||
text-align: center;
|
||||
padding-left: 0.5em;
|
||||
padding-right: 0.5em;
|
||||
}
|
||||
|
||||
.hpane {
|
||||
height: calc(100% - 40px - 2.5em);
|
||||
width: 100%;
|
||||
display: flex;
|
||||
}
|
||||
|
||||
.music-info {
|
||||
border: 1px solid #505050;
|
||||
width: 30%;
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
.music-library {
|
||||
border-bottom: 1px solid #505050;
|
||||
width: 100%;
|
||||
height: 50%;
|
||||
}
|
||||
|
||||
.album-art {
|
||||
width: 100%;
|
||||
height: 50%;
|
||||
padding: 5px;
|
||||
}
|
||||
|
||||
.music-playing {
|
||||
border: 1px solid #505050;
|
||||
border-left: none;
|
||||
width: 70%;
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
.tabs {
|
||||
width: 100%;
|
||||
height: 1.5em;
|
||||
border-bottom: 1px solid #505050;
|
||||
}
|
||||
|
||||
.tabs span.tab {
|
||||
width: 50px;
|
||||
overflow: hide;
|
||||
text-overflow: hide;
|
||||
white-space: nowrap;
|
||||
border: 1px solid #505050;
|
||||
cursor: default;
|
||||
padding-left: 5px;
|
||||
padding-right: 5px;
|
||||
border-bottom: none;
|
||||
}
|
||||
|
||||
.tabs span.tab.current {
|
||||
font-weight: bold;
|
||||
color: #f3961e;
|
||||
}
|
||||
|
||||
.tabs span.tab:hover {
|
||||
background: #e0e0e0;
|
||||
color: black;
|
||||
transition: all 0.5s ease-in;
|
||||
}
|
||||
|
||||
.content {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.music-playing .content {
|
||||
height: calc(100% - 1.5em);
|
||||
}
|
||||
|
||||
.scrolly {
|
||||
overflow-y: auto;
|
||||
}
|
||||
|
||||
table.music-library {
|
||||
padding: 5px;
|
||||
}
|
||||
|
||||
table.music-library tr td {
|
||||
/*border-bottom: 1px solid #f0f0f0;*/
|
||||
cursor: default;
|
||||
height: 1.1em;
|
||||
width: 100%;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
user-select: none;
|
||||
}
|
||||
|
||||
table.music-library tr td:hover {
|
||||
background: #e0e0e0;
|
||||
color: black;
|
||||
transition: all 0.5s ease-in;
|
||||
}
|
||||
|
||||
.popup-menu, .popup-submenu {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
margin: 5px;
|
||||
padding: 5px;
|
||||
position: absolute;
|
||||
z-index: 9999;
|
||||
border: 1px solid black;
|
||||
background: #e0e0e0;
|
||||
color: black;
|
||||
}
|
||||
|
||||
.popup-submenu {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.menubar .menu-item span.menu-icon, .popup-menu .menu-item span.menu-icon {
|
||||
min-width: unset;
|
||||
width: unset;
|
||||
}
|
||||
|
||||
.menubar .menu-item {
|
||||
min-width: unset;
|
||||
width: unset;
|
||||
color: black;
|
||||
}
|
||||
|
||||
input[type="range"] {
|
||||
accent-color: #c97101;
|
||||
}
|
||||
|
||||
.menu-item span.menu-name {
|
||||
text-wrap: nowrap;
|
||||
}
|
||||
|
||||
table.tracks {
|
||||
width: 98%;
|
||||
}
|
||||
|
||||
table.tracks td {
|
||||
text-overflow: ellipsis;
|
||||
overflow: hidden;
|
||||
white-space: nowrap;
|
||||
padding-left: 5px;
|
||||
}
|
||||
|
||||
table.tracks td.number {
|
||||
text-align: right;
|
||||
width: 40px;
|
||||
}
|
||||
|
||||
table.tracks td.length {
|
||||
width: 30px;
|
||||
}
|
||||
|
||||
table.tracks td.title, table.tracks td.album {
|
||||
width: calc(50% - 70px);
|
||||
max-width: 200px;
|
||||
|
||||
}
|
||||
|
||||
table.tracks tr, table.tracks td,
|
||||
table.libraries tr, table.libraries td,
|
||||
table.renderers tr, table.renderers td {
|
||||
cursor: default;
|
||||
user-select: none;
|
||||
}
|
||||
|
||||
table.tracks tr:hover, table.libraries tbody tr:hover,
|
||||
table.renderers tbody tr:hover {
|
||||
background: #e0e0e0;
|
||||
color: black;
|
||||
transition: all 0.5s ease-in;
|
||||
}
|
||||
|
||||
table.tracks tr:hover.current,
|
||||
table.libraries tbody tr:hover.current
|
||||
{
|
||||
color: #955c12;
|
||||
}
|
||||
|
||||
table.tracks tr.current,
|
||||
table.libraries tbody tr.current {
|
||||
font-weight: bold;
|
||||
color: #f3961e;
|
||||
}
|
||||
|
||||
table.tracks tr.unavailable {
|
||||
color: #777777;
|
||||
}
|
||||
|
||||
table.tracks tr.unavailable:hover {
|
||||
color: #777777;
|
||||
}
|
||||
|
||||
table.tracks tr.failed {
|
||||
color: #a06060;
|
||||
}
|
||||
|
||||
.album-art .content img {
|
||||
width: auto;
|
||||
height: calc(100% - 20px);
|
||||
aspect-ratio: 1 / 1;
|
||||
margin: auto;
|
||||
}
|
||||
|
||||
.album-art .content {
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
div.status {
|
||||
width: 100%;
|
||||
height: 2em;
|
||||
padding-top: 0.25em;
|
||||
border-left: 1px solid #505050;
|
||||
}
|
||||
|
||||
div.status div.right {
|
||||
float: right;
|
||||
margin-top: 0;
|
||||
padding-top: 0;
|
||||
}
|
||||
|
||||
div.status span.info, div.status div.right span.info {
|
||||
padding-left: 5px;
|
||||
padding-right: 5px;
|
||||
border-right: 1px solid #505050;
|
||||
color: #d0d0d0;
|
||||
vertical-align: top;
|
||||
}
|
||||
|
||||
button.devtools {
|
||||
height: 1.6em;
|
||||
height: 1.6em;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
margin-top: 3px;
|
||||
}
|
||||
|
||||
button.devtools img {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
div.volume-meter {
|
||||
display: none;
|
||||
position: relative;
|
||||
left: 0;
|
||||
top: 0;
|
||||
z-index: 1000;
|
||||
background: #e0e0e0;
|
||||
border: 1px solid #505050;
|
||||
/*border-radius: 1em;*/
|
||||
padding-top: 5px;
|
||||
padding-bottom: 5px;
|
||||
}
|
||||
|
||||
div.volume-meter div.status {
|
||||
border: none;
|
||||
}
|
||||
|
||||
div.volume-meter div.status span.info {
|
||||
font-weight: bold;
|
||||
color: black;
|
||||
font-size: 80%;
|
||||
border: none;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
div.volume-meter:hover {
|
||||
background: #909090;
|
||||
transition: all 0.5s ease-in;
|
||||
}
|
||||
|
||||
div.volume-meter input[type="range"] {
|
||||
height: 300px;
|
||||
}
|
||||
|
||||
input.v-slider {
|
||||
writing-mode: vertical-lr;
|
||||
direction: rtl;
|
||||
}
|
||||
|
||||
|
||||
.blink {
|
||||
animation: blink 3s infinite both;
|
||||
}
|
||||
|
||||
.error {
|
||||
color: #d60000;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
@keyframes blink {
|
||||
0%,
|
||||
50%,
|
||||
100% {
|
||||
opacity: 1;
|
||||
}
|
||||
25%,
|
||||
75% {
|
||||
opacity: 0;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
select, option {
|
||||
all: revert;
|
||||
}
|
||||
|
||||
.pane {
|
||||
display: block !important;
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user