Files

83 lines
1.6 KiB
CSS

/** @license
* Shaka Player
* Copyright 2016 Google LLC
* SPDX-License-Identifier: Apache-2.0
*/
/* Experimentation has revealed that unless html, body, and video-container are
* width and height 100%, video can force all its parents to grow larger than
* window.innerHeight, causing things to be cut off for some content.
*/
html {
width: 100%;
height: 100%;
}
body {
width: 100%;
height: 100%;
margin: 0;
padding: 0;
overflow: hidden;
font-family: Roboto, sans-serif;
font-weight: 300;
background-color: black;
color: white;
}
#video-container {
width: 100%;
height: 100%;
}
#video {
width: 100%;
height: 100%;
margin: auto;
}
/* The UI default style for fullscreen is to make the font size relative to the
* window height. That is also appropriate for the cast receiver experience.
* Since playback here is not technically in fullscreen mode, we just duplicate
* the style. */
.shaka-text-container {
font-size: 4.4vh;
}
#welcome {
position: absolute;
top: 0;
left: 0;
bottom: 0;
right: 0;
/* Make sure the idle cards sit above everything in the Player UI. That way,
* they will be visible on top until we decide to hide them and show the
* player. */
z-index: 99;
background-color: white;
background-image: url("shaka-player-logo-light.png");
background-repeat: no-repeat;
background-position: center;
}
.version-string {
position: absolute;
bottom: 2.5%;
right: 2.5%;
font-size: 2vh;
color: black;
}
/* Preload the background images for idle mode */
body:after {
position: absolute;
width: 0;
height: 0;
overflow: hidden;
z-index: -1;
content: url("shaka-player-logo.png");
}