2020-01-25 00:16:46 +08:00
|
|
|
/*
|
2024-09-09 21:57:16 +08:00
|
|
|
Copyright 2024 New Vector Ltd.
|
2020-01-25 00:16:46 +08:00
|
|
|
Copyright 2020 The Matrix.org Foundation C.I.C.
|
|
|
|
|
2024-09-09 21:57:16 +08:00
|
|
|
SPDX-License-Identifier: AGPL-3.0-only OR GPL-3.0-only
|
|
|
|
Please see LICENSE files in the repository root for full details.
|
2020-01-25 00:16:46 +08:00
|
|
|
*/
|
2020-04-02 22:42:39 +08:00
|
|
|
|
|
|
|
.mx_VerificationPanel_verified_section,
|
|
|
|
.mx_VerificationPanel_reciprocate_section {
|
2022-07-27 21:39:29 +08:00
|
|
|
/* center the big shield icon */
|
2020-04-02 22:42:39 +08:00
|
|
|
.mx_E2EIcon {
|
2022-07-27 21:39:29 +08:00
|
|
|
/* Override general user info margin */
|
2020-04-02 22:42:39 +08:00
|
|
|
margin: 20px auto !important;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2022-05-12 21:21:22 +08:00
|
|
|
.mx_UserInfo.mx_BaseCard {
|
|
|
|
.mx_UserInfo_container:not(.mx_UserInfo_separator) {
|
|
|
|
> div > p {
|
|
|
|
margin-top: 0;
|
|
|
|
margin-bottom: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
.mx_VerificationPanel_verifyByEmojiButton,
|
|
|
|
.mx_UserInfo_wideButton {
|
|
|
|
width: fit-content;
|
|
|
|
}
|
|
|
|
|
|
|
|
.mx_EncryptionInfo_spinner,
|
|
|
|
.mx_VerificationShowSas {
|
|
|
|
margin-inline-start: auto;
|
|
|
|
margin-inline-end: auto;
|
|
|
|
}
|
|
|
|
|
|
|
|
.mx_Spinner,
|
|
|
|
.mx_VerificationShowSas {
|
|
|
|
align-items: center;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-03-26 23:51:24 +08:00
|
|
|
.mx_EncryptionPanel_cancel {
|
2022-05-08 03:08:00 +08:00
|
|
|
@mixin customisedCancelButton;
|
2020-03-26 23:51:24 +08:00
|
|
|
position: absolute;
|
|
|
|
z-index: 100;
|
|
|
|
top: 14px;
|
|
|
|
right: 14px;
|
|
|
|
}
|
|
|
|
|
2020-01-28 01:17:05 +08:00
|
|
|
.mx_VerificationPanel_qrCode {
|
|
|
|
padding: 4px 4px 0 4px;
|
|
|
|
background: white;
|
|
|
|
border-radius: 4px;
|
|
|
|
width: max-content;
|
|
|
|
max-width: 100%;
|
2022-07-27 21:39:29 +08:00
|
|
|
/* Override general user info margin */
|
2020-01-31 06:43:14 +08:00
|
|
|
margin: 0 auto !important;
|
2020-01-28 01:17:05 +08:00
|
|
|
|
|
|
|
canvas {
|
2022-07-27 21:39:29 +08:00
|
|
|
/* override height and width which are set on the element directly */
|
2020-01-28 01:17:05 +08:00
|
|
|
height: auto !important;
|
|
|
|
width: 100% !important;
|
|
|
|
max-width: 240px;
|
|
|
|
}
|
|
|
|
}
|
2020-04-02 18:54:14 +08:00
|
|
|
|
|
|
|
.mx_VerificationPanel_reciprocate_section {
|
2021-06-21 21:16:37 +08:00
|
|
|
.mx_AccessibleButton {
|
2020-04-02 18:54:14 +08:00
|
|
|
width: 100%;
|
|
|
|
box-sizing: border-box;
|
|
|
|
padding: 10px;
|
|
|
|
display: block;
|
|
|
|
margin: 10px 0;
|
|
|
|
}
|
|
|
|
}
|
2020-02-10 21:20:54 +08:00
|
|
|
}
|
|
|
|
|
2022-07-27 21:39:29 +08:00
|
|
|
/* Special case styling for EncryptionPanel in a Modal dialog */
|
2022-12-12 19:24:14 +08:00
|
|
|
.mx_Dialog,
|
|
|
|
.mx_CompleteSecurity_body {
|
2020-02-10 21:20:54 +08:00
|
|
|
.mx_VerificationPanel_QRPhase_startOptions {
|
|
|
|
display: flex;
|
|
|
|
margin-top: 10px;
|
|
|
|
margin-bottom: 10px;
|
|
|
|
align-items: stretch;
|
2020-04-03 23:32:09 +08:00
|
|
|
justify-content: center;
|
2020-02-10 21:20:54 +08:00
|
|
|
|
|
|
|
> .mx_VerificationPanel_QRPhase_betweenText {
|
|
|
|
width: 50px;
|
|
|
|
vertical-align: middle;
|
|
|
|
text-align: center;
|
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
justify-content: center;
|
|
|
|
}
|
|
|
|
|
|
|
|
.mx_VerificationPanel_QRPhase_startOption {
|
2021-08-25 17:49:02 +08:00
|
|
|
background-color: $header-panel-bg-color;
|
2020-02-10 21:20:54 +08:00
|
|
|
border-radius: 10px;
|
|
|
|
flex: 1;
|
|
|
|
display: flex;
|
2020-04-03 23:32:09 +08:00
|
|
|
padding: 20px;
|
2020-02-10 21:20:54 +08:00
|
|
|
align-items: center;
|
|
|
|
flex-direction: column;
|
|
|
|
position: relative;
|
2020-04-03 23:32:09 +08:00
|
|
|
max-width: 310px;
|
|
|
|
justify-content: space-between;
|
2020-02-10 21:20:54 +08:00
|
|
|
|
2022-12-12 19:24:14 +08:00
|
|
|
canvas,
|
|
|
|
.mx_VerificationPanel_QRPhase_noQR {
|
2020-02-10 21:20:54 +08:00
|
|
|
width: 220px !important;
|
|
|
|
height: 220px !important;
|
|
|
|
background-color: #fff;
|
|
|
|
border-radius: 4px;
|
|
|
|
vertical-align: middle;
|
|
|
|
text-align: center;
|
|
|
|
padding: 10px;
|
|
|
|
}
|
|
|
|
|
|
|
|
> p {
|
2020-04-03 23:32:09 +08:00
|
|
|
margin-top: 0;
|
2020-02-10 21:20:54 +08:00
|
|
|
font-weight: 700;
|
|
|
|
}
|
|
|
|
|
|
|
|
.mx_VerificationPanel_QRPhase_helpText {
|
2023-06-29 18:30:25 +08:00
|
|
|
font: var(--cpd-font-body-md-regular);
|
2020-04-03 23:32:09 +08:00
|
|
|
margin: 30px 0;
|
2020-02-10 21:20:54 +08:00
|
|
|
text-align: center;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2022-07-27 21:39:29 +08:00
|
|
|
/* EncryptionPanel when verification is done */
|
2020-02-10 21:20:54 +08:00
|
|
|
.mx_VerificationPanel_verified_section {
|
2022-07-27 21:39:29 +08:00
|
|
|
/* right align the "Got it" button */
|
2020-02-10 21:20:54 +08:00
|
|
|
.mx_AccessibleButton {
|
|
|
|
float: right;
|
|
|
|
}
|
|
|
|
}
|
2020-04-02 19:00:45 +08:00
|
|
|
|
|
|
|
.mx_VerificationPanel_reciprocate_section {
|
2020-04-02 22:42:39 +08:00
|
|
|
.mx_AccessibleButton {
|
|
|
|
margin-left: 10px;
|
|
|
|
padding: 7px 40px;
|
2020-04-02 19:00:45 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
.mx_VerificationPanel_reciprocateButtons {
|
|
|
|
display: flex;
|
|
|
|
flex-direction: row;
|
2020-04-02 22:42:39 +08:00
|
|
|
justify-content: flex-end;
|
2020-04-02 19:00:45 +08:00
|
|
|
}
|
|
|
|
}
|
2020-01-25 00:16:46 +08:00
|
|
|
}
|