signal-desktop/stylesheets/components/CallingToast.scss

79 lines
1.5 KiB
SCSS
Raw Normal View History

// Copyright 2022 Signal Messenger, LLC
// SPDX-License-Identifier: AGPL-3.0-only
2024-11-15 23:09:31 +00:00
@use '../mixins';
@use '../variables';
.CallingToasts {
position: fixed;
2024-11-15 23:09:31 +00:00
z-index: variables.$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 {
2024-11-15 23:09:31 +00:00
@include mixins.button-reset();
}
.CallingToast {
2024-11-15 23:09:31 +00:00
@include mixins.font-subtitle;
padding-block: 8px;
padding-inline: 12px;
border-radius: 22px;
2024-11-15 23:09:31 +00:00
background-color: variables.$color-gray-80;
color: variables.$color-gray-15;
text-align: center;
user-select: none;
&__reconnecting {
display: flex;
align-items: center;
gap: 8px;
}
}
.CallingButtonToasts__outer {
position: absolute;
2024-11-15 23:09:31 +00:00
inset-block-end: calc(variables.$CallControls__height + 16px);
width: 100%;
// Match .module-ongoing-call__footer
2024-11-15 23:09:31 +00:00
z-index: variables.$z-index-above-base;
}
// Match the width behavior of .CallControls
.CallingButtonToasts {
display: flex;
flex-grow: 1;
flex-shrink: 0;
2024-11-15 23:09:31 +00:00
flex-basis: variables.$CallControls__initial-width;
max-width: variables.$CallControls__max-width;
}
.CallingButtonToasts .CallingToasts {
position: absolute;
top: -16px;
transform: translateY(-100%);
2023-11-16 19:55:35 +00:00
inset-inline-start: 0;
}
.CallingToast__viewChanged {
display: flex;
align-items: center;
gap: 8px;
&__icon {
width: 18px;
height: 18px;
}
}