2019-11-20 18:18:28 +03:00
|
|
|
/*
|
2021-03-26 14:13:39 +03:00
|
|
|
Copyright 2019-2021 The Matrix.org Foundation C.I.C.
|
2019-11-20 18:18:28 +03:00
|
|
|
|
|
|
|
Licensed under the Apache License, Version 2.0 (the "License");
|
|
|
|
you may not use this file except in compliance with the License.
|
|
|
|
You may obtain a copy of the License at
|
|
|
|
|
|
|
|
http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
|
|
|
|
Unless required by applicable law or agreed to in writing, software
|
|
|
|
distributed under the License is distributed on an "AS IS" BASIS,
|
|
|
|
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
|
|
See the License for the specific language governing permissions and
|
|
|
|
limitations under the License.
|
|
|
|
*/
|
|
|
|
|
|
|
|
.mx_ToastContainer {
|
|
|
|
position: absolute;
|
|
|
|
top: 0;
|
|
|
|
left: 70px;
|
|
|
|
z-index: 101;
|
|
|
|
padding: 4px;
|
|
|
|
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 17:20:30 +03:00
|
|
|
background-color: $system;
|
2020-05-21 18:32:19 +03:00
|
|
|
box-shadow: 0px 4px 20px rgba(0, 0, 0, 0.5);
|
2019-11-20 18:18:28 +03:00
|
|
|
border-radius: 8px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.mx_Toast_toast {
|
|
|
|
grid-row: 1 / 3;
|
|
|
|
grid-column: 1;
|
2021-08-12 17:20:30 +03:00
|
|
|
background-color: $system;
|
2021-08-12 12:27:12 +03:00
|
|
|
color: $primary-content;
|
2020-05-21 18:32:19 +03:00
|
|
|
box-shadow: 0px 4px 20px rgba(0, 0, 0, 0.5);
|
2019-11-20 18:18:28 +03:00
|
|
|
border-radius: 8px;
|
|
|
|
overflow: hidden;
|
|
|
|
display: grid;
|
2020-05-21 19:47:35 +03:00
|
|
|
grid-template-columns: 22px 1fr;
|
|
|
|
column-gap: 8px;
|
2019-11-20 18:18:28 +03:00
|
|
|
row-gap: 4px;
|
|
|
|
padding: 8px;
|
|
|
|
|
|
|
|
&.mx_Toast_hasIcon {
|
2020-07-14 02:52:03 +03:00
|
|
|
&::before, &::after {
|
2019-11-20 18:18:28 +03:00
|
|
|
content: "";
|
2020-01-21 18:30:01 +03:00
|
|
|
width: 22px;
|
|
|
|
height: 22px;
|
2019-11-20 18:18:28 +03:00
|
|
|
grid-column: 1;
|
|
|
|
grid-row: 1;
|
|
|
|
mask-size: 100%;
|
2020-07-14 02:52:03 +03:00
|
|
|
mask-position: center;
|
2019-11-20 18:18:28 +03:00
|
|
|
mask-repeat: no-repeat;
|
2020-07-10 17:32:34 +03:00
|
|
|
background-size: 100%;
|
|
|
|
background-repeat: no-repeat;
|
2019-11-20 18:18:28 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
&.mx_Toast_icon_verification::after {
|
|
|
|
mask-image: url("$(res)/img/e2e/normal.svg");
|
2021-08-12 12:27:12 +03:00
|
|
|
background-color: $primary-content;
|
2019-11-20 18:18:28 +03:00
|
|
|
}
|
|
|
|
|
2020-07-14 02:52:03 +03:00
|
|
|
&.mx_Toast_icon_verification_warning {
|
|
|
|
// white infill for the hollow svg mask
|
|
|
|
&::before {
|
|
|
|
background-color: #ffffff;
|
|
|
|
mask-image: url('$(res)/img/e2e/normal.svg');
|
2021-06-23 18:10:47 +03:00
|
|
|
mask-size: 80%;
|
2020-07-14 02:52:03 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
&::after {
|
|
|
|
mask-image: url("$(res)/img/e2e/warning.svg");
|
2021-11-11 16:37:29 +03:00
|
|
|
background-color: $alert;
|
2020-07-14 02:52:03 +03:00
|
|
|
}
|
2020-01-17 14:43:35 +03:00
|
|
|
}
|
|
|
|
|
2020-09-16 15:57:23 +03:00
|
|
|
&.mx_Toast_icon_secure_backup::after {
|
|
|
|
mask-image: url('$(res)/img/feather-customised/secure-backup.svg');
|
2021-08-12 12:27:12 +03:00
|
|
|
background-color: $primary-content;
|
2020-09-16 15:57:23 +03:00
|
|
|
}
|
|
|
|
|
2021-11-30 21:08:46 +03:00
|
|
|
&.mx_Toast_icon_labs::after {
|
|
|
|
mask-image: url('$(res)/img/element-icons/flask.svg');
|
|
|
|
background-color: $secondary-content;
|
|
|
|
}
|
|
|
|
|
2020-05-21 18:52:36 +03:00
|
|
|
.mx_Toast_title, .mx_Toast_body {
|
2019-11-20 18:18:28 +03:00
|
|
|
grid-column: 2;
|
|
|
|
}
|
|
|
|
}
|
2020-05-21 18:52:36 +03:00
|
|
|
&:not(.mx_Toast_hasIcon) {
|
|
|
|
padding-left: 12px;
|
|
|
|
|
|
|
|
.mx_Toast_title {
|
|
|
|
grid-column: 1 / -1;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.mx_Toast_title,
|
|
|
|
.mx_Toast_description {
|
|
|
|
padding-right: 8px;
|
|
|
|
}
|
2019-11-20 18:18:28 +03:00
|
|
|
|
2020-05-21 18:32:19 +03:00
|
|
|
.mx_Toast_title {
|
2022-04-14 23:35:52 +03:00
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
column-gap: 8px;
|
2020-05-21 18:52:36 +03:00
|
|
|
width: 100%;
|
|
|
|
box-sizing: border-box;
|
|
|
|
|
2020-05-21 18:32:19 +03:00
|
|
|
h2 {
|
|
|
|
margin: 0;
|
|
|
|
font-size: $font-15px;
|
|
|
|
font-weight: 600;
|
|
|
|
display: inline;
|
|
|
|
width: auto;
|
|
|
|
}
|
|
|
|
|
2022-04-14 23:35:52 +03:00
|
|
|
.mx_Toast_title_countIndicator {
|
2020-05-21 18:32:19 +03:00
|
|
|
font-size: $font-12px;
|
2020-05-21 19:12:16 +03:00
|
|
|
line-height: $font-22px;
|
2021-09-03 19:21:09 +03:00
|
|
|
color: $secondary-content;
|
2022-04-14 23:35:52 +03:00
|
|
|
margin-inline-start: auto; // on the end side of the div
|
2020-05-21 18:32:19 +03:00
|
|
|
}
|
2019-11-20 18:18:28 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
.mx_Toast_body {
|
|
|
|
grid-column: 1 / 3;
|
|
|
|
grid-row: 2;
|
|
|
|
}
|
|
|
|
|
|
|
|
.mx_Toast_buttons {
|
|
|
|
display: flex;
|
2022-04-14 23:35:52 +03:00
|
|
|
justify-content: flex-end;
|
|
|
|
column-gap: 5px;
|
2020-05-21 18:32:19 +03:00
|
|
|
|
2021-06-21 16:16:37 +03:00
|
|
|
.mx_AccessibleButton {
|
2020-05-21 18:32:19 +03:00
|
|
|
min-width: 96px;
|
|
|
|
box-sizing: border-box;
|
|
|
|
}
|
2019-11-20 18:18:28 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
.mx_Toast_description {
|
2020-04-29 19:28:45 +03:00
|
|
|
max-width: 272px;
|
2020-04-29 19:38:32 +03:00
|
|
|
overflow: hidden;
|
|
|
|
text-overflow: ellipsis;
|
2019-11-20 18:18:28 +03:00
|
|
|
margin: 4px 0 11px 0;
|
2020-03-31 17:26:23 +03:00
|
|
|
font-size: $font-12px;
|
2020-05-21 18:32:19 +03:00
|
|
|
|
|
|
|
a {
|
|
|
|
text-decoration: none;
|
|
|
|
}
|
2019-11-20 18:18:28 +03:00
|
|
|
}
|
2020-01-29 18:00:01 +03:00
|
|
|
|
2021-03-26 14:13:39 +03:00
|
|
|
.mx_Toast_detail {
|
2021-08-12 12:30:35 +03:00
|
|
|
color: $secondary-content;
|
2021-03-26 14:13:39 +03:00
|
|
|
}
|
|
|
|
|
2020-01-29 18:00:01 +03:00
|
|
|
.mx_Toast_deviceID {
|
2020-03-31 17:26:23 +03:00
|
|
|
font-size: $font-10px;
|
2020-01-29 18:00:01 +03:00
|
|
|
}
|
2019-11-20 18:18:28 +03:00
|
|
|
}
|
|
|
|
}
|