2019-12-05 16:05:28 +01:00
|
|
|
/*
|
|
|
|
Copyright 2018 New Vector Ltd
|
2020-01-22 19:08:39 +01:00
|
|
|
Copyright 2019, 2020 The Matrix.org Foundation C.I.C.
|
2019-12-05 16:05:28 +01:00
|
|
|
|
|
|
|
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-01-28 20:42:09 +01:00
|
|
|
.mx_CreateSecretStorageDialog {
|
2022-07-27 15:39:29 +02:00
|
|
|
/* Why you ask? Because CompleteSecurityBody is 600px so this is the width */
|
|
|
|
/* we end up when in there, but when in our own dialog we set our own width */
|
|
|
|
/* so need to fix it to something sensible as otherwise we'd end up either */
|
|
|
|
/* really wide or really narrow depending on the phase. I bet you wish you */
|
|
|
|
/* never asked. */
|
2020-01-28 20:42:09 +01:00
|
|
|
width: 560px;
|
|
|
|
|
2023-02-17 13:35:13 +01:00
|
|
|
&.mx_SuccessDialog {
|
|
|
|
padding: 56px; /* 80px from design - 24px wrapper padding */
|
|
|
|
|
|
|
|
.mx_Dialog_title {
|
|
|
|
margin-bottom: $spacing-16;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-01-28 20:42:09 +01:00
|
|
|
.mx_SettingsFlag {
|
|
|
|
display: flex;
|
|
|
|
}
|
|
|
|
|
|
|
|
.mx_SettingsFlag_label {
|
|
|
|
flex: 1 1 0;
|
|
|
|
min-width: 0;
|
|
|
|
font-weight: 600;
|
|
|
|
}
|
|
|
|
|
|
|
|
.mx_ToggleSwitch {
|
|
|
|
flex: 0 0 auto;
|
|
|
|
margin-left: 30px;
|
|
|
|
}
|
2020-01-29 23:31:19 +01:00
|
|
|
|
|
|
|
details .mx_AccessibleButton {
|
2022-07-27 15:39:29 +02:00
|
|
|
margin: 1em 0; /* emulate paragraph spacing because we can't put this button in a paragraph due to HTML rules */
|
2020-01-29 23:31:19 +01:00
|
|
|
}
|
2020-01-28 20:42:09 +01:00
|
|
|
}
|
|
|
|
|
2019-12-05 16:05:28 +01:00
|
|
|
.mx_CreateSecretStorageDialog .mx_Dialog_title {
|
|
|
|
/* TODO: Consider setting this for all dialog titles. */
|
|
|
|
margin-bottom: 1em;
|
|
|
|
}
|
|
|
|
|
2020-06-26 13:41:24 +02:00
|
|
|
.mx_CreateSecretStorageDialog_titleWithIcon::before {
|
2022-12-12 12:24:14 +01:00
|
|
|
content: "";
|
2020-06-26 13:41:24 +02:00
|
|
|
display: inline-block;
|
|
|
|
width: 24px;
|
|
|
|
height: 24px;
|
|
|
|
margin-right: 8px;
|
|
|
|
position: relative;
|
|
|
|
top: 5px;
|
2021-08-12 11:27:12 +02:00
|
|
|
background-color: $primary-content;
|
2020-06-26 13:41:24 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
.mx_CreateSecretStorageDialog_secureBackupTitle::before {
|
2022-12-12 12:24:14 +01:00
|
|
|
mask-image: url("$(res)/img/feather-customised/secure-backup.svg");
|
2020-06-26 13:41:24 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
.mx_CreateSecretStorageDialog_securePhraseTitle::before {
|
2022-12-12 12:24:14 +01:00
|
|
|
mask-image: url("$(res)/img/feather-customised/secure-phrase.svg");
|
2020-06-26 13:41:24 +02:00
|
|
|
}
|
|
|
|
|
2022-12-12 12:24:14 +01:00
|
|
|
.mx_CreateSecretStorageDialog_centeredTitle,
|
|
|
|
.mx_CreateSecretStorageDialog_centeredBody {
|
2020-06-24 17:12:46 +02:00
|
|
|
text-align: center;
|
|
|
|
}
|
|
|
|
|
2019-12-05 16:05:28 +01:00
|
|
|
.mx_CreateSecretStorageDialog_primaryContainer {
|
2021-11-11 14:37:29 +01:00
|
|
|
/* FIXME: plinth colour in new theme(s). background-color: $accent; */
|
2020-01-22 19:08:39 +01:00
|
|
|
padding-top: 20px;
|
2021-11-17 10:34:59 +01:00
|
|
|
|
|
|
|
&.mx_CreateSecretStorageDialog_recoveryKeyPrimarycontainer {
|
|
|
|
display: flex;
|
|
|
|
justify-content: center;
|
|
|
|
}
|
2019-12-05 16:05:28 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
.mx_CreateSecretStorageDialog_primaryContainer::after {
|
|
|
|
content: "";
|
|
|
|
clear: both;
|
|
|
|
display: block;
|
|
|
|
}
|
|
|
|
|
2021-11-04 13:57:38 +01:00
|
|
|
.mx_CreateSecretStorageDialog_primaryContainer .mx_StyledRadioButton {
|
2020-06-23 16:04:39 +02:00
|
|
|
margin-bottom: 16px;
|
|
|
|
padding: 11px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.mx_CreateSecretStorageDialog_optionTitle {
|
|
|
|
color: $dialog-title-fg-color;
|
|
|
|
font-weight: 600;
|
|
|
|
font-size: $font-18px;
|
2020-06-30 12:10:12 +02:00
|
|
|
padding-bottom: 10px;
|
2020-06-23 16:04:39 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
.mx_CreateSecretStorageDialog_optionIcon {
|
2020-06-26 13:41:24 +02:00
|
|
|
display: inline-block;
|
2020-06-23 16:04:39 +02:00
|
|
|
width: 24px;
|
2020-06-26 13:41:24 +02:00
|
|
|
height: 24px;
|
2020-06-23 16:04:39 +02:00
|
|
|
margin-right: 8px;
|
|
|
|
position: relative;
|
|
|
|
top: 5px;
|
2021-08-12 11:27:12 +02:00
|
|
|
background-color: $primary-content;
|
2020-06-26 13:41:24 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
.mx_CreateSecretStorageDialog_optionIcon_securePhrase {
|
2022-12-12 12:24:14 +01:00
|
|
|
mask-image: url("$(res)/img/feather-customised/secure-phrase.svg");
|
2020-06-26 13:41:24 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
.mx_CreateSecretStorageDialog_optionIcon_secureBackup {
|
2022-12-12 12:24:14 +01:00
|
|
|
mask-image: url("$(res)/img/feather-customised/secure-backup.svg");
|
2020-06-23 16:04:39 +02:00
|
|
|
}
|
|
|
|
|
2019-12-05 16:05:28 +01:00
|
|
|
.mx_CreateSecretStorageDialog_passPhraseContainer {
|
|
|
|
display: flex;
|
2019-12-23 04:56:19 +01:00
|
|
|
align-items: flex-start;
|
2019-12-05 16:05:28 +01:00
|
|
|
}
|
|
|
|
|
2020-01-22 19:08:39 +01:00
|
|
|
.mx_Field.mx_CreateSecretStorageDialog_passPhraseField {
|
|
|
|
margin-top: 0px;
|
|
|
|
}
|
|
|
|
|
2019-12-05 16:05:28 +01:00
|
|
|
.mx_CreateSecretStorageDialog_passPhraseMatch {
|
2020-01-22 19:08:39 +01:00
|
|
|
width: 200px;
|
2019-12-05 16:05:28 +01:00
|
|
|
margin-left: 20px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.mx_CreateSecretStorageDialog_recoveryKeyContainer {
|
2021-11-17 10:34:59 +01:00
|
|
|
display: inline-block;
|
2019-12-05 16:05:28 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
.mx_CreateSecretStorageDialog_recoveryKey {
|
2020-06-23 17:27:41 +02:00
|
|
|
font-weight: bold;
|
|
|
|
text-align: center;
|
2019-12-05 16:05:28 +01:00
|
|
|
padding: 20px;
|
|
|
|
color: $info-plinth-fg-color;
|
|
|
|
background-color: $info-plinth-bg-color;
|
2020-06-23 17:27:41 +02:00
|
|
|
border-radius: 6px;
|
|
|
|
word-spacing: 1em;
|
|
|
|
margin-bottom: 20px;
|
2021-11-17 10:34:59 +01:00
|
|
|
|
|
|
|
code {
|
|
|
|
display: inline-block;
|
|
|
|
width: 30rem;
|
|
|
|
}
|
2019-12-05 16:05:28 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
.mx_CreateSecretStorageDialog_recoveryKeyButtons {
|
|
|
|
align-items: center;
|
2021-11-17 10:34:59 +01:00
|
|
|
display: flex;
|
|
|
|
gap: 16px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.mx_CreateSecretStorageDialog_recoveryKeyButtons_copyBtn {
|
|
|
|
flex-direction: column;
|
|
|
|
}
|
|
|
|
|
2020-01-24 20:11:57 +01:00
|
|
|
.mx_CreateSecretStorageDialog_recoveryKeyButtons .mx_AccessibleButton {
|
2021-11-17 10:34:59 +01:00
|
|
|
flex-grow: 1;
|
2020-06-23 17:27:41 +02:00
|
|
|
white-space: nowrap;
|
2020-05-29 16:42:07 +02:00
|
|
|
}
|
|
|
|
|
2020-06-23 17:27:41 +02:00
|
|
|
.mx_CreateSecretStorageDialog_continueSpinner {
|
|
|
|
margin-top: 33px;
|
|
|
|
text-align: right;
|
|
|
|
}
|
|
|
|
|
|
|
|
.mx_CreateSecretStorageDialog_continueSpinner img {
|
|
|
|
width: 20px;
|
|
|
|
height: 20px;
|
2019-12-05 16:05:28 +01:00
|
|
|
}
|