2021-09-22 16:59:54 -04:00
|
|
|
// Copyright 2021 Signal Messenger, LLC
|
|
|
|
// SPDX-License-Identifier: AGPL-3.0-only
|
|
|
|
|
|
|
|
.Toast {
|
2021-10-07 17:45:38 -04:00
|
|
|
$border-radius-px: 8px;
|
|
|
|
|
2021-09-22 16:59:54 -04:00
|
|
|
@include font-body-2;
|
|
|
|
|
2023-06-13 09:40:48 -07:00
|
|
|
align-items: stretch;
|
2021-10-07 17:45:38 -04:00
|
|
|
border-radius: $border-radius-px;
|
2024-07-23 17:31:40 -07:00
|
|
|
box-shadow:
|
|
|
|
0px 0px 4px rgba(0, 0, 0, 0.05),
|
|
|
|
0px 4px 12px rgba(0, 0, 0, 0.3);
|
2021-10-06 17:00:51 -04:00
|
|
|
display: flex;
|
|
|
|
justify-content: space-between;
|
2021-09-29 16:23:06 -04:00
|
|
|
user-select: none;
|
2021-12-06 16:21:30 -08:00
|
|
|
overflow: hidden;
|
2024-01-29 12:09:54 -08:00
|
|
|
width: fit-content;
|
2023-06-13 09:40:48 -07:00
|
|
|
max-width: 280px;
|
|
|
|
background-color: $color-gray-75;
|
|
|
|
color: $color-gray-05;
|
2024-01-29 12:09:54 -08:00
|
|
|
z-index: $z-index-toast;
|
|
|
|
|
|
|
|
inset-inline-start: 20px;
|
|
|
|
text-align: start;
|
2021-09-22 16:59:54 -04:00
|
|
|
|
2023-08-29 15:45:10 -07:00
|
|
|
&:focus {
|
|
|
|
outline: none;
|
|
|
|
@include keyboard-mode {
|
|
|
|
box-shadow: inset 0px 0px 0px 2px $color-ultramarine;
|
|
|
|
}
|
2021-09-22 16:59:54 -04:00
|
|
|
}
|
2023-06-13 09:40:48 -07:00
|
|
|
|
2024-01-29 12:09:54 -08:00
|
|
|
.ToastManager--narrow-sidebar & {
|
2024-03-21 15:51:22 -07:00
|
|
|
width: max-content;
|
2021-09-22 16:59:54 -04:00
|
|
|
}
|
|
|
|
|
2024-01-29 12:09:54 -08:00
|
|
|
.ToastManager--narrow-sidebar.ToastManager--composition-area-visible & {
|
|
|
|
min-width: initial;
|
|
|
|
text-align: center;
|
2022-09-26 10:24:52 -06:00
|
|
|
}
|
|
|
|
|
2021-10-06 17:00:51 -04:00
|
|
|
&__content {
|
2023-06-13 09:40:48 -07:00
|
|
|
padding-block: 13px;
|
|
|
|
padding-inline: 16px;
|
2021-10-06 17:00:51 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
&__button {
|
2023-06-13 09:40:48 -07:00
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
justify-content: center;
|
2021-10-06 17:00:51 -04:00
|
|
|
@include font-body-2-bold;
|
2021-09-22 16:59:54 -04:00
|
|
|
cursor: pointer;
|
2023-06-13 09:40:48 -07:00
|
|
|
padding-block: 13px;
|
|
|
|
padding-inline: 16px;
|
2021-12-06 16:21:30 -08:00
|
|
|
white-space: nowrap;
|
2023-08-24 14:09:23 -07:00
|
|
|
color: $color-ios-blue-tint;
|
2021-12-06 16:21:30 -08:00
|
|
|
|
2023-08-29 15:45:10 -07:00
|
|
|
&:focus {
|
|
|
|
outline: none;
|
|
|
|
@include keyboard-mode {
|
|
|
|
box-shadow: inset 0px 0px 0px 2px $color-ultramarine;
|
|
|
|
}
|
2021-12-06 16:21:30 -08:00
|
|
|
}
|
2021-09-22 16:59:54 -04:00
|
|
|
}
|
|
|
|
}
|