mirror of
https://github.com/SoPat712/Speeder.git
synced 2026-08-21 20:32:07 -04:00
76 lines
2.3 KiB
CSS
76 lines
2.3 KiB
CSS
/* Base styles for the controller wrapper (the shadow host) */
|
|
.vsc-controller {
|
|
position: absolute !important;
|
|
top: 0 !important;
|
|
left: 0 !important;
|
|
width: 100% !important;
|
|
height: 100% !important;
|
|
pointer-events: none !important;
|
|
/* Keep the interactive controller above player-owned click/pause panes. */
|
|
z-index: 2147483647 !important;
|
|
white-space: normal;
|
|
overflow: visible !important;
|
|
}
|
|
|
|
/* Native media controls can fullscreen the replaced <video> element without
|
|
calling the page's requestFullscreen method. A manual popover keeps the
|
|
controller in the browser top layer without nesting it inside <video>. */
|
|
.vsc-controller.vsc-fullscreen-popover {
|
|
position: fixed !important;
|
|
inset: auto !important;
|
|
margin: 0 !important;
|
|
padding: 0 !important;
|
|
border: 0 !important;
|
|
background: transparent !important;
|
|
overflow: visible !important;
|
|
}
|
|
|
|
.vsc-controller.vsc-fullscreen-popover::backdrop {
|
|
pointer-events: none !important;
|
|
background: transparent !important;
|
|
}
|
|
|
|
.vsc-nosource {
|
|
display: none !important;
|
|
}
|
|
.vsc-hidden {
|
|
display: none !important;
|
|
}
|
|
|
|
/* YouTube auto-hide feature: fade controller with YouTube's controls */
|
|
/* When the wrapper has ytp-autohide class, hide it (unless vsc-hidden overrides) */
|
|
.vsc-controller.ytp-autohide:not(.vsc-hidden),
|
|
.vsc-controller.vsc-idle-hidden:not(.vsc-hidden) {
|
|
visibility: hidden;
|
|
transition: opacity 0.25s cubic-bezier(0.4, 0, 0.2, 1);
|
|
opacity: 0;
|
|
}
|
|
|
|
/* Show it temporarily when it has vsc-show class */
|
|
.vsc-controller.ytp-autohide.vsc-show:not(.vsc-hidden),
|
|
.vsc-controller.vsc-idle-hidden.vsc-show:not(.vsc-hidden),
|
|
.vsc-controller.vsc-forced-show:not(.vsc-hidden) {
|
|
visibility: visible !important;
|
|
opacity: 1 !important;
|
|
}
|
|
|
|
/* Original overrides removed to avoid interference with the new anchoring system.
|
|
The .vsc-controller wrapper now fills the player container exactly,
|
|
allowing #controller (inside shadow root) to anchor correctly to all 8 positions. */
|
|
|
|
/* disable Vimeo video overlay */
|
|
div.video-wrapper + div.target {
|
|
height: 0;
|
|
}
|
|
|
|
/* Fix black overlay on Kickstarter */
|
|
div.video-player.has_played.vertically_center:before,
|
|
div.legacy-video-player.has_played.vertically_center:before {
|
|
content: none !important;
|
|
}
|
|
|
|
/* Fix black overlay on openai.com */
|
|
.Shared-Video-player > .vsc-controller {
|
|
height: 0;
|
|
}
|