da34e6241d
Font size of the whole app would ideally be controlled by a single value. This value is currently hard coded using the :root CSS selector. It is the intention to make this value configurable within riot. In the interim all font-sizes have been converted to rem by the simple process of regex. Replacing px values with their equivalent rem values assuming a font size of 15px and then rounded to three decimal places, which was the base at the time of this transformation. I'm expecting another commit cleaning up rem values but I thought it best to leave that to review. This commit doesn't address any scaling issues. I thought it better to land this unwieldy, mechanical, invisible change before the others otherwise the pr would be impossible to review thoroughly.
121 lines
3.4 KiB
SCSS
121 lines
3.4 KiB
SCSS
/*
|
|
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.
|
|
*/
|
|
|
|
.mx_UserInfo {
|
|
.mx_EncryptionPanel_cancel {
|
|
mask: url('$(res)/img/feather-customised/cancel.svg');
|
|
mask-repeat: no-repeat;
|
|
mask-position: center;
|
|
mask-size: cover;
|
|
width: 14px;
|
|
height: 14px;
|
|
background-color: $settings-subsection-fg-color;
|
|
cursor: pointer;
|
|
position: absolute;
|
|
z-index: 100;
|
|
top: 14px;
|
|
right: 14px;
|
|
}
|
|
|
|
.mx_VerificationPanel_verified_section .mx_E2EIcon {
|
|
// Override general user info margin
|
|
margin: 0 auto !important;
|
|
}
|
|
|
|
.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;
|
|
}
|
|
}
|
|
}
|
|
|
|
// 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;
|
|
|
|
> .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: $user-tile-hover-bg-color;
|
|
border-radius: 10px;
|
|
flex: 1;
|
|
display: flex;
|
|
padding: 10px;
|
|
align-items: center;
|
|
flex-direction: column;
|
|
position: relative;
|
|
|
|
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 {
|
|
font-weight: 700;
|
|
}
|
|
|
|
.mx_VerificationPanel_QRPhase_helpText {
|
|
font-size: 0.933rem;
|
|
margin-top: 71px;
|
|
text-align: center;
|
|
}
|
|
|
|
.mx_AccessibleButton {
|
|
position: absolute;
|
|
bottom: 30px;
|
|
}
|
|
}
|
|
}
|
|
|
|
// EncryptionPanel when verification is done
|
|
.mx_VerificationPanel_verified_section {
|
|
// center the big shield icon
|
|
.mx_E2EIcon {
|
|
margin: 0 auto;
|
|
}
|
|
// right align the "Got it" button
|
|
.mx_AccessibleButton {
|
|
float: right;
|
|
}
|
|
}
|
|
}
|