@enact/sandstone
Version:
Large-screen/TV support library for Enact, containing a variety of UI components.
175 lines (174 loc) • 5.4 kB
CSS
.videoPlayer {
--liftDistance: 0rem;
overflow: hidden;
}
.videoPlayer .video {
height: 100%;
width: 100%;
}
.videoPlayer .preloadVideo {
display: none;
}
.videoPlayer .overlay {
position: absolute;
top: 0;
right: 0;
bottom: 0;
left: 0;
}
.videoPlayer .overlay::after {
content: "";
position: absolute;
top: auto;
right: 0;
bottom: 0;
left: 0;
height: 80%;
transform-origin: bottom;
}
.videoPlayer .fullscreen .miniFeedback {
font-family: "Sandstone Number";
position: absolute;
z-index: 50;
top: 1.25rem;
left: 1.25rem;
font-weight: normal;
font-style: normal;
font-size: 1.375rem;
padding: 0 1.375rem;
line-height: 2.5rem;
bottom: auto;
pointer-events: none;
}
:global(.enact-locale-non-latin) .videoPlayer .fullscreen .miniFeedback {
font-family: "Sandstone Number";
}
.videoPlayer .fullscreen .back {
position: absolute;
z-index: 100;
top: 2.375rem;
left: 3.125rem;
right: initial;
}
:global(.enact-locale-right-to-left) .videoPlayer .fullscreen .back {
left: initial;
right: 3.125rem;
}
.videoPlayer .fullscreen .bottom {
position: absolute;
z-index: 100;
bottom: 1.25rem;
left: 1.75rem;
right: 1.75rem;
}
.videoPlayer .fullscreen .bottom.lift {
transform: translateY(calc(var(--liftDistance) * -1));
transition: transform 0.3s linear;
}
.videoPlayer .fullscreen .bottom.hidden {
pointer-events: none;
}
.videoPlayer .fullscreen .bottom.hidden .sliderContainer {
position: absolute;
width: 100%;
}
.videoPlayer .fullscreen .bottom .infoFrame {
display: flex;
margin: 0 1.375rem 1.75rem;
}
.videoPlayer .fullscreen .bottom .sliderContainer {
display: flex;
align-items: center;
}
.videoPlayer .fullscreen .bottom .sliderContainer > *:first-child {
text-align: right;
}
:global(.enact-locale-right-to-left) .videoPlayer .fullscreen .bottom .sliderContainer {
direction: ltr;
}
.videoPlayer .controlsHandleAbove {
pointer-events: none;
position: absolute;
top: 0;
right: 0;
bottom: auto;
left: 0;
}
.videoPlayer:global(.neutral) .fullscreen .miniFeedback {
background-color: rgba(0, 0, 0, 0.5);
color: var(--sand-focus-text-color, #ffffff);
}
.videoPlayer:global(.neutral) .fullscreen .bottom {
background-color: transparent;
}
.videoPlayer:global(.neutral) .fullscreen .bottom .infoFrame {
text-shadow: 0 0.08333rem 0.08333rem rgb(var(--sand-shadow-color-rgb, 0, 0, 0), 75%);
}
.videoPlayer:global(.neutral) .overlay.scrim::after {
background: linear-gradient(180deg, transparent 0%, #000 100%);
}
:global(.enact-a11y-high-contrast) .videoPlayer:global(.neutral):global(.highContrast) .fullscreen .miniFeedback {
background-color: rgba(0, 0, 0, 0.5);
color: var(--sand-focus-text-color, #ffffff);
}
:global(.enact-a11y-high-contrast) .videoPlayer:global(.neutral):global(.highContrast) .fullscreen .bottom {
background-color: transparent;
}
:global(.enact-a11y-high-contrast) .videoPlayer:global(.neutral):global(.highContrast) .fullscreen .bottom .infoFrame {
text-shadow: 0 0.08333rem 0.08333rem rgb(var(--sand-shadow-color-rgb, 0, 0, 0), 75%);
}
:global(.enact-a11y-high-contrast) .videoPlayer:global(.neutral):global(.highContrast) .overlay.scrim::after {
background: linear-gradient(180deg, transparent 0%, #000 100%);
}
.videoPlayer:global(.light) .fullscreen .miniFeedback {
background-color: rgba(0, 0, 0, 0.5);
color: var(--sand-focus-text-color, #575e66);
}
.videoPlayer:global(.light) .fullscreen .bottom {
background-color: transparent;
}
.videoPlayer:global(.light) .fullscreen .bottom .infoFrame {
text-shadow: 0 0.08333rem 0.08333rem rgb(var(--sand-shadow-color-rgb, 0, 0, 0), 75%);
}
.videoPlayer:global(.light) .overlay.scrim::after {
background: linear-gradient(180deg, transparent 0%, #000 100%);
}
.videoPlayer:global(.game) .fullscreen .miniFeedback {
background-color: rgba(0, 0, 0, 0.5);
color: var(--sand-focus-text-color, #ffffff);
}
.videoPlayer:global(.game) .fullscreen .bottom {
background-color: transparent;
}
.videoPlayer:global(.game) .fullscreen .bottom .infoFrame {
text-shadow: 0 0.08333rem 0.08333rem rgb(var(--sand-shadow-color-rgb, 0, 0, 0), 75%);
}
.videoPlayer:global(.game) .overlay.scrim::after {
background: linear-gradient(180deg, transparent 0%, #000 100%);
}
:global(.green) .videoPlayer:global(.game) .fullscreen .miniFeedback {
background-color: rgba(0, 0, 0, 0.5);
color: var(--sand-focus-text-color, #ffffff);
}
:global(.green) .videoPlayer:global(.game) .fullscreen .bottom {
background-color: transparent;
}
:global(.green) .videoPlayer:global(.game) .fullscreen .bottom .infoFrame {
text-shadow: 0 0.08333rem 0.08333rem rgb(var(--sand-shadow-color-rgb, 0, 0, 0), 75%);
}
:global(.green) .videoPlayer:global(.game) .overlay.scrim::after {
background: linear-gradient(180deg, transparent 0%, #000 100%);
}
:global(.orange) .videoPlayer:global(.game) .fullscreen .miniFeedback {
background-color: rgba(0, 0, 0, 0.5);
color: var(--sand-focus-text-color, #ffffff);
}
:global(.orange) .videoPlayer:global(.game) .fullscreen .bottom {
background-color: transparent;
}
:global(.orange) .videoPlayer:global(.game) .fullscreen .bottom .infoFrame {
text-shadow: 0 0.08333rem 0.08333rem rgb(var(--sand-shadow-color-rgb, 0, 0, 0), 75%);
}
:global(.orange) .videoPlayer:global(.game) .overlay.scrim::after {
background: linear-gradient(180deg, transparent 0%, #000 100%);
}