mirror of
https://github.com/vector-im/element-web.git
synced 2024-11-23 16:49:23 +08:00
f28f1d998f
* Add labs option to exclude unverified devices Add a labs option which will, when set, switch into the "invisible crypto" mode of refusing to send keys to, or decrypt messages from, devices that have not been signed by their owner. * DecryptionFailureBody: better error messages Improve the error messages shown for messages from insecure devices. * playwright: factor out `createSecondBotDevice` utility * Playwright test for messages from insecure devices * fixup! DecryptionFailureBody: better error messages Use compound colour tokens, and add a background colour. * fixup! DecryptionFailureBody: better error messages Use compound spacing tokens
34 lines
967 B
Plaintext
34 lines
967 B
Plaintext
/*
|
|
Copyright 2024 New Vector Ltd.
|
|
Copyright 2022 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_DecryptionFailureBody {
|
|
color: $secondary-content;
|
|
font-style: italic;
|
|
}
|
|
|
|
/* Formatting for the "Verified identity has changed" error */
|
|
.mx_DecryptionFailureVerifiedIdentityChanged > span {
|
|
/* Show it in red */
|
|
color: var(--cpd-color-text-critical-primary);
|
|
background-color: var(--cpd-color-bg-critical-subtle);
|
|
|
|
/* With a red border */
|
|
border: 1px solid var(--cpd-color-border-critical-subtle);
|
|
border-radius: $font-16px;
|
|
|
|
/* Some space inside the border */
|
|
padding: var(--cpd-space-1x) var(--cpd-space-3x) var(--cpd-space-1x) var(--cpd-space-2x);
|
|
|
|
/* some space between the (!) icon and text */
|
|
display: inline-flex;
|
|
gap: var(--cpd-space-2x);
|
|
|
|
/* Center vertically */
|
|
align-items: center;
|
|
}
|