Skip to content
This repository was archived by the owner on Sep 11, 2024. It is now read-only.

Commit ef9a8a7

Browse files
committed
Nesting - .mx_AccessSecretStorageDialog_titleWithIcon
Signed-off-by: Suguru Hirahara <[email protected]>
1 parent 065820f commit ef9a8a7

File tree

1 file changed

+24
-22
lines changed

1 file changed

+24
-22
lines changed

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

Lines changed: 24 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -15,31 +15,33 @@ limitations under the License.
1515
*/
1616

1717
.mx_AccessSecretStorageDialog {
18-
.mx_AccessSecretStorageDialog_titleWithIcon::before {
19-
content: '';
20-
display: inline-block;
21-
width: 24px;
22-
height: 24px;
23-
margin-inline-end: $spacing-8;
24-
position: relative;
25-
top: 5px; // TODO: spacing variable
26-
background-color: $primary-content;
27-
}
28-
2918
.mx_Dialog_header {
30-
.mx_AccessSecretStorageDialog_resetBadge::before {
31-
// The image isn't capable of masking, so we use a background instead.
32-
background-image: url("$(res)/img/element-icons/warning-badge.svg");
33-
background-size: 24px;
34-
background-color: transparent;
35-
}
19+
.mx_AccessSecretStorageDialog_titleWithIcon {
20+
&::before {
21+
content: '';
22+
display: inline-block;
23+
width: 24px;
24+
height: 24px;
25+
margin-inline-end: $spacing-8;
26+
position: relative;
27+
top: 5px; // TODO: spacing variable
28+
background-color: $primary-content;
29+
}
3630

37-
.mx_AccessSecretStorageDialog_secureBackupTitle::before {
38-
mask-image: url('$(res)/img/feather-customised/secure-backup.svg');
39-
}
31+
&.mx_AccessSecretStorageDialog_resetBadge::before {
32+
// The image isn't capable of masking, so we use a background instead.
33+
background-image: url("$(res)/img/element-icons/warning-badge.svg");
34+
background-size: 24px;
35+
background-color: transparent;
36+
}
4037

41-
.mx_AccessSecretStorageDialog_securePhraseTitle::before {
42-
mask-image: url('$(res)/img/feather-customised/secure-phrase.svg');
38+
&.mx_AccessSecretStorageDialog_secureBackupTitle::before {
39+
mask-image: url('$(res)/img/feather-customised/secure-backup.svg');
40+
}
41+
42+
&.mx_AccessSecretStorageDialog_securePhraseTitle::before {
43+
mask-image: url('$(res)/img/feather-customised/secure-phrase.svg');
44+
}
4345
}
4446
}
4547

0 commit comments

Comments
 (0)