Improve video visibility during hover interactions
Refine CSS rules in client/src/index.css to ensure videos remain visible when hovered, specifically addressing overflow and clip-path properties for parent containers, including specialized handling for horizontally scrolling containers. Replit-Commit-Author: Agent Replit-Commit-Session-Id: 2eb1084e-b728-4449-9231-f1665924c8d5 Replit-Commit-Checkpoint-Type: full_checkpoint Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/8cc42625-c1f5-4e43-99bd-77f2c4dedee2/2eb1084e-b728-4449-9231-f1665924c8d5/kdQ95gE
This commit is contained in:
parent
570b8d3d09
commit
0e554e20a8
@ -398,12 +398,18 @@ input[data-testid*="search"]::placeholder {
|
||||
isolation: auto !important;
|
||||
}
|
||||
|
||||
/* Force specific parent containers to be overflow visible when child is hovered - but preserve scroll containers */
|
||||
*:has(.individual-video-hover:hover):not([class*="overflow-x-auto"]) {
|
||||
/* Force parent containers to be overflow visible when child is hovered */
|
||||
*:has(.individual-video-hover:hover) {
|
||||
overflow: visible !important;
|
||||
clip-path: none !important;
|
||||
}
|
||||
|
||||
/* Special handling for scroll containers - allow both horizontal scroll and vertical visibility */
|
||||
[class*="overflow-x-auto"]:has(.individual-video-hover:hover) {
|
||||
overflow-x: auto !important;
|
||||
overflow-y: visible !important;
|
||||
}
|
||||
|
||||
/* Hide picture-in-picture button on all video elements */
|
||||
video::-webkit-media-controls-picture-in-picture-button {
|
||||
display: none !important;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user