width:calc(100vw+21.25rem);/* without chat the body is 21.25rem (the size of the chat) wider */
margin:0;
padding:0;
height:100vh;
background-color:black;
overflow:hidden;
transition:width0.3s;/* width changes are animated */
/* without chat the body is 21.25rem (the size of the chat) wider */
width:calc(100vw+21.25rem);
background-color:black;
overflow:hidden;
transition:width0.3s;/* width changes are animated */
}
body.with-chat{
width:100vw;/* with chat the width is the normal 100vw */
width:100vw;/* with chat the width is the normal 100vw */
}
#large-player{
position:relative;/* while this 'relative' has no impact for #large-player it is the reference point for the #small-player-container which is positioned absolute to this element */
display:flex;
flex-grow:1;/* #large-player fills remaining space while #chat does not */
/* while this 'relative' has no impact for #large-player it is the reference point for the */
/* #small-player-container which is positioned absolute to this element */
position:relative;
display:flex;
flex-grow:1;/* #large-player fills remaining space while #chat does not */
}
#small-player-container{/* this container is necessary for the #small-player to keep an 16:9 aspect ratio */
position:absolute;
width:100%;
height:0;
padding-top:56.25%;/* this is the trick that keeps the child in a 16:9 ratio - read more here https://www.w3schools.com/howto/howto_css_aspect_ratio.asp */
#small-player-container{
/* this container is necessary for the #small-player to keep an 16:9 aspect ratio */
position:absolute;
width:100%;
height:0;
/* this is the trick that keeps the child in a 16:9 ratio - read more here https://www.w3schools.com/howto/howto_css_aspect_ratio.asp */
padding-top:56.25%;
}
#small-player{
position:absolute;
top:0;/* pin small player to the top right */
right:0;
/* Note: the width and height property get set via script */
transition:width0.3s,height0.3s;/* width and height changes are animated */
display:flex;
position:absolute;
top:0;/* pin small player to the top right */
right:0;
/* Note: the width and height property get set via script */
transition:width0.3s,height0.3s;/* width and height changes are animated */
display:flex;
}
#small-player>iframe,
#large-player>iframe{/* the iframes always grow to the parents size */