signal-desktop/stylesheets/components/CallingLobby.scss

86 lines
1.6 KiB
SCSS
Raw Normal View History

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