2020-01-24 16:16:46 +00:00
|
|
|
/*
|
|
|
|
Copyright 2020 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.
|
|
|
|
*/
|
2020-04-02 14:42:39 +00:00
|
|
|
|
|
|
|
.mx_VerificationPanel_verified_section,
|
|
|
|
.mx_VerificationPanel_reciprocate_section {
|
|
|
|
// center the big shield icon
|
|
|
|
.mx_E2EIcon {
|
|
|
|
// Override general user info margin
|
|
|
|
margin: 20px auto !important;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-01-24 16:16:46 +00:00
|
|
|
.mx_UserInfo {
|
2020-03-26 15:51:24 +00:00
|
|
|
.mx_EncryptionPanel_cancel {
|
2022-05-07 19:08:00 +00:00
|
|
|
@mixin customisedCancelButton;
|
2020-03-26 15:51:24 +00:00
|
|
|
width: 14px;
|
|
|
|
height: 14px;
|
2020-03-26 15:58:17 +00:00
|
|
|
background-color: $settings-subsection-fg-color;
|
2020-03-26 15:51:24 +00:00
|
|
|
position: absolute;
|
|
|
|
z-index: 100;
|
|
|
|
top: 14px;
|
|
|
|
right: 14px;
|
|
|
|
}
|
|
|
|
|
2020-01-27 17:17:05 +00:00
|
|
|
.mx_VerificationPanel_qrCode {
|
|
|
|
padding: 4px 4px 0 4px;
|
|
|
|
background: white;
|
|
|
|
border-radius: 4px;
|
|
|
|
width: max-content;
|
|
|
|
max-width: 100%;
|
2020-01-30 22:43:14 +00:00
|
|
|
// Override general user info margin
|
|
|
|
margin: 0 auto !important;
|
2020-01-27 17:17:05 +00:00
|
|
|
|
|
|
|
canvas {
|
|
|
|
// override height and width which are set on the element directly
|
|
|
|
height: auto !important;
|
|
|
|
width: 100% !important;
|
|
|
|
max-width: 240px;
|
|
|
|
}
|
|
|
|
}
|
2020-04-02 10:54:14 +00:00
|
|
|
|
|
|
|
.mx_VerificationPanel_reciprocate_section {
|
2021-06-21 13:16:37 +00:00
|
|
|
.mx_AccessibleButton {
|
2020-04-02 10:54:14 +00:00
|
|
|
width: 100%;
|
|
|
|
box-sizing: border-box;
|
|
|
|
padding: 10px;
|
|
|
|
display: block;
|
|
|
|
margin: 10px 0;
|
|
|
|
}
|
|
|
|
}
|
2020-02-10 13:20:54 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// 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;
|
2020-04-03 15:32:09 +00:00
|
|
|
justify-content: center;
|
2020-02-10 13:20:54 +00: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 09:49:02 +00:00
|
|
|
background-color: $header-panel-bg-color;
|
2020-02-10 13:20:54 +00:00
|
|
|
border-radius: 10px;
|
|
|
|
flex: 1;
|
|
|
|
display: flex;
|
2020-04-03 15:32:09 +00:00
|
|
|
padding: 20px;
|
2020-02-10 13:20:54 +00:00
|
|
|
align-items: center;
|
|
|
|
flex-direction: column;
|
|
|
|
position: relative;
|
2020-04-03 15:32:09 +00:00
|
|
|
max-width: 310px;
|
|
|
|
justify-content: space-between;
|
2020-02-10 13:20:54 +00:00
|
|
|
|
|
|
|
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 {
|
2020-04-03 15:32:09 +00:00
|
|
|
margin-top: 0;
|
2020-02-10 13:20:54 +00:00
|
|
|
font-weight: 700;
|
|
|
|
}
|
|
|
|
|
|
|
|
.mx_VerificationPanel_QRPhase_helpText {
|
2020-03-31 14:26:23 +00:00
|
|
|
font-size: $font-14px;
|
2020-04-03 15:32:09 +00:00
|
|
|
margin: 30px 0;
|
2020-02-10 13:20:54 +00:00
|
|
|
text-align: center;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// EncryptionPanel when verification is done
|
|
|
|
.mx_VerificationPanel_verified_section {
|
|
|
|
// right align the "Got it" button
|
|
|
|
.mx_AccessibleButton {
|
|
|
|
float: right;
|
|
|
|
}
|
|
|
|
}
|
2020-04-02 11:00:45 +00:00
|
|
|
|
|
|
|
.mx_VerificationPanel_reciprocate_section {
|
2020-04-02 14:42:39 +00:00
|
|
|
.mx_AccessibleButton {
|
|
|
|
margin-left: 10px;
|
|
|
|
padding: 7px 40px;
|
2020-04-02 11:00:45 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.mx_VerificationPanel_reciprocateButtons {
|
|
|
|
display: flex;
|
|
|
|
flex-direction: row;
|
2020-04-02 14:42:39 +00:00
|
|
|
justify-content: flex-end;
|
2020-04-02 11:00:45 +00:00
|
|
|
}
|
|
|
|
}
|
2020-01-24 16:16:46 +00:00
|
|
|
}
|