Skip to content

Instantly share code, notes, and snippets.

@rebelchris
Created January 23, 2021 14:56
Show Gist options
  • Save rebelchris/1028ffa7cad60e9947865a455a20ed6b to your computer and use it in GitHub Desktop.
Save rebelchris/1028ffa7cad60e9947865a455a20ed6b to your computer and use it in GitHub Desktop.
Video holder
.holder {
border-radius: 15px;
background: #00bbf9;
width: 100%;
min-height: 50px;
border: 1px solid #333;
&--video {
position: relative;
overflow: hidden;
margin-bottom: 0.5rem;
min-height: 500px;
color: #fee440;
&-me {
position: absolute;
right: 0.5rem;
top: 0.5rem;
width: 150px;
height: 150px;
overflow: hidden;
border: 3px solid #fff;
border-radius: 15px;
background: #efefef;
display: flex;
justify-content: center;
align-items: center;
font-style: italic;
&.connecting {
&:before {
content: "Connecting...";
}
}
}
&-remote {
position: relative;
display: flex;
align-items: center;
justify-content: center;
min-height: 500px;
&.waiting {
&:before {
content: "Waiting...";
}
}
video {
position: relative !important;
display: block;
transform: rotateY(180deg);
object-fit: cover;
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment