2022-01-07 18:01:23 +00:00
|
|
|
// Copyright 2022 Signal Messenger, LLC
|
|
|
|
// SPDX-License-Identifier: AGPL-3.0-only
|
|
|
|
|
2023-10-19 18:59:21 +00:00
|
|
|
.CallingToasts {
|
|
|
|
position: fixed;
|
|
|
|
z-index: $z-index-toast;
|
|
|
|
top: 32px;
|
|
|
|
width: 100%;
|
|
|
|
display: flex;
|
|
|
|
justify-content: center;
|
2023-10-24 20:28:42 +00:00
|
|
|
pointer-events: none;
|
2023-10-19 18:59:21 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.CallingToasts__inner {
|
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
|
|
|
justify-content: center;
|
|
|
|
align-items: center;
|
2023-10-24 20:28:42 +00:00
|
|
|
pointer-events: auto;
|
2023-10-19 18:59:21 +00:00
|
|
|
gap: 8px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.CallingToast--dismissable {
|
2022-01-07 18:01:23 +00:00
|
|
|
@include button-reset();
|
2023-10-19 18:59:21 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.CallingToast {
|
2023-10-26 18:26:25 +00:00
|
|
|
@include font-subtitle;
|
|
|
|
padding-block: 8px;
|
|
|
|
padding-inline: 12px;
|
2023-10-19 18:59:21 +00:00
|
|
|
border-radius: 22px;
|
2023-10-26 18:26:25 +00:00
|
|
|
background-color: $color-gray-80;
|
|
|
|
color: $color-gray-15;
|
2022-01-07 18:01:23 +00:00
|
|
|
text-align: center;
|
|
|
|
user-select: none;
|
2023-10-19 18:59:21 +00:00
|
|
|
&__reconnecting {
|
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
gap: 8px;
|
2022-01-07 18:01:23 +00:00
|
|
|
}
|
|
|
|
}
|
2023-10-26 18:26:25 +00:00
|
|
|
|
2023-12-08 20:15:18 +00:00
|
|
|
.CallingButtonToasts__outer {
|
|
|
|
position: absolute;
|
|
|
|
inset-block-end: calc($CallControls__height + 16px);
|
|
|
|
width: 100%;
|
|
|
|
// Match .module-ongoing-call__footer
|
|
|
|
z-index: $z-index-above-base;
|
|
|
|
}
|
|
|
|
|
|
|
|
// Match the width behavior of .CallControls
|
|
|
|
.CallingButtonToasts {
|
|
|
|
display: flex;
|
|
|
|
flex-grow: 1;
|
|
|
|
flex-shrink: 0;
|
|
|
|
flex-basis: $CallControls__initial-width;
|
|
|
|
max-width: $CallControls__max-width;
|
|
|
|
}
|
|
|
|
|
2023-10-26 18:26:25 +00:00
|
|
|
.CallingButtonToasts .CallingToasts {
|
|
|
|
position: absolute;
|
2023-12-08 20:15:18 +00:00
|
|
|
top: -16px;
|
2023-10-26 18:26:25 +00:00
|
|
|
transform: translateY(-100%);
|
2023-11-16 19:55:35 +00:00
|
|
|
inset-inline-start: 0;
|
2023-10-26 18:26:25 +00:00
|
|
|
}
|
2023-11-13 14:56:48 +00:00
|
|
|
|
|
|
|
.CallingToast__viewChanged {
|
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
gap: 8px;
|
|
|
|
&__icon {
|
|
|
|
width: 18px;
|
|
|
|
height: 18px;
|
|
|
|
}
|
|
|
|
}
|