|
| 1 | +/* |
| 2 | +Copyright 2022 The Matrix.org Foundation C.I.C. |
| 3 | +
|
| 4 | +Licensed under the Apache License, Version 2.0 (the "License"); |
| 5 | +you may not use this file except in compliance with the License. |
| 6 | +You may obtain a copy of the License at |
| 7 | +
|
| 8 | + http://www.apache.org/licenses/LICENSE-2.0 |
| 9 | +
|
| 10 | +Unless required by applicable law or agreed to in writing, software |
| 11 | +distributed under the License is distributed on an "AS IS" BASIS, |
| 12 | +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 13 | +See the License for the specific language governing permissions and |
| 14 | +limitations under the License. |
| 15 | +*/ |
| 16 | + |
| 17 | +.mx_VideoLobby { |
| 18 | + min-height: 0; |
| 19 | + flex-grow: 1; |
| 20 | + padding: $spacing-12; |
| 21 | + color: $video-lobby-primary-content; |
| 22 | + background-color: $video-lobby-background; |
| 23 | + border-radius: 8px; |
| 24 | + |
| 25 | + display: flex; |
| 26 | + flex-direction: column; |
| 27 | + align-items: center; |
| 28 | + justify-content: center; |
| 29 | + gap: $spacing-32; |
| 30 | + |
| 31 | + .mx_FacePile { |
| 32 | + width: fit-content; |
| 33 | + margin: $spacing-8 auto 0; |
| 34 | + |
| 35 | + .mx_FacePile_faces .mx_BaseAvatar_image { |
| 36 | + border-color: $video-lobby-background; |
| 37 | + } |
| 38 | + } |
| 39 | + |
| 40 | + .mx_VideoLobby_preview { |
| 41 | + position: relative; |
| 42 | + width: 100%; |
| 43 | + max-width: 800px; |
| 44 | + aspect-ratio: 1.5; |
| 45 | + background-color: $video-lobby-system; |
| 46 | + |
| 47 | + border-radius: 20px; |
| 48 | + overflow: hidden; |
| 49 | + |
| 50 | + display: flex; |
| 51 | + flex-direction: column; |
| 52 | + justify-content: center; |
| 53 | + align-items: center; |
| 54 | + |
| 55 | + .mx_BaseAvatar { |
| 56 | + margin: $spacing-20; |
| 57 | + |
| 58 | + // Override the explicit dimensions on the element so that this gets sized responsively |
| 59 | + width: unset !important; |
| 60 | + height: unset !important; |
| 61 | + min-width: 0; |
| 62 | + min-height: 0; |
| 63 | + flex: 0 1 200px; |
| 64 | + } |
| 65 | + |
| 66 | + video { |
| 67 | + position: absolute; |
| 68 | + top: 0; |
| 69 | + width: 100%; |
| 70 | + height: 100%; |
| 71 | + object-fit: cover; |
| 72 | + display: block; |
| 73 | + transform: scaleX(-1); // flip the image |
| 74 | + background-color: black; |
| 75 | + } |
| 76 | + |
| 77 | + .mx_VideoLobby_controls { |
| 78 | + position: absolute; |
| 79 | + bottom: 0; |
| 80 | + left: 0; |
| 81 | + right: 0; |
| 82 | + |
| 83 | + background-color: rgba($video-lobby-background, 0.9); |
| 84 | + |
| 85 | + display: flex; |
| 86 | + justify-content: center; |
| 87 | + gap: $spacing-24; |
| 88 | + |
| 89 | + .mx_VideoLobby_deviceButtonWrapper { |
| 90 | + position: relative; |
| 91 | + margin: 6px 0 10px; |
| 92 | + |
| 93 | + .mx_VideoLobby_deviceButton { |
| 94 | + $size: 50px; |
| 95 | + |
| 96 | + width: $size; |
| 97 | + height: $size; |
| 98 | + |
| 99 | + background-color: $video-lobby-primary-content; |
| 100 | + border-radius: calc($size / 2); |
| 101 | + |
| 102 | + &::before { |
| 103 | + content: ''; |
| 104 | + display: inline-block; |
| 105 | + mask-repeat: no-repeat; |
| 106 | + mask-size: 20px; |
| 107 | + mask-position: center; |
| 108 | + background-color: $video-lobby-system; |
| 109 | + height: 100%; |
| 110 | + width: 100%; |
| 111 | + } |
| 112 | + |
| 113 | + &.mx_VideoLobby_deviceButton_audio::before { |
| 114 | + mask-image: url('$(res)/img/voip/call-view/mic-off.svg'); |
| 115 | + } |
| 116 | + |
| 117 | + &.mx_VideoLobby_deviceButton_video::before { |
| 118 | + mask-image: url('$(res)/img/voip/call-view/cam-off.svg'); |
| 119 | + } |
| 120 | + } |
| 121 | + |
| 122 | + .mx_VideoLobby_deviceListButton { |
| 123 | + $size: 15px; |
| 124 | + |
| 125 | + position: absolute; |
| 126 | + bottom: 0; |
| 127 | + right: -2.5px; |
| 128 | + width: $size; |
| 129 | + height: $size; |
| 130 | + |
| 131 | + background-color: $video-lobby-primary-content; |
| 132 | + border-radius: calc($size / 2); |
| 133 | + |
| 134 | + &::before { |
| 135 | + content: ''; |
| 136 | + display: inline-block; |
| 137 | + mask-image: url('$(res)/img/feather-customised/chevron-down.svg'); |
| 138 | + mask-size: $size; |
| 139 | + mask-position: center; |
| 140 | + background-color: $video-lobby-system; |
| 141 | + height: 100%; |
| 142 | + width: 100%; |
| 143 | + } |
| 144 | + } |
| 145 | + |
| 146 | + &.mx_VideoLobby_deviceButtonWrapper_active { |
| 147 | + .mx_VideoLobby_deviceButton, |
| 148 | + .mx_VideoLobby_deviceListButton { |
| 149 | + background-color: $video-lobby-system; |
| 150 | + |
| 151 | + &::before { |
| 152 | + background-color: $video-lobby-primary-content; |
| 153 | + } |
| 154 | + } |
| 155 | + |
| 156 | + .mx_VideoLobby_deviceButton { |
| 157 | + &.mx_VideoLobby_deviceButton_audio::before { |
| 158 | + mask-image: url('$(res)/img/voip/call-view/mic-on.svg'); |
| 159 | + } |
| 160 | + |
| 161 | + &.mx_VideoLobby_deviceButton_video::before { |
| 162 | + mask-image: url('$(res)/img/voip/call-view/cam-on.svg'); |
| 163 | + } |
| 164 | + } |
| 165 | + } |
| 166 | + } |
| 167 | + } |
| 168 | + } |
| 169 | + |
| 170 | + .mx_VideoLobby_joinButton { |
| 171 | + padding-left: 50px; |
| 172 | + padding-right: 50px; |
| 173 | + } |
| 174 | +} |
0 commit comments