Skip to content

Commit 21c5c74

Browse files
authored
Merge pull request matrix-org#4831 from matrix-org/dbkr/recovery_key_passphrase_2
Implement new design on security setup & login
2 parents 55e0df3 + 1e45799 commit 21c5c74

File tree

12 files changed

+344
-272
lines changed

12 files changed

+344
-272
lines changed

res/css/_common.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -319,7 +319,7 @@ input[type=text]:focus, input[type=password]:focus, textarea:focus {
319319
}
320320

321321
.mx_Dialog_titleImage {
322-
vertical-align: middle;
322+
vertical-align: sub;
323323
width: 25px;
324324
height: 25px;
325325
margin-left: -2px;

res/css/views/dialogs/secretstorage/_AccessSecretStorageDialog.scss

Lines changed: 19 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,27 @@ See the License for the specific language governing permissions and
1515
limitations under the License.
1616
*/
1717

18-
.mx_AccessSecretStorageDialog_keyStatus {
19-
height: 30px;
18+
.mx_AccessSecretStorageDialog_titleWithIcon::before {
19+
content: '';
20+
display: inline-block;
21+
width: 24px;
22+
height: 24px;
23+
margin-right: 8px;
24+
position: relative;
25+
top: 5px;
26+
background-color: $primary-fg-color;
27+
}
28+
29+
.mx_AccessSecretStorageDialog_secureBackupTitle::before {
30+
mask-image: url('$(res)/img/feather-customised/secure-backup.svg');
2031
}
2132

22-
.mx_AccessSecretStorageDialog_primaryContainer {
23-
/* FIXME: plinth colour in new theme(s). background-color: $accent-color; */
24-
padding: 20px;
33+
.mx_AccessSecretStorageDialog_securePhraseTitle::before {
34+
mask-image: url('$(res)/img/feather-customised/secure-phrase.svg');
35+
}
36+
37+
.mx_AccessSecretStorageDialog_keyStatus {
38+
height: 30px;
2539
}
2640

2741
.mx_AccessSecretStorageDialog_passPhraseInput,

res/css/views/dialogs/secretstorage/_CreateSecretStorageDialog.scss

Lines changed: 74 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,29 @@ limitations under the License.
4848
margin-bottom: 1em;
4949
}
5050

51+
.mx_CreateSecretStorageDialog_titleWithIcon::before {
52+
content: '';
53+
display: inline-block;
54+
width: 24px;
55+
height: 24px;
56+
margin-right: 8px;
57+
position: relative;
58+
top: 5px;
59+
background-color: $primary-fg-color;
60+
}
61+
62+
.mx_CreateSecretStorageDialog_secureBackupTitle::before {
63+
mask-image: url('$(res)/img/feather-customised/secure-backup.svg');
64+
}
65+
66+
.mx_CreateSecretStorageDialog_securePhraseTitle::before {
67+
mask-image: url('$(res)/img/feather-customised/secure-phrase.svg');
68+
}
69+
70+
.mx_CreateSecretStorageDialog_centeredTitle, .mx_CreateSecretStorageDialog_centeredBody {
71+
text-align: center;
72+
}
73+
5174
.mx_CreateSecretStorageDialog_primaryContainer {
5275
/* FIXME: plinth colour in new theme(s). background-color: $accent-color; */
5376
padding-top: 20px;
@@ -59,6 +82,36 @@ limitations under the License.
5982
display: block;
6083
}
6184

85+
.mx_CreateSecretStorageDialog_primaryContainer .mx_RadioButton {
86+
margin-bottom: 16px;
87+
padding: 11px;
88+
}
89+
90+
.mx_CreateSecretStorageDialog_optionTitle {
91+
color: $dialog-title-fg-color;
92+
font-weight: 600;
93+
font-size: $font-18px;
94+
padding-bottom: 10px;
95+
}
96+
97+
.mx_CreateSecretStorageDialog_optionIcon {
98+
display: inline-block;
99+
width: 24px;
100+
height: 24px;
101+
margin-right: 8px;
102+
position: relative;
103+
top: 5px;
104+
background-color: $primary-fg-color;
105+
}
106+
107+
.mx_CreateSecretStorageDialog_optionIcon_securePhrase {
108+
mask-image: url('$(res)/img/feather-customised/secure-phrase.svg');
109+
}
110+
111+
.mx_CreateSecretStorageDialog_optionIcon_secureBackup {
112+
mask-image: url('$(res)/img/feather-customised/secure-backup.svg');
113+
}
114+
62115
.mx_CreateSecretStorageDialog_passPhraseContainer {
63116
display: flex;
64117
align-items: flex-start;
@@ -73,33 +126,42 @@ limitations under the License.
73126
margin-left: 20px;
74127
}
75128

76-
.mx_CreateSecretStorageDialog_recoveryKeyHeader {
77-
margin-bottom: 1em;
78-
}
79-
80129
.mx_CreateSecretStorageDialog_recoveryKeyContainer {
81-
display: flex;
130+
width: 380px;
131+
margin-left: auto;
132+
margin-right: auto;
82133
}
83134

84135
.mx_CreateSecretStorageDialog_recoveryKey {
85-
width: 262px;
136+
font-weight: bold;
137+
text-align: center;
86138
padding: 20px;
87139
color: $info-plinth-fg-color;
88140
background-color: $info-plinth-bg-color;
89-
margin-right: 12px;
141+
border-radius: 6px;
142+
word-spacing: 1em;
143+
margin-bottom: 20px;
90144
}
91145

92146
.mx_CreateSecretStorageDialog_recoveryKeyButtons {
93-
flex: 1;
94147
display: flex;
148+
justify-content: space-between;
95149
align-items: center;
96150
}
97151

98152
.mx_CreateSecretStorageDialog_recoveryKeyButtons .mx_AccessibleButton {
99-
margin-right: 10px;
153+
width: 160px;
154+
padding-left: 0px;
155+
padding-right: 0px;
156+
white-space: nowrap;
100157
}
101158

102-
.mx_CreateSecretStorageDialog_recoveryKeyButtons button {
103-
flex: 1;
104-
white-space: nowrap;
159+
.mx_CreateSecretStorageDialog_continueSpinner {
160+
margin-top: 33px;
161+
text-align: right;
162+
}
163+
164+
.mx_CreateSecretStorageDialog_continueSpinner img {
165+
width: 20px;
166+
height: 20px;
105167
}

res/css/views/elements/_StyledRadioButton.scss

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,13 +25,17 @@ limitations under the License.
2525
position: relative;
2626

2727
display: flex;
28-
align-items: center;
28+
align-items: baseline;
2929
flex-grow: 1;
3030

31-
> span {
31+
border: 1px solid $input-darker-bg-color;
32+
border-radius: 8px;
33+
34+
> .mx_RadioButton_content {
3235
flex-grow: 1;
3336

3437
display: flex;
38+
flex-direction: column;
3539

3640
margin-left: 8px;
3741
margin-right: 8px;
@@ -105,3 +109,7 @@ limitations under the License.
105109
}
106110
}
107111
}
112+
113+
.mx_RadioButton_checked {
114+
border-color: $accent-color;
115+
}
Lines changed: 11 additions & 0 deletions
Loading
Lines changed: 11 additions & 0 deletions
Loading

0 commit comments

Comments
 (0)