mirror of
https://github.com/vector-im/element-web.git
synced 2024-11-26 18:38:41 +08:00
c05c429803
Co-authored-by: github-merge-queue <118344674+github-merge-queue@users.noreply.github.com> Co-authored-by: github-merge-queue <github-merge-queue@users.noreply.github.com> Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Florian Duros <florian.duros@ormaz.fr> Co-authored-by: Kim Brose <kim.brose@nordeck.net> Co-authored-by: Florian Duros <florianduros@element.io> Co-authored-by: R Midhun Suresh <hi@midhun.dev> Co-authored-by: dbkr <986903+dbkr@users.noreply.github.com> Co-authored-by: ElementRobot <releases@riot.im> Co-authored-by: dbkr <dbkr@users.noreply.github.com> Co-authored-by: David Baker <dbkr@users.noreply.github.com> Co-authored-by: Michael Telatynski <7t3chguy@gmail.com> Co-authored-by: Richard van der Hoff <1389908+richvdh@users.noreply.github.com> Co-authored-by: David Langley <davidl@element.io> Co-authored-by: Michael Weimann <michaelw@matrix.org> Co-authored-by: Timshel <Timshel@users.noreply.github.com> Co-authored-by: Sahil Silare <32628578+sahil9001@users.noreply.github.com> Co-authored-by: Will Hunt <will@half-shot.uk> Co-authored-by: Hubert Chathi <hubert@uhoreg.ca> Co-authored-by: Andrew Ferrazzutti <andrewf@element.io> Co-authored-by: Robin <robin@robin.town> Co-authored-by: Tulir Asokan <tulir@maunium.net>
161 lines
4.3 KiB
Plaintext
161 lines
4.3 KiB
Plaintext
/*
|
|
Copyright 2024 New Vector Ltd.
|
|
Copyright 2019-2021 The Matrix.org Foundation C.I.C.
|
|
|
|
SPDX-License-Identifier: AGPL-3.0-only OR GPL-3.0-only
|
|
Please see LICENSE files in the repository root for full details.
|
|
*/
|
|
|
|
.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;
|
|
background-color: $system;
|
|
box-shadow: 0px 4px 20px rgba(0, 0, 0, 0.5);
|
|
border-radius: 8px;
|
|
}
|
|
|
|
.mx_Toast_toast {
|
|
grid-row: 1 / 3;
|
|
grid-column: 1;
|
|
background-color: var(--cpd-color-bg-canvas-default);
|
|
color: $primary-content;
|
|
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;
|
|
overflow: hidden;
|
|
display: grid;
|
|
grid-template-columns: 22px 1fr;
|
|
column-gap: 8px;
|
|
row-gap: 4px;
|
|
padding: var(--cpd-space-3x);
|
|
|
|
&.mx_Toast_hasIcon {
|
|
&::before,
|
|
&::after {
|
|
content: "";
|
|
width: 22px;
|
|
height: 22px;
|
|
grid-column: 1;
|
|
grid-row: 1;
|
|
mask-size: 100%;
|
|
mask-position: center;
|
|
mask-repeat: no-repeat;
|
|
background-size: 100%;
|
|
background-repeat: no-repeat;
|
|
}
|
|
|
|
&.mx_Toast_icon_verification::after {
|
|
mask-image: url("$(res)/img/e2e/normal.svg");
|
|
background-color: $primary-content;
|
|
}
|
|
|
|
&.mx_Toast_icon_verification_warning {
|
|
/* white infill for the hollow svg mask */
|
|
&::before {
|
|
background-color: #ffffff;
|
|
mask-image: url("$(res)/img/e2e/normal.svg");
|
|
mask-size: 80%;
|
|
}
|
|
|
|
&::after {
|
|
mask-image: url("$(res)/img/e2e/warning.svg");
|
|
background-color: $e2e-warning-color;
|
|
}
|
|
}
|
|
|
|
&.mx_Toast_icon_secure_backup::after {
|
|
mask-image: url("$(res)/img/feather-customised/secure-backup.svg");
|
|
background-color: $primary-content;
|
|
}
|
|
|
|
&.mx_Toast_icon_labs::after {
|
|
mask-image: url("$(res)/img/element-icons/flask.svg");
|
|
background-color: $secondary-content;
|
|
}
|
|
|
|
.mx_Toast_title,
|
|
.mx_Toast_body {
|
|
grid-column: 2;
|
|
}
|
|
}
|
|
&:not(.mx_Toast_hasIcon) {
|
|
padding-left: 12px;
|
|
|
|
.mx_Toast_title {
|
|
grid-column: 1 / -1;
|
|
}
|
|
}
|
|
|
|
.mx_Toast_title,
|
|
.mx_Toast_description {
|
|
padding-right: 8px;
|
|
}
|
|
|
|
.mx_Toast_title {
|
|
display: flex;
|
|
align-items: center;
|
|
column-gap: 8px;
|
|
width: 100%;
|
|
box-sizing: border-box;
|
|
|
|
h2 {
|
|
margin: 0;
|
|
font: var(--cpd-font-body-lg-semibold);
|
|
display: inline;
|
|
width: auto;
|
|
}
|
|
|
|
.mx_Toast_title_countIndicator {
|
|
font-size: $font-12px;
|
|
line-height: $font-22px;
|
|
color: $secondary-content;
|
|
margin-inline-start: auto; /* on the end side of the div */
|
|
}
|
|
}
|
|
|
|
.mx_Toast_body {
|
|
grid-column: 1 / 3;
|
|
grid-row: 2;
|
|
}
|
|
|
|
.mx_Toast_buttons {
|
|
display: flex;
|
|
justify-content: flex-end;
|
|
column-gap: 5px;
|
|
|
|
.mx_AccessibleButton {
|
|
min-width: 96px;
|
|
box-sizing: border-box;
|
|
}
|
|
}
|
|
|
|
.mx_Toast_description {
|
|
max-width: 272px;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
margin: 4px 0 11px 0;
|
|
color: $secondary-content;
|
|
font: var(--cpd-font-body-sm-regular);
|
|
|
|
a {
|
|
text-decoration: none;
|
|
}
|
|
}
|
|
|
|
.mx_Toast_deviceID {
|
|
font-size: $font-10px;
|
|
}
|
|
}
|
|
}
|