// Copyright 2022 Signal Messenger, LLC // SPDX-License-Identifier: AGPL-3.0-only @use '../mixins'; @use '../variables'; .CallingToasts { position: fixed; 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 { @include mixins.button-reset(); } .CallingToast { @include mixins.font-subtitle; padding-block: 8px; padding-inline: 12px; border-radius: 22px; 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; inset-block-end: calc(variables.$CallControls__height + 16px); width: 100%; // Match .module-ongoing-call__footer z-index: variables.$z-index-above-base; } // Match the width behavior of .CallControls .CallingButtonToasts { display: flex; flex-grow: 1; flex-shrink: 0; flex-basis: variables.$CallControls__initial-width; max-width: variables.$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; } }