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