76 lines
1.5 KiB
CSS
76 lines
1.5 KiB
CSS
/* Custom VideoJS styling */
|
|
.video-container {
|
|
position: relative;
|
|
width: 100%;
|
|
/* Add some bottom padding to ensure controls are visible */
|
|
margin-bottom: 10px;
|
|
overflow: hidden;
|
|
}
|
|
|
|
/* Ensure the video-js player is properly contained */
|
|
.video-js {
|
|
width: 100%;
|
|
height: 0 !important;
|
|
padding-top: 56.25% !important; /* 16:9 aspect ratio */
|
|
/* Ensure controls are within the container */
|
|
position: relative;
|
|
}
|
|
|
|
/* Position the video element correctly */
|
|
.video-js .vjs-tech {
|
|
position: absolute;
|
|
top: 0;
|
|
left: 0;
|
|
width: 100%;
|
|
height: 100%;
|
|
}
|
|
|
|
/* Fix control bar positioning */
|
|
.video-js .vjs-control-bar {
|
|
/* Ensure the control bar stays within the player's dimensions */
|
|
bottom: 0;
|
|
width: 100%;
|
|
}
|
|
|
|
/* Additional responsive adjustments */
|
|
@media (max-width: 768px) {
|
|
.video-container {
|
|
/* More bottom space on mobile */
|
|
margin-bottom: 15px;
|
|
}
|
|
}
|
|
|
|
/* Video link and overlay styles */
|
|
.video-link {
|
|
display: block;
|
|
position: relative;
|
|
text-decoration: none;
|
|
color: inherit;
|
|
}
|
|
|
|
.video-overlay {
|
|
position: absolute;
|
|
top: 0;
|
|
left: 0;
|
|
right: 0;
|
|
bottom: 0;
|
|
background-color: rgba(0, 0, 0, 0.5);
|
|
display: flex;
|
|
justify-content: center;
|
|
align-items: center;
|
|
opacity: 0;
|
|
transition: opacity 0.3s ease;
|
|
}
|
|
|
|
.video-link:hover .video-overlay {
|
|
opacity: 1;
|
|
}
|
|
|
|
.video-overlay-text {
|
|
background-color: rgba(0, 0, 0, 0.7);
|
|
color: white;
|
|
padding: 10px 20px;
|
|
border-radius: 4px;
|
|
font-size: 16px;
|
|
font-weight: bold;
|
|
} |