signal-desktop/stylesheets/components/CallingToast.scss
2023-12-08 12:15:18 -08:00

75 lines
1.4 KiB
SCSS

// Copyright 2022 Signal Messenger, LLC
// SPDX-License-Identifier: AGPL-3.0-only
.CallingToasts {
position: fixed;
z-index: $z-index-toast;
top: 32px;
width: 100%;
display: flex;
justify-content: center;
pointer-events: none;
}
.CallingToasts__inner {
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
pointer-events: auto;
gap: 8px;
}
.CallingToast--dismissable {
@include button-reset();
}
.CallingToast {
@include font-subtitle;
padding-block: 8px;
padding-inline: 12px;
border-radius: 22px;
background-color: $color-gray-80;
color: $color-gray-15;
text-align: center;
user-select: none;
&__reconnecting {
display: flex;
align-items: center;
gap: 8px;
}
}
.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;
}
.CallingButtonToasts .CallingToasts {
position: absolute;
top: -16px;
transform: translateY(-100%);
inset-inline-start: 0;
}
.CallingToast__viewChanged {
display: flex;
align-items: center;
gap: 8px;
&__icon {
width: 18px;
height: 18px;
}
}