Styling for video room

This commit is contained in:
Robert Long
2021-08-19 12:11:12 -07:00
parent 91e244772f
commit cc59e42bba
40 changed files with 937 additions and 270 deletions

67
src/VideoGrid.module.css Normal file
View File

@@ -0,0 +1,67 @@
/*
Copyright 2021 New Vector Ltd
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
.grid {
position: relative;
overflow: hidden;
flex: 1;
}
.participantTile {
position: absolute;
will-change: transform, width, height, opacity, box-shadow;
border-radius: 24px;
overflow: hidden;
background-color: #444;
}
.participantTile video {
width: 100%;
height: 100%;
object-fit: cover;
}
.participantName {
position: absolute;
bottom: 16px;
left: 16px;
height: 32px;
padding: 0 8px;
background-color: rgba(23, 25, 28, 0.96);
display: none;
align-items: center;
justify-content: center;
border-radius: 8px;
}
.participantName > * {
margin-right: 8px;
}
.participantName > :last-child {
margin-right: 0px;
}
.participantName span {
font-size: 15px;
font-weight: 600;
line-height: 32px;
}
.participantTile:hover .participantName, .participantName.speaking {
display: flex;
}