shaka-player
Version:
DASH/EME video player library
66 lines (58 loc) • 1.61 kB
text/less
.shaka-player-ui-thumbnail-container {
bottom: 15px;
min-width: 0;
max-width: 100%;
pointer-events: none;
position: absolute;
visibility: hidden;
width: auto;
z-index: 1;
// Position of child elements
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
gap: 5px;
// When there is no thumbnail to show, the box must hug the time, instead of
// reserving the width of an image that is not being displayed. Otherwise the
// time would stop following the pointer well before the edges of the bar.
&.time-only {
min-width: 0;
width: auto;
max-width: 100%;
}
.shaka-player-ui-thumbnail-image-container {
background-color: var(--shaka-bg-solid);
border: 1px solid var(--shaka-bg-solid);
box-sizing: border-box;
box-shadow: 0 8px 8px 0 var(--shaka-bg);
overflow: hidden;
position: relative;
width: 100%;
max-width: 100%;
.shaka-player-ui-thumbnail-image {
position: absolute;
}
}
.shaka-player-ui-thumbnail-time-container {
display: flex;
justify-content: center;
max-width: 100%;
min-width: 0;
.shaka-player-ui-thumbnail-time {
background-color: var(--shaka-bg);
border-radius: var(--shaka-font-size);
color: var(--shaka-font-color);
font-size: var(--shaka-font-size);
padding: 0 5px;
box-sizing: border-box;
min-width: 0;
max-width: 100%;
overflow-wrap: break-word;
text-align: center;
@media (prefers-reduced-transparency) {
background-color: var(--shaka-bg-90);
}
}
}
}