mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-21 07:47:32 +09:00
REALLY finish off PiP
This commit is contained in:
parent
55a53a2576
commit
14b7011d74
4 changed files with 196 additions and 27 deletions
|
|
@ -11,14 +11,53 @@ browser[remote="true"] {
|
|||
min-height: 170px;
|
||||
background: black;
|
||||
color: white;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
#player-stack {
|
||||
position: fixed;
|
||||
top: 0;
|
||||
right: 0;
|
||||
bottom: 0;
|
||||
left: 0;
|
||||
overflow: hidden;
|
||||
-moz-user-select: none;
|
||||
}
|
||||
|
||||
#player-container,
|
||||
#player-overlay {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
right: 0;
|
||||
bottom: 0;
|
||||
left: 0;
|
||||
min-width: 0;
|
||||
min-height: 0;
|
||||
}
|
||||
|
||||
#player-container {
|
||||
background: black;
|
||||
}
|
||||
|
||||
#player-container > browser {
|
||||
display: -moz-box;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
min-width: 0;
|
||||
min-height: 0;
|
||||
border: 0;
|
||||
}
|
||||
|
||||
#player-overlay {
|
||||
-moz-window-dragging: drag;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
-moz-window-dragging: no-drag;
|
||||
}
|
||||
|
||||
#drag-area {
|
||||
flex: 1;
|
||||
min-height: 0;
|
||||
cursor: move;
|
||||
}
|
||||
|
||||
.pip-controls {
|
||||
|
|
@ -29,22 +68,33 @@ browser[remote="true"] {
|
|||
|
||||
#player-overlay:hover .pip-controls,
|
||||
#player-overlay[keyboard] .pip-controls,
|
||||
#player-overlay[seeking] .pip-controls {
|
||||
#player-overlay[seeking] .pip-controls,
|
||||
#player-stack[dragging] .pip-controls {
|
||||
opacity: 1;
|
||||
pointer-events: auto;
|
||||
}
|
||||
|
||||
#top-controls {
|
||||
display: flex;
|
||||
flex-shrink: 0;
|
||||
justify-content: flex-end;
|
||||
padding: 8px;
|
||||
background: linear-gradient(rgba(0, 0, 0, .55), transparent);
|
||||
}
|
||||
|
||||
#playback-controls {
|
||||
flex-shrink: 0;
|
||||
padding: 12px 10px 8px;
|
||||
background: linear-gradient(transparent, rgba(0, 0, 0, .85));
|
||||
-moz-window-dragging: no-drag;
|
||||
}
|
||||
|
||||
#button-row {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
min-width: 0;
|
||||
}
|
||||
|
||||
.pip-controls button {
|
||||
-moz-appearance: none;
|
||||
-moz-window-dragging: no-drag;
|
||||
|
|
@ -72,6 +122,7 @@ browser[remote="true"] {
|
|||
}
|
||||
|
||||
#seek {
|
||||
box-sizing: border-box;
|
||||
display: block;
|
||||
width: 100%;
|
||||
margin: 0 0 6px;
|
||||
|
|
@ -85,20 +136,56 @@ browser[remote="true"] {
|
|||
}
|
||||
|
||||
#time {
|
||||
flex: 1;
|
||||
min-width: 0;
|
||||
margin: 0 6px;
|
||||
font-variant-numeric: tabular-nums;
|
||||
}
|
||||
|
||||
#resize {
|
||||
justify-self: end;
|
||||
align-self: end;
|
||||
width: 14px;
|
||||
height: 14px;
|
||||
cursor: se-resize;
|
||||
.resize-edge,
|
||||
.resize-corner {
|
||||
position: absolute;
|
||||
z-index: 2;
|
||||
-moz-window-dragging: no-drag;
|
||||
opacity: 0;
|
||||
}
|
||||
|
||||
#resize:hover {
|
||||
opacity: 1;
|
||||
.resize-edge[data-resize="n"],
|
||||
.resize-edge[data-resize="s"] {
|
||||
left: 14px;
|
||||
right: 14px;
|
||||
height: 6px;
|
||||
cursor: ns-resize;
|
||||
}
|
||||
|
||||
.resize-edge[data-resize="e"],
|
||||
.resize-edge[data-resize="w"] {
|
||||
top: 14px;
|
||||
bottom: 14px;
|
||||
width: 6px;
|
||||
cursor: ew-resize;
|
||||
}
|
||||
|
||||
.resize-corner {
|
||||
width: 14px;
|
||||
height: 14px;
|
||||
}
|
||||
|
||||
[data-resize*="n"] { top: 0; }
|
||||
[data-resize*="s"] { bottom: 0; }
|
||||
[data-resize*="e"] { right: 0; }
|
||||
[data-resize*="w"] { left: 0; }
|
||||
[data-resize="nw"], [data-resize="se"] { cursor: nwse-resize; }
|
||||
[data-resize="ne"], [data-resize="sw"] { cursor: nesw-resize; }
|
||||
|
||||
@media (min-width: 700px) {
|
||||
#playback-controls {
|
||||
padding: 20px 20px 14px;
|
||||
}
|
||||
.pip-controls button {
|
||||
padding: 8px 12px;
|
||||
font-size: 14px;
|
||||
}
|
||||
#time {
|
||||
font-size: 14px;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue