Files
Desktop/stylesheets/components/ToastManager.scss
2026-03-02 17:56:54 -08:00

67 lines
1.2 KiB
SCSS

// Copyright 2024 Signal Messenger, LLC
// SPDX-License-Identifier: AGPL-3.0-only
@use '../variables';
.ToastManagerContainer {
// Sync inner width with left pane
position: fixed;
width: inherit;
bottom: 0;
z-index: variables.$z-index-toast;
pointer-events: none;
}
.ToastManager {
display: flex;
flex-direction: column-reverse;
gap: 16px;
margin: 16px;
pointer-events: none;
& * {
pointer-events: auto;
}
// Separate container used when modals are on screen
&__root {
display: flex;
flex-direction: column;
position: fixed;
bottom: 16px;
z-index: variables.$z-index-toast;
inset-inline-start: 0;
width: 100%;
align-items: center;
pointer-events: none;
& * {
pointer-events: auto;
}
}
}
.ToastManager--narrow-sidebar.ToastManager--composition-area-visible {
position: fixed;
inset-inline-start: 0;
width: 100%;
align-items: center;
// Roughly size of composer + a bit of padding
bottom: 40px;
}
.ToastManager--full-screen-call {
bottom: calc(variables.$CallControls__height + 32px);
}
.ToastManager--megaphones {
margin: 12px;
}
.ToastManager--megaphones.ToastManager--narrow-sidebar {
margin: 10px;
}