mirror of
https://github.com/vector-im/element-web.git
synced 2024-11-29 22:10:57 +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>
154 lines
3.9 KiB
Plaintext
154 lines
3.9 KiB
Plaintext
/*
|
|
Copyright 2024 New Vector Ltd.
|
|
Copyright 2020 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_VerificationPanel_verified_section,
|
|
.mx_VerificationPanel_reciprocate_section {
|
|
/* center the big shield icon */
|
|
.mx_E2EIcon {
|
|
/* Override general user info margin */
|
|
margin: 20px auto !important;
|
|
}
|
|
}
|
|
|
|
.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;
|
|
}
|
|
}
|
|
|
|
.mx_EncryptionPanel_cancel {
|
|
@mixin customisedCancelButton;
|
|
position: absolute;
|
|
z-index: 100;
|
|
top: 14px;
|
|
right: 14px;
|
|
}
|
|
|
|
.mx_VerificationPanel_qrCode {
|
|
padding: 4px 4px 0 4px;
|
|
background: white;
|
|
border-radius: 4px;
|
|
width: max-content;
|
|
max-width: 100%;
|
|
/* Override general user info margin */
|
|
margin: 0 auto !important;
|
|
|
|
canvas {
|
|
/* override height and width which are set on the element directly */
|
|
height: auto !important;
|
|
width: 100% !important;
|
|
max-width: 240px;
|
|
}
|
|
}
|
|
|
|
.mx_VerificationPanel_reciprocate_section {
|
|
.mx_AccessibleButton {
|
|
width: 100%;
|
|
box-sizing: border-box;
|
|
padding: 10px;
|
|
display: block;
|
|
margin: 10px 0;
|
|
}
|
|
}
|
|
}
|
|
|
|
/* Special case styling for EncryptionPanel in a Modal dialog */
|
|
.mx_Dialog,
|
|
.mx_CompleteSecurity_body {
|
|
.mx_VerificationPanel_QRPhase_startOptions {
|
|
display: flex;
|
|
margin-top: 10px;
|
|
margin-bottom: 10px;
|
|
align-items: stretch;
|
|
justify-content: center;
|
|
|
|
> .mx_VerificationPanel_QRPhase_betweenText {
|
|
width: 50px;
|
|
vertical-align: middle;
|
|
text-align: center;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
}
|
|
|
|
.mx_VerificationPanel_QRPhase_startOption {
|
|
background-color: $header-panel-bg-color;
|
|
border-radius: 10px;
|
|
flex: 1;
|
|
display: flex;
|
|
padding: 20px;
|
|
align-items: center;
|
|
flex-direction: column;
|
|
position: relative;
|
|
max-width: 310px;
|
|
justify-content: space-between;
|
|
|
|
canvas,
|
|
.mx_VerificationPanel_QRPhase_noQR {
|
|
width: 220px !important;
|
|
height: 220px !important;
|
|
background-color: #fff;
|
|
border-radius: 4px;
|
|
vertical-align: middle;
|
|
text-align: center;
|
|
padding: 10px;
|
|
}
|
|
|
|
> p {
|
|
margin-top: 0;
|
|
font-weight: 700;
|
|
}
|
|
|
|
.mx_VerificationPanel_QRPhase_helpText {
|
|
font: var(--cpd-font-body-md-regular);
|
|
margin: 30px 0;
|
|
text-align: center;
|
|
}
|
|
}
|
|
}
|
|
|
|
/* EncryptionPanel when verification is done */
|
|
.mx_VerificationPanel_verified_section {
|
|
/* right align the "Got it" button */
|
|
.mx_AccessibleButton {
|
|
float: right;
|
|
}
|
|
}
|
|
|
|
.mx_VerificationPanel_reciprocate_section {
|
|
.mx_AccessibleButton {
|
|
margin-left: 10px;
|
|
padding: 7px 40px;
|
|
}
|
|
|
|
.mx_VerificationPanel_reciprocateButtons {
|
|
display: flex;
|
|
flex-direction: row;
|
|
justify-content: flex-end;
|
|
}
|
|
}
|
|
}
|