Dactyloidae/browser/base/content/pictureInPicture.css

191 lines
3.3 KiB
CSS
Raw Normal View History

2026-09-13 11:52:14 -07:00
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
browser[remote="true"] {
-moz-binding: url("chrome://global/content/bindings/remote-browser.xml#remote-browser");
}
2026-09-13 12:18:07 -07:00
#picture-in-picture {
min-width: 300px;
min-height: 170px;
background: black;
color: white;
2026-09-13 12:39:43 -07:00
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;
2026-09-13 12:18:07 -07:00
}
#player-container {
background: black;
}
2026-09-13 12:39:43 -07:00
#player-container > browser {
display: -moz-box;
width: 100%;
height: 100%;
min-width: 0;
min-height: 0;
border: 0;
}
2026-09-13 12:18:07 -07:00
#player-overlay {
2026-09-13 12:39:43 -07:00
display: flex;
flex-direction: column;
-moz-window-dragging: no-drag;
}
#drag-area {
flex: 1;
min-height: 0;
cursor: move;
2026-09-13 12:18:07 -07:00
}
.pip-controls {
opacity: 0;
pointer-events: none;
transition: opacity 150ms ease;
}
#player-overlay:hover .pip-controls,
#player-overlay[keyboard] .pip-controls,
2026-09-13 12:39:43 -07:00
#player-overlay[seeking] .pip-controls,
#player-stack[dragging] .pip-controls {
2026-09-13 12:18:07 -07:00
opacity: 1;
pointer-events: auto;
}
#top-controls {
2026-09-13 12:39:43 -07:00
display: flex;
flex-shrink: 0;
justify-content: flex-end;
2026-09-13 12:18:07 -07:00
padding: 8px;
background: linear-gradient(rgba(0, 0, 0, .55), transparent);
}
#playback-controls {
2026-09-13 12:39:43 -07:00
flex-shrink: 0;
2026-09-13 12:18:07 -07:00
padding: 12px 10px 8px;
background: linear-gradient(transparent, rgba(0, 0, 0, .85));
-moz-window-dragging: no-drag;
}
2026-09-13 12:39:43 -07:00
#button-row {
display: flex;
align-items: center;
min-width: 0;
}
2026-09-13 12:18:07 -07:00
.pip-controls button {
-moz-appearance: none;
-moz-window-dragging: no-drag;
min-width: 0;
margin: 2px;
padding: 6px 8px;
border: 1px solid transparent;
border-radius: 4px;
background: rgba(30, 30, 30, .8);
color: white;
text-shadow: none;
}
.pip-controls button:hover,
.pip-controls button:focus {
border-color: white;
background: #444;
}
#close {
font-size: 22px;
width: 32px;
height: 32px;
padding: 0;
}
#seek {
2026-09-13 12:39:43 -07:00
box-sizing: border-box;
2026-09-13 12:18:07 -07:00
display: block;
width: 100%;
margin: 0 0 6px;
cursor: pointer;
-moz-window-dragging: no-drag;
}
#seek:disabled {
opacity: .45;
cursor: default;
}
#time {
2026-09-13 12:39:43 -07:00
flex: 1;
min-width: 0;
2026-09-13 12:18:07 -07:00
margin: 0 6px;
font-variant-numeric: tabular-nums;
}
2026-09-13 12:39:43 -07:00
.resize-edge,
.resize-corner {
position: absolute;
z-index: 2;
-moz-window-dragging: no-drag;
}
.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 {
2026-09-13 12:18:07 -07:00
width: 14px;
height: 14px;
}
2026-09-13 12:39:43 -07:00
[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;
}
2026-09-13 12:18:07 -07:00
}