2021-08-17 16:45:18 -05:00
|
|
|
// Copyright 2021 Signal Messenger, LLC
|
|
|
|
// SPDX-License-Identifier: AGPL-3.0-only
|
|
|
|
|
2024-11-15 15:09:31 -08:00
|
|
|
@use '../mixins';
|
|
|
|
@use '../variables';
|
|
|
|
|
2021-08-17 16:45:18 -05:00
|
|
|
.module-CallingLobby {
|
|
|
|
&__local-preview {
|
|
|
|
position: absolute;
|
2024-11-15 15:09:31 -08:00
|
|
|
z-index: variables.$z-index-negative;
|
2023-10-31 12:32:56 -07:00
|
|
|
top: 28px;
|
2023-11-14 17:05:17 -05:00
|
|
|
-webkit-app-region: no-drag;
|
2021-08-18 16:06:26 -05:00
|
|
|
|
|
|
|
&--camera-is-on {
|
2024-11-15 15:09:31 -08:00
|
|
|
@include mixins.lonely-local-video-preview;
|
2023-10-25 06:40:22 -07:00
|
|
|
width: auto;
|
2023-10-31 12:32:56 -07:00
|
|
|
height: 100%;
|
|
|
|
max-height: calc(100% - 140px);
|
2021-09-10 12:24:05 -05:00
|
|
|
opacity: 0.6;
|
2024-10-01 15:17:43 -07:00
|
|
|
|
|
|
|
// Border radius should clip children
|
|
|
|
overflow: hidden;
|
|
|
|
}
|
|
|
|
|
|
|
|
&--camera-is-on video {
|
|
|
|
width: auto;
|
|
|
|
height: 100%;
|
2021-09-10 12:24:05 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
&--camera-is-off {
|
2024-11-15 15:09:31 -08:00
|
|
|
@include mixins.lonely-local-video-preview;
|
2023-10-31 12:32:56 -07:00
|
|
|
width: auto;
|
2021-09-10 12:24:05 -05:00
|
|
|
height: 100%;
|
2023-10-31 12:32:56 -07:00
|
|
|
max-height: calc(100% - 140px);
|
|
|
|
aspect-ratio: 4 / 3;
|
2024-09-24 07:00:03 -07:00
|
|
|
|
|
|
|
.module-calling__background--blur::before {
|
|
|
|
content: '';
|
|
|
|
position: absolute;
|
|
|
|
height: 100%;
|
|
|
|
width: 100%;
|
2024-11-15 15:09:31 -08:00
|
|
|
background: variables.$color-black-alpha-40;
|
2024-09-24 07:00:03 -07:00
|
|
|
}
|
2021-08-18 16:06:26 -05:00
|
|
|
}
|
2021-08-17 16:45:18 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
&__camera-is-off {
|
|
|
|
&--visible {
|
|
|
|
opacity: 1;
|
|
|
|
}
|
|
|
|
|
|
|
|
&--invisible {
|
|
|
|
opacity: 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2023-10-31 12:32:56 -07:00
|
|
|
|
2024-02-22 13:19:50 -08:00
|
|
|
.CallingLobby__CallLinkNotice {
|
2024-11-15 15:09:31 -08:00
|
|
|
@include mixins.font-caption;
|
2024-02-22 13:19:50 -08:00
|
|
|
display: flex;
|
|
|
|
padding-block: 12px;
|
|
|
|
padding-inline: 18px;
|
|
|
|
margin-block-end: 32px;
|
|
|
|
width: 340px;
|
2024-11-15 15:09:31 -08:00
|
|
|
background: variables.$color-gray-78;
|
|
|
|
color: variables.$color-white;
|
2024-02-22 13:19:50 -08:00
|
|
|
border-radius: 10px;
|
2024-05-02 13:57:17 -07:00
|
|
|
align-items: center;
|
2024-02-22 13:19:50 -08:00
|
|
|
text-align: center;
|
|
|
|
}
|
|
|
|
|
2024-05-02 13:57:17 -07:00
|
|
|
.CallingLobby__CallLinkNotice--join-request-pending {
|
2024-11-15 15:09:31 -08:00
|
|
|
@include mixins.font-body-1;
|
2024-05-02 13:57:17 -07:00
|
|
|
width: auto;
|
|
|
|
}
|
|
|
|
|
|
|
|
.CallingLobby__CallLinkJoinRequestPendingSpinner {
|
|
|
|
margin-inline-end: 8px;
|
|
|
|
}
|
|
|
|
|
2023-11-02 13:28:03 -07:00
|
|
|
.CallingLobby__Footer {
|
|
|
|
display: flex;
|
|
|
|
width: 100%;
|
|
|
|
justify-content: center;
|
2023-10-31 12:32:56 -07:00
|
|
|
}
|