2021-04-27 19:29:59 +00:00
|
|
|
// Copyright 2021 Signal Messenger, LLC
|
|
|
|
// SPDX-License-Identifier: AGPL-3.0-only
|
|
|
|
|
|
|
|
.module-SafetyNumberChangeDialog {
|
2022-11-02 00:10:27 +00:00
|
|
|
&__confirm-dialog__header {
|
|
|
|
padding-bottom: 0px;
|
|
|
|
|
|
|
|
// We've got no title, but we want the X button from ConfirmationDialog, so
|
|
|
|
// we need to bump the dialog contents up into the header area just a bit.
|
|
|
|
margin-bottom: -5px;
|
|
|
|
}
|
|
|
|
|
|
|
|
// Used to ensure that a set of spans reverse order under RTL
|
|
|
|
&__rtl-span {
|
|
|
|
display: inline-block;
|
|
|
|
}
|
|
|
|
|
|
|
|
&__shield-icon {
|
|
|
|
margin-left: auto;
|
|
|
|
margin-right: auto;
|
|
|
|
|
|
|
|
height: 24px;
|
|
|
|
width: 24px;
|
|
|
|
@include light-theme {
|
|
|
|
@include color-svg(
|
|
|
|
'../images/icons/v2/safety-number-outline-24.svg',
|
|
|
|
$color-gray-90
|
|
|
|
);
|
|
|
|
}
|
|
|
|
@include dark-theme {
|
|
|
|
@include color-svg(
|
|
|
|
'../images/icons/v2/safety-number-outline-24.svg',
|
|
|
|
$color-white
|
|
|
|
);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&__title {
|
|
|
|
@include font-body-1-bold;
|
|
|
|
|
|
|
|
text-align: center;
|
|
|
|
margin-top: 8px;
|
|
|
|
|
|
|
|
@include light-theme {
|
|
|
|
color: $color-gray-90;
|
|
|
|
}
|
|
|
|
@include dark-theme {
|
|
|
|
color: $color-white;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2021-04-27 19:29:59 +00:00
|
|
|
&__message {
|
|
|
|
@include font-body-2;
|
2022-11-02 00:10:27 +00:00
|
|
|
|
2021-04-27 19:29:59 +00:00
|
|
|
text-align: center;
|
2022-11-02 00:10:27 +00:00
|
|
|
margin-top: 8px;
|
|
|
|
margin-bottom: 24px;
|
|
|
|
padding-left: 4px;
|
|
|
|
padding-right: 4px;
|
2021-04-27 19:29:59 +00:00
|
|
|
|
|
|
|
@include light-theme {
|
|
|
|
color: $color-gray-60;
|
|
|
|
}
|
|
|
|
|
|
|
|
@include dark-theme {
|
|
|
|
color: $color-gray-25;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&__contacts {
|
|
|
|
list-style-type: none;
|
|
|
|
max-height: 300px;
|
|
|
|
padding: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
&__contact {
|
2022-11-02 00:10:27 +00:00
|
|
|
$contact: &;
|
|
|
|
|
2021-04-27 19:29:59 +00:00
|
|
|
align-items: center;
|
|
|
|
display: flex;
|
|
|
|
flex-direction: row;
|
|
|
|
margin-bottom: 16px;
|
|
|
|
|
|
|
|
&--wrapper {
|
|
|
|
flex-grow: 1;
|
|
|
|
margin-left: 12px;
|
|
|
|
}
|
|
|
|
|
|
|
|
&--name {
|
2022-11-02 00:10:27 +00:00
|
|
|
@include font-body-1;
|
2021-04-27 19:29:59 +00:00
|
|
|
|
|
|
|
@include dark-theme {
|
|
|
|
color: $color-white;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2022-11-02 00:10:27 +00:00
|
|
|
&--subtitle {
|
|
|
|
@include font-subtitle;
|
|
|
|
|
2021-04-27 19:29:59 +00:00
|
|
|
@include light-theme {
|
|
|
|
color: $color-gray-60;
|
|
|
|
}
|
|
|
|
|
|
|
|
@include dark-theme {
|
|
|
|
color: $color-gray-25;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&--view {
|
2022-11-02 00:10:27 +00:00
|
|
|
@include button-reset;
|
|
|
|
@include button-secondary-blue-text;
|
2021-04-27 19:29:59 +00:00
|
|
|
|
2022-11-02 00:10:27 +00:00
|
|
|
opacity: 0;
|
|
|
|
transition: opacity 150ms cubic-bezier(0.17, 0.17, 0, 1);
|
2021-04-27 19:29:59 +00:00
|
|
|
|
2022-11-02 00:10:27 +00:00
|
|
|
// Using keyboard/mouse classes directly; mixins were doing weird things
|
|
|
|
.mouse-mode #{$contact}:hover & {
|
|
|
|
opacity: 1;
|
2021-04-27 19:29:59 +00:00
|
|
|
}
|
2022-11-02 00:10:27 +00:00
|
|
|
.keyboard-mode #{$contact}:focus-within & {
|
|
|
|
opacity: 1;
|
2021-04-27 19:29:59 +00:00
|
|
|
}
|
2022-11-02 00:10:27 +00:00
|
|
|
|
|
|
|
border-radius: 4px;
|
|
|
|
padding: 8px 14px;
|
2021-04-27 19:29:59 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|