2019-11-20 15:18:28 +00:00
|
|
|
/*
|
|
|
|
Copyright 2019 The Matrix.org Foundation C.I.C.
|
|
|
|
|
|
|
|
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;
|
2020-05-21 15:32:19 +00:00
|
|
|
background-color: $dark-panel-bg-color;
|
|
|
|
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 {
|
|
|
|
grid-row: 1 / 3;
|
|
|
|
grid-column: 1;
|
|
|
|
color: $primary-fg-color;
|
2020-05-21 15:32:19 +00:00
|
|
|
background-color: $dark-panel-bg-color;
|
|
|
|
box-shadow: 0px 4px 20px rgba(0, 0, 0, 0.5);
|
2019-11-20 15:18:28 +00:00
|
|
|
border-radius: 8px;
|
|
|
|
overflow: hidden;
|
|
|
|
display: grid;
|
|
|
|
grid-template-columns: 20px 1fr;
|
|
|
|
column-gap: 10px;
|
|
|
|
row-gap: 4px;
|
|
|
|
padding: 8px;
|
|
|
|
padding-right: 16px;
|
|
|
|
|
|
|
|
&.mx_Toast_hasIcon {
|
|
|
|
&::after {
|
|
|
|
content: "";
|
2020-01-21 15:30:01 +00:00
|
|
|
width: 22px;
|
|
|
|
height: 22px;
|
2019-11-20 15:18:28 +00:00
|
|
|
grid-column: 1;
|
|
|
|
grid-row: 1;
|
|
|
|
mask-size: 100%;
|
|
|
|
mask-repeat: no-repeat;
|
|
|
|
}
|
|
|
|
|
|
|
|
&.mx_Toast_icon_verification::after {
|
|
|
|
mask-image: url("$(res)/img/e2e/normal.svg");
|
|
|
|
background-color: $primary-fg-color;
|
|
|
|
}
|
|
|
|
|
2020-01-17 11:43:35 +00:00
|
|
|
&.mx_Toast_icon_verification_warning::after {
|
|
|
|
background-image: url("$(res)/img/e2e/warning.svg");
|
|
|
|
}
|
|
|
|
|
2019-11-20 15:18:28 +00:00
|
|
|
h2, .mx_Toast_body {
|
|
|
|
grid-column: 2;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-05-21 15:32:19 +00:00
|
|
|
.mx_Toast_title {
|
|
|
|
h2 {
|
|
|
|
grid-column: 1 / 3;
|
|
|
|
grid-row: 1;
|
|
|
|
margin: 0;
|
|
|
|
font-size: $font-15px;
|
|
|
|
font-weight: 600;
|
|
|
|
display: inline;
|
|
|
|
width: auto;
|
|
|
|
}
|
|
|
|
|
|
|
|
span {
|
|
|
|
float: right;
|
|
|
|
font-size: $font-12px;
|
|
|
|
line-height: $font-21px;
|
|
|
|
color: $muted-fg-color;
|
|
|
|
}
|
2019-11-20 15:18:28 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.mx_Toast_body {
|
|
|
|
grid-column: 1 / 3;
|
|
|
|
grid-row: 2;
|
|
|
|
}
|
|
|
|
|
|
|
|
.mx_Toast_buttons {
|
2020-05-21 15:32:19 +00:00
|
|
|
float: right;
|
2019-11-20 15:18:28 +00:00
|
|
|
display: flex;
|
2020-05-21 15:32:19 +00:00
|
|
|
|
|
|
|
.mx_FormButton {
|
|
|
|
min-width: 96px;
|
|
|
|
box-sizing: border-box;
|
|
|
|
}
|
2019-11-20 15:18:28 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.mx_Toast_description {
|
2020-04-29 16:28:45 +00:00
|
|
|
max-width: 272px;
|
2020-04-29 16:38:32 +00:00
|
|
|
overflow: hidden;
|
|
|
|
text-overflow: ellipsis;
|
2019-11-20 15:18:28 +00:00
|
|
|
margin: 4px 0 11px 0;
|
2020-03-31 14:26:23 +00:00
|
|
|
font-size: $font-12px;
|
2020-05-21 15:32:19 +00:00
|
|
|
|
|
|
|
.mx_AccessibleButton_kind_link {
|
|
|
|
font-size: inherit;
|
|
|
|
padding: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
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
|
|
|
}
|
|
|
|
}
|