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 {
|
2023-04-20 17:03:43 +00:00
|
|
|
margin-inline: auto;
|
2022-11-02 00:10:27 +00:00
|
|
|
|
|
|
|
height: 24px;
|
|
|
|
width: 24px;
|
|
|
|
@include light-theme {
|
|
|
|
@include color-svg(
|
2023-05-04 18:04:22 +00:00
|
|
|
'../images/icons/v3/safety_number/safety_number.svg',
|
2022-11-02 00:10:27 +00:00
|
|
|
$color-gray-90
|
|
|
|
);
|
|
|
|
}
|
|
|
|
@include dark-theme {
|
|
|
|
@include color-svg(
|
2023-05-04 18:04:22 +00:00
|
|
|
'../images/icons/v3/safety_number/safety_number.svg',
|
2022-11-02 00:10:27 +00:00
|
|
|
$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;
|
2023-04-20 17:03:43 +00:00
|
|
|
padding-inline: 4px;
|
2021-04-27 19:29:59 +00:00
|
|
|
|
|
|
|
@include light-theme {
|
|
|
|
color: $color-gray-60;
|
|
|
|
}
|
|
|
|
|
|
|
|
@include dark-theme {
|
|
|
|
color: $color-gray-25;
|
|
|
|
}
|
2022-11-11 04:10:30 +00:00
|
|
|
|
|
|
|
&--narrow {
|
2023-04-20 17:03:43 +00:00
|
|
|
padding-inline: 38px;
|
2022-11-11 04:10:30 +00:00
|
|
|
}
|
2021-04-27 19:29:59 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
&__contacts {
|
|
|
|
list-style-type: none;
|
2022-11-11 04:10:30 +00:00
|
|
|
padding: 0px;
|
|
|
|
margin-block-end: 0px;
|
2021-04-27 19:29:59 +00:00
|
|
|
}
|
|
|
|
|
2022-11-11 04:10:30 +00:00
|
|
|
&__row {
|
|
|
|
$row: &;
|
2022-11-02 00:10:27 +00:00
|
|
|
|
2021-04-27 19:29:59 +00:00
|
|
|
align-items: center;
|
|
|
|
display: flex;
|
|
|
|
flex-direction: row;
|
|
|
|
margin-bottom: 16px;
|
|
|
|
|
2022-11-11 04:10:30 +00:00
|
|
|
&__story-name {
|
|
|
|
@include font-body-1-bold;
|
|
|
|
flex-grow: 1;
|
2023-04-20 17:03:43 +00:00
|
|
|
margin-inline-end: auto;
|
2022-11-11 04:10:30 +00:00
|
|
|
}
|
|
|
|
|
2021-04-27 19:29:59 +00:00
|
|
|
&--wrapper {
|
|
|
|
flex-grow: 1;
|
2023-04-20 17:03:43 +00:00
|
|
|
margin-inline-start: 12px;
|
2021-04-27 19:29:59 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
&--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;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2022-11-11 04:10:30 +00:00
|
|
|
&__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
|
2022-11-11 04:10:30 +00:00
|
|
|
.mouse-mode #{$row}:hover & {
|
2022-11-02 00:10:27 +00:00
|
|
|
opacity: 1;
|
2021-04-27 19:29:59 +00:00
|
|
|
}
|
2022-11-11 04:10:30 +00:00
|
|
|
.keyboard-mode #{$row}:focus-within & {
|
2022-11-02 00:10:27 +00:00
|
|
|
opacity: 1;
|
2021-04-27 19:29:59 +00:00
|
|
|
}
|
2022-11-02 00:10:27 +00:00
|
|
|
|
|
|
|
border-radius: 4px;
|
2023-04-20 17:03:43 +00:00
|
|
|
padding-block: 8px;
|
|
|
|
padding-inline: 14px;
|
2021-04-27 19:29:59 +00:00
|
|
|
}
|
2022-11-11 04:10:30 +00:00
|
|
|
|
|
|
|
&__chevron__option {
|
2023-04-20 17:03:43 +00:00
|
|
|
padding-block: 10px;
|
|
|
|
padding-inline: 15px;
|
2022-11-11 04:10:30 +00:00
|
|
|
|
|
|
|
.ContextMenu__popper--single-item & {
|
2023-04-20 17:03:43 +00:00
|
|
|
padding-block: 10px;
|
|
|
|
padding-inline: 15px;
|
2022-11-11 04:10:30 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
&--container {
|
|
|
|
align-items: center;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&__chevron__button {
|
|
|
|
@include button-reset;
|
|
|
|
|
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
|
|
|
|
flex-grow: 0;
|
|
|
|
flex-shrink: 0;
|
|
|
|
|
|
|
|
padding: 10px;
|
|
|
|
height: 16px;
|
|
|
|
width: 16px;
|
|
|
|
|
|
|
|
justify-content: center;
|
|
|
|
border-radius: 4px;
|
|
|
|
border: 2px solid transparent;
|
|
|
|
|
|
|
|
opacity: 0;
|
|
|
|
transition: opacity 150ms cubic-bezier(0.17, 0.17, 0, 1);
|
|
|
|
|
|
|
|
// Using keyboard/mouse classes directly; mixins were doing weird things
|
|
|
|
.mouse-mode #{$row}:hover & {
|
|
|
|
opacity: 1;
|
|
|
|
}
|
|
|
|
.keyboard-mode #{$row}:focus-within & {
|
|
|
|
opacity: 1;
|
|
|
|
}
|
|
|
|
|
|
|
|
@include keyboard-mode {
|
|
|
|
&:focus {
|
|
|
|
border-color: $color-ultramarine;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
@include dark-keyboard-mode {
|
|
|
|
&:focus {
|
|
|
|
border-color: $color-ultramarine-light;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&::before {
|
|
|
|
content: '';
|
|
|
|
display: block;
|
|
|
|
height: 16px;
|
|
|
|
width: 16px;
|
|
|
|
flex-shrink: 0;
|
|
|
|
|
|
|
|
@include light-theme {
|
|
|
|
@include color-svg(
|
2023-05-04 18:04:22 +00:00
|
|
|
'../images/icons/v3/chevron/chevron-down.svg',
|
2022-11-11 04:10:30 +00:00
|
|
|
$color-gray-60
|
|
|
|
);
|
|
|
|
}
|
|
|
|
@include dark-theme {
|
|
|
|
@include color-svg(
|
2023-05-04 18:04:22 +00:00
|
|
|
'../images/icons/v3/chevron/chevron-down.svg',
|
2022-11-11 04:10:30 +00:00
|
|
|
$color-gray-25
|
|
|
|
);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&__menu-icon {
|
|
|
|
&--delete {
|
|
|
|
@include light-theme {
|
2023-05-04 18:04:22 +00:00
|
|
|
@include color-svg('../images/icons/v3/x/x-circle.svg', $color-gray-90);
|
2022-11-11 04:10:30 +00:00
|
|
|
}
|
|
|
|
@include dark-theme {
|
2023-05-04 18:04:22 +00:00
|
|
|
@include color-svg('../images/icons/v3/x/x-circle.svg', $color-gray-05);
|
2022-11-11 04:10:30 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
&--verify {
|
|
|
|
@include light-theme {
|
|
|
|
@include color-svg(
|
2023-05-04 18:04:22 +00:00
|
|
|
'../images/icons/v3/safety_number/safety_number.svg',
|
2022-11-11 04:10:30 +00:00
|
|
|
$color-gray-90
|
|
|
|
);
|
|
|
|
}
|
|
|
|
@include dark-theme {
|
|
|
|
@include color-svg(
|
2023-05-04 18:04:22 +00:00
|
|
|
'../images/icons/v3/safety_number/safety_number.svg',
|
2022-11-11 04:10:30 +00:00
|
|
|
$color-gray-05
|
|
|
|
);
|
|
|
|
}
|
|
|
|
}
|
2021-04-27 19:29:59 +00:00
|
|
|
}
|
|
|
|
}
|