2019-11-20 15:18:28 +00:00
|
|
|
/*
|
2024-09-09 13:57:16 +00:00
|
|
|
Copyright 2024 New Vector Ltd.
|
2021-03-26 11:13:39 +00:00
|
|
|
Copyright 2019-2021 The Matrix.org Foundation C.I.C.
|
2019-11-20 15:18:28 +00:00
|
|
|
|
2024-09-09 13:57:16 +00:00
|
|
|
SPDX-License-Identifier: AGPL-3.0-only OR GPL-3.0-only
|
|
|
|
Please see LICENSE files in the repository root for full details.
|
2019-11-20 15:18:28 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
.mx_ToastContainer {
|
|
|
|
position: absolute;
|
2023-04-28 14:56:26 +00:00
|
|
|
top: 0;
|
2019-11-20 15:18:28 +00:00
|
|
|
left: 70px;
|
|
|
|
z-index: 101;
|
2023-04-28 14:56:26 +00:00
|
|
|
padding: 4px;
|
2019-11-20 15:18:28 +00:00
|
|
|
display: grid;
|
|
|
|
grid-template-rows: 1fr 14px 6px;
|
|
|
|
|
|
|
|
&.mx_ToastContainer_stacked::before {
|
|
|
|
content: "";
|
|
|
|
margin: 0 4px;
|
|
|
|
grid-row: 2 / 4;
|
|
|
|
grid-column: 1;
|
2021-08-12 14:20:30 +00:00
|
|
|
background-color: $system;
|
2020-05-21 15:32:19 +00:00
|
|
|
box-shadow: 0px 4px 20px rgba(0, 0, 0, 0.5);
|
2019-11-20 15:18:28 +00:00
|
|
|
border-radius: 8px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.mx_Toast_toast {
|
2023-04-28 14:56:26 +00:00
|
|
|
grid-row: 1 / 3;
|
|
|
|
grid-column: 1;
|
2024-03-13 13:38:32 +00:00
|
|
|
background-color: var(--cpd-color-bg-canvas-default);
|
2023-04-18 11:38:41 +00:00
|
|
|
color: $primary-content;
|
2024-03-13 13:38:32 +00:00
|
|
|
box-shadow: 0px 4px 24px rgba(0, 0, 0, 0.1);
|
|
|
|
border: var(--cpd-border-width-1) solid var(--cpd-color-border-interactive-secondary);
|
|
|
|
border-radius: 12px;
|
2023-04-18 11:38:41 +00:00
|
|
|
overflow: hidden;
|
2023-04-28 14:56:26 +00:00
|
|
|
display: grid;
|
|
|
|
grid-template-columns: 22px 1fr;
|
|
|
|
column-gap: 8px;
|
|
|
|
row-gap: 4px;
|
2024-03-13 13:38:32 +00:00
|
|
|
padding: var(--cpd-space-3x);
|
2019-11-20 15:18:28 +00:00
|
|
|
|
|
|
|
&.mx_Toast_hasIcon {
|
2022-12-12 11:24:14 +00:00
|
|
|
&::before,
|
|
|
|
&::after {
|
2019-11-20 15:18:28 +00:00
|
|
|
content: "";
|
2023-04-28 14:56:26 +00:00
|
|
|
width: 22px;
|
|
|
|
height: 22px;
|
2019-11-20 15:18:28 +00:00
|
|
|
grid-column: 1;
|
|
|
|
grid-row: 1;
|
|
|
|
mask-size: 100%;
|
2020-07-13 23:52:03 +00:00
|
|
|
mask-position: center;
|
2019-11-20 15:18:28 +00:00
|
|
|
mask-repeat: no-repeat;
|
2020-07-10 14:32:34 +00:00
|
|
|
background-size: 100%;
|
|
|
|
background-repeat: no-repeat;
|
2019-11-20 15:18:28 +00:00
|
|
|
}
|
|
|
|
|
2023-04-28 14:56:26 +00:00
|
|
|
&.mx_Toast_icon_verification::after {
|
|
|
|
mask-image: url("$(res)/img/e2e/normal.svg");
|
|
|
|
background-color: $primary-content;
|
|
|
|
}
|
|
|
|
|
2020-07-13 23:52:03 +00:00
|
|
|
&.mx_Toast_icon_verification_warning {
|
2022-07-27 13:39:29 +00:00
|
|
|
/* white infill for the hollow svg mask */
|
2020-07-13 23:52:03 +00:00
|
|
|
&::before {
|
|
|
|
background-color: #ffffff;
|
2022-12-12 11:24:14 +00:00
|
|
|
mask-image: url("$(res)/img/e2e/normal.svg");
|
2021-06-23 15:10:47 +00:00
|
|
|
mask-size: 80%;
|
2020-07-13 23:52:03 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
&::after {
|
|
|
|
mask-image: url("$(res)/img/e2e/warning.svg");
|
2022-12-20 02:07:28 +00:00
|
|
|
background-color: $e2e-warning-color;
|
2020-07-13 23:52:03 +00:00
|
|
|
}
|
2020-01-17 11:43:35 +00:00
|
|
|
}
|
|
|
|
|
2020-09-16 12:57:23 +00:00
|
|
|
&.mx_Toast_icon_secure_backup::after {
|
2022-12-12 11:24:14 +00:00
|
|
|
mask-image: url("$(res)/img/feather-customised/secure-backup.svg");
|
2021-08-12 09:27:12 +00:00
|
|
|
background-color: $primary-content;
|
2020-09-16 12:57:23 +00:00
|
|
|
}
|
|
|
|
|
2021-11-30 18:08:46 +00:00
|
|
|
&.mx_Toast_icon_labs::after {
|
2022-12-12 11:24:14 +00:00
|
|
|
mask-image: url("$(res)/img/element-icons/flask.svg");
|
2021-11-30 18:08:46 +00:00
|
|
|
background-color: $secondary-content;
|
|
|
|
}
|
|
|
|
|
2022-12-12 11:24:14 +00:00
|
|
|
.mx_Toast_title,
|
|
|
|
.mx_Toast_body {
|
2019-11-20 15:18:28 +00:00
|
|
|
grid-column: 2;
|
|
|
|
}
|
|
|
|
}
|
2020-05-21 15:52:36 +00:00
|
|
|
&:not(.mx_Toast_hasIcon) {
|
|
|
|
padding-left: 12px;
|
|
|
|
|
|
|
|
.mx_Toast_title {
|
|
|
|
grid-column: 1 / -1;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2023-04-28 14:56:26 +00:00
|
|
|
.mx_Toast_title,
|
|
|
|
.mx_Toast_description {
|
|
|
|
padding-right: 8px;
|
|
|
|
}
|
|
|
|
|
2020-05-21 15:32:19 +00:00
|
|
|
.mx_Toast_title {
|
2023-04-28 14:56:26 +00:00
|
|
|
display: flex;
|
2022-04-14 20:35:52 +00:00
|
|
|
align-items: center;
|
|
|
|
column-gap: 8px;
|
2020-05-21 15:52:36 +00:00
|
|
|
width: 100%;
|
2023-04-28 14:56:26 +00:00
|
|
|
box-sizing: border-box;
|
2020-05-21 15:52:36 +00:00
|
|
|
|
2020-05-21 15:32:19 +00:00
|
|
|
h2 {
|
|
|
|
margin: 0;
|
2024-08-09 12:32:37 +00:00
|
|
|
font: var(--cpd-font-body-lg-semibold);
|
2023-04-28 14:56:26 +00:00
|
|
|
display: inline;
|
|
|
|
width: auto;
|
2020-05-21 15:32:19 +00:00
|
|
|
}
|
|
|
|
|
2022-04-14 20:35:52 +00:00
|
|
|
.mx_Toast_title_countIndicator {
|
2020-05-21 15:32:19 +00:00
|
|
|
font-size: $font-12px;
|
2020-05-21 16:12:16 +00:00
|
|
|
line-height: $font-22px;
|
2021-09-03 16:21:09 +00:00
|
|
|
color: $secondary-content;
|
2022-07-27 13:39:29 +00:00
|
|
|
margin-inline-start: auto; /* on the end side of the div */
|
2020-05-21 15:32:19 +00:00
|
|
|
}
|
2019-11-20 15:18:28 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.mx_Toast_body {
|
|
|
|
grid-column: 1 / 3;
|
|
|
|
grid-row: 2;
|
|
|
|
}
|
|
|
|
|
|
|
|
.mx_Toast_buttons {
|
|
|
|
display: flex;
|
2022-04-14 20:35:52 +00:00
|
|
|
justify-content: flex-end;
|
2023-04-28 14:56:26 +00:00
|
|
|
column-gap: 5px;
|
|
|
|
|
|
|
|
.mx_AccessibleButton {
|
|
|
|
min-width: 96px;
|
|
|
|
box-sizing: border-box;
|
|
|
|
}
|
2019-11-20 15:18:28 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.mx_Toast_description {
|
2023-04-28 14:56:26 +00:00
|
|
|
max-width: 272px;
|
|
|
|
overflow: hidden;
|
|
|
|
text-overflow: ellipsis;
|
|
|
|
margin: 4px 0 11px 0;
|
2024-07-30 12:57:15 +00:00
|
|
|
color: $secondary-content;
|
2023-06-29 10:30:25 +00:00
|
|
|
font: var(--cpd-font-body-sm-regular);
|
2020-05-21 15:32:19 +00:00
|
|
|
|
|
|
|
a {
|
|
|
|
text-decoration: none;
|
|
|
|
}
|
2019-11-20 15:18:28 +00:00
|
|
|
}
|
2020-01-29 15:00:01 +00:00
|
|
|
|
|
|
|
.mx_Toast_deviceID {
|
2020-03-31 14:26:23 +00:00
|
|
|
font-size: $font-10px;
|
2020-01-29 15:00:01 +00:00
|
|
|
}
|
2019-11-20 15:18:28 +00:00
|
|
|
}
|
|
|
|
}
|