2021-08-18 20:08:14 +00:00
|
|
|
// Copyright 2021 Signal Messenger, LLC
|
|
|
|
// SPDX-License-Identifier: AGPL-3.0-only
|
|
|
|
|
2023-05-04 18:04:22 +00:00
|
|
|
@mixin preferences-icon($url) {
|
2021-08-23 23:14:53 +00:00
|
|
|
&::before {
|
2021-08-18 20:08:14 +00:00
|
|
|
@include light-theme {
|
2023-05-04 18:04:22 +00:00
|
|
|
@include color-svg($url, $color-gray-75);
|
2021-08-18 20:08:14 +00:00
|
|
|
}
|
|
|
|
@include dark-theme {
|
2023-05-04 18:04:22 +00:00
|
|
|
@include color-svg($url, $color-gray-15);
|
2021-08-18 20:08:14 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.Preferences {
|
|
|
|
display: flex;
|
|
|
|
overflow: hidden;
|
2023-02-23 21:32:19 +00:00
|
|
|
user-select: none;
|
2021-08-18 20:08:14 +00:00
|
|
|
@include light-theme {
|
|
|
|
background: $color-white;
|
|
|
|
}
|
|
|
|
@include dark-theme {
|
|
|
|
background: $color-gray-95;
|
|
|
|
}
|
|
|
|
|
|
|
|
&__page-selector {
|
2023-02-23 21:32:19 +00:00
|
|
|
padding-top: calc(24px + var(--title-bar-drag-area-height));
|
2023-11-01 23:40:12 +00:00
|
|
|
min-width: min(34%, 240px);
|
2021-08-18 20:08:14 +00:00
|
|
|
@include light-theme {
|
|
|
|
background: $color-gray-02;
|
|
|
|
}
|
|
|
|
@include dark-theme {
|
|
|
|
background: $color-gray-80;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&__padding {
|
2023-04-20 17:03:43 +00:00
|
|
|
padding-block: 0;
|
|
|
|
padding-inline: 24px;
|
2021-08-18 20:08:14 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
&__button {
|
|
|
|
@include button-reset;
|
|
|
|
@include font-body-1;
|
|
|
|
align-items: center;
|
|
|
|
display: flex;
|
|
|
|
height: 48px;
|
|
|
|
width: 100%;
|
2023-04-20 17:03:43 +00:00
|
|
|
padding-block: 14px;
|
|
|
|
padding-inline: 0;
|
2021-08-18 20:08:14 +00:00
|
|
|
|
|
|
|
&--selected {
|
|
|
|
@include light-theme {
|
|
|
|
background: $color-gray-15;
|
|
|
|
}
|
|
|
|
@include dark-theme {
|
|
|
|
background: $color-gray-65;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2021-10-28 00:05:56 +00:00
|
|
|
&:focus {
|
|
|
|
@include keyboard-mode {
|
|
|
|
background: $color-gray-05;
|
|
|
|
}
|
|
|
|
@include dark-keyboard-mode {
|
|
|
|
background: $color-gray-75;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2021-08-23 23:14:53 +00:00
|
|
|
&::before {
|
2021-08-18 20:08:14 +00:00
|
|
|
content: '';
|
|
|
|
display: block;
|
|
|
|
height: 22px;
|
2023-04-20 17:03:43 +00:00
|
|
|
margin-inline: 18px 14px;
|
2021-08-18 20:08:14 +00:00
|
|
|
width: 22px;
|
|
|
|
}
|
|
|
|
|
|
|
|
&--general {
|
2023-05-04 18:04:22 +00:00
|
|
|
@include preferences-icon('../images/icons/v3/settings/settings.svg');
|
2021-08-18 20:08:14 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
&--appearance {
|
2023-05-04 18:04:22 +00:00
|
|
|
@include preferences-icon('../images/icons/v3/appearance/appearance.svg');
|
2021-08-18 20:08:14 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
&--chats {
|
2023-05-04 18:04:22 +00:00
|
|
|
@include preferences-icon('../images/icons/v3/chat/chat.svg');
|
2021-08-18 20:08:14 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
&--calls {
|
2023-05-04 18:04:22 +00:00
|
|
|
@include preferences-icon('../images/icons/v3/phone/phone.svg');
|
2021-08-18 20:08:14 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
&--notifications {
|
2023-05-04 18:04:22 +00:00
|
|
|
@include preferences-icon('../images/icons/v3/bell/bell.svg');
|
2021-08-18 20:08:14 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
&--privacy {
|
2023-05-04 18:04:22 +00:00
|
|
|
@include preferences-icon('../images/icons/v3/lock/lock.svg');
|
2021-08-18 20:08:14 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&__settings-pane {
|
2024-01-16 21:32:38 +00:00
|
|
|
height: 100vh;
|
2021-08-26 21:05:43 +00:00
|
|
|
overflow: overlay;
|
2021-08-18 20:08:14 +00:00
|
|
|
width: 100%;
|
2021-08-23 16:18:45 +00:00
|
|
|
|
|
|
|
&::-webkit-scrollbar-corner {
|
|
|
|
background: transparent;
|
|
|
|
}
|
2021-08-18 20:08:14 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
&__title {
|
|
|
|
@include font-body-1-bold;
|
|
|
|
align-items: center;
|
|
|
|
display: flex;
|
2023-02-23 21:32:19 +00:00
|
|
|
height: 48px;
|
|
|
|
margin-top: var(--title-bar-drag-area-height);
|
|
|
|
margin-bottom: 24px;
|
2021-08-18 20:08:14 +00:00
|
|
|
text-align: center;
|
|
|
|
|
2023-02-23 21:32:19 +00:00
|
|
|
border-bottom: 1px solid $color-gray-15;
|
|
|
|
@include light-theme {
|
|
|
|
border-color: $color-gray-15;
|
|
|
|
}
|
|
|
|
@include dark-theme {
|
|
|
|
border-color: $color-gray-65;
|
|
|
|
}
|
|
|
|
|
2021-08-18 20:08:14 +00:00
|
|
|
&--header {
|
|
|
|
flex-grow: 1;
|
|
|
|
text-align: center;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&__settings-row {
|
2023-05-03 20:26:27 +00:00
|
|
|
border: none;
|
|
|
|
padding: 0;
|
|
|
|
|
2023-02-23 21:32:19 +00:00
|
|
|
padding-bottom: 20px;
|
2021-08-18 20:08:14 +00:00
|
|
|
|
|
|
|
h3 {
|
|
|
|
@include font-body-1-bold;
|
|
|
|
margin: 0;
|
|
|
|
margin-bottom: 8px;
|
|
|
|
}
|
2023-03-09 00:35:25 +00:00
|
|
|
|
|
|
|
&--pnp-sharing {
|
|
|
|
min-height: 185px;
|
|
|
|
}
|
2021-08-18 20:08:14 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
&__settings-row:not(:last-child) {
|
|
|
|
border-bottom: 1px solid $color-gray-15;
|
|
|
|
@include light-theme {
|
|
|
|
border-color: $color-gray-15;
|
|
|
|
}
|
|
|
|
@include dark-theme {
|
|
|
|
border-color: $color-gray-65;
|
|
|
|
}
|
|
|
|
margin-bottom: 24px;
|
|
|
|
}
|
|
|
|
|
2023-02-23 21:32:19 +00:00
|
|
|
&__link {
|
|
|
|
@include button-reset;
|
2023-04-20 17:03:43 +00:00
|
|
|
padding-block: 0px 28px;
|
|
|
|
padding-inline: 0;
|
2023-02-23 21:32:19 +00:00
|
|
|
width: 100%;
|
|
|
|
|
|
|
|
h3 {
|
|
|
|
@include font-body-1;
|
|
|
|
font-weight: 400;
|
|
|
|
margin: 0;
|
|
|
|
margin-bottom: 8px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&__link:not(:last-child) {
|
|
|
|
border-bottom: 1px solid $color-gray-15;
|
|
|
|
@include light-theme {
|
|
|
|
border-color: $color-gray-15;
|
|
|
|
}
|
|
|
|
@include dark-theme {
|
|
|
|
border-color: $color-gray-65;
|
|
|
|
}
|
|
|
|
margin-bottom: 24px;
|
|
|
|
}
|
|
|
|
|
2021-08-18 20:08:14 +00:00
|
|
|
&__control {
|
|
|
|
align-items: center;
|
|
|
|
display: flex;
|
|
|
|
justify-content: space-between;
|
|
|
|
min-height: 48px;
|
2023-04-20 17:03:43 +00:00
|
|
|
padding-block: 4px;
|
|
|
|
padding-inline: 24px;
|
2021-08-18 20:08:14 +00:00
|
|
|
|
2023-11-06 21:19:23 +00:00
|
|
|
&--icon {
|
|
|
|
width: 20px;
|
|
|
|
height: 20px;
|
|
|
|
flex-shrink: 0;
|
|
|
|
margin-inline-end: 12px;
|
|
|
|
}
|
|
|
|
|
2021-08-18 20:08:14 +00:00
|
|
|
&--key {
|
|
|
|
flex-grow: 1;
|
2023-04-20 17:03:43 +00:00
|
|
|
padding-inline-end: 20px;
|
2021-08-18 20:08:14 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
&--value {
|
|
|
|
color: $color-gray-45;
|
|
|
|
}
|
|
|
|
|
|
|
|
&--clickable {
|
|
|
|
@include button-reset;
|
2023-04-20 17:03:43 +00:00
|
|
|
padding-block: 4px;
|
|
|
|
padding-inline: 24px;
|
2021-08-18 20:08:14 +00:00
|
|
|
width: 100%;
|
|
|
|
&:hover {
|
|
|
|
@include light-theme {
|
|
|
|
background: $color-gray-02;
|
|
|
|
}
|
|
|
|
@include dark-theme {
|
|
|
|
background: $color-gray-80;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&__checkbox {
|
2023-04-20 17:03:43 +00:00
|
|
|
padding-block: 10px;
|
|
|
|
padding-inline: 24px;
|
2021-08-18 20:08:14 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
&__description {
|
|
|
|
@include font-subtitle;
|
|
|
|
@include light-theme {
|
|
|
|
color: $color-gray-60;
|
|
|
|
}
|
|
|
|
@include dark-theme {
|
|
|
|
color: $color-gray-25;
|
|
|
|
}
|
|
|
|
|
|
|
|
&--error {
|
|
|
|
color: $color-accent-red !important;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&__select {
|
|
|
|
width: 100%;
|
|
|
|
}
|
|
|
|
|
|
|
|
&__select-title {
|
|
|
|
display: block;
|
|
|
|
margin-bottom: 8px;
|
|
|
|
}
|
|
|
|
|
|
|
|
&__right-button {
|
|
|
|
display: flex;
|
|
|
|
justify-content: flex-end;
|
|
|
|
min-width: 120px;
|
|
|
|
}
|
|
|
|
|
|
|
|
&__back-icon {
|
|
|
|
@include button-reset;
|
|
|
|
|
|
|
|
display: inline-block;
|
2023-05-04 18:04:22 +00:00
|
|
|
height: 20px;
|
2023-04-20 17:03:43 +00:00
|
|
|
margin-inline-start: 12px;
|
2023-05-04 18:04:22 +00:00
|
|
|
min-width: 20px;
|
2021-08-18 20:08:14 +00:00
|
|
|
vertical-align: text-bottom;
|
2023-05-04 18:04:22 +00:00
|
|
|
width: 20px;
|
2021-08-18 20:08:14 +00:00
|
|
|
|
|
|
|
@include light-theme {
|
|
|
|
@include color-svg(
|
2023-05-04 18:04:22 +00:00
|
|
|
'../images/icons/v3/chevron/chevron-left.svg',
|
2021-08-18 20:08:14 +00:00
|
|
|
$color-gray-90
|
|
|
|
);
|
|
|
|
}
|
|
|
|
@include dark-theme {
|
|
|
|
@include color-svg(
|
2023-05-04 18:04:22 +00:00
|
|
|
'../images/icons/v3/chevron/chevron-left.svg',
|
2021-08-18 20:08:14 +00:00
|
|
|
$color-gray-02
|
|
|
|
);
|
|
|
|
}
|
|
|
|
}
|
2022-10-03 23:56:10 +00:00
|
|
|
|
|
|
|
&__stories-off {
|
|
|
|
min-width: 140px;
|
|
|
|
}
|
2023-02-23 21:32:19 +00:00
|
|
|
|
|
|
|
&__settings-radio__label {
|
|
|
|
display: flex;
|
|
|
|
flex-direction: row;
|
|
|
|
gap: 16px;
|
|
|
|
height: 40px;
|
|
|
|
align-items: center;
|
|
|
|
&:last-child {
|
|
|
|
margin-bottom: 8px;
|
|
|
|
}
|
|
|
|
}
|
2021-08-18 20:08:14 +00:00
|
|
|
}
|
2023-11-06 21:19:23 +00:00
|
|
|
|
|
|
|
.Preferences__LanguageIcon {
|
|
|
|
@include light-theme {
|
|
|
|
@include color-svg('../images/icons/v3/globe/globe.svg', $color-gray-75);
|
|
|
|
}
|
|
|
|
@include dark-theme {
|
|
|
|
@include color-svg('../images/icons/v3/globe/globe.svg', $color-gray-15);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.Preferences__LanguageButton {
|
|
|
|
@include button-reset;
|
|
|
|
}
|
|
|
|
|
|
|
|
.Preferences__LanguageModal {
|
|
|
|
height: 560px;
|
|
|
|
.module-Modal__body {
|
|
|
|
flex-grow: 1;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.Preferences__LanguageModal__Title {
|
|
|
|
@include font-body-1-bold;
|
|
|
|
margin-inline: 8px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.Preferences__LanguageModal__NoResults {
|
|
|
|
@include font-body-1;
|
|
|
|
margin: 16px;
|
|
|
|
text-align: center;
|
|
|
|
}
|
|
|
|
|
|
|
|
.Preferences__LanguageModal__Item {
|
|
|
|
@include button-reset;
|
|
|
|
width: 100%;
|
|
|
|
padding-block: 2px;
|
|
|
|
padding-inline: 8px;
|
|
|
|
&:hover {
|
|
|
|
.Preferences__LanguageModal__Item__Inner {
|
|
|
|
@include light-theme {
|
|
|
|
background-color: $color-black-alpha-06;
|
|
|
|
}
|
|
|
|
@include dark-theme {
|
|
|
|
background-color: $color-white-alpha-06;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
&:focus {
|
|
|
|
outline: none;
|
|
|
|
.Preferences__LanguageModal__Item__Inner {
|
|
|
|
@include keyboard-mode {
|
|
|
|
background-color: $color-black-alpha-06;
|
|
|
|
box-shadow: 0 0 0 2px $color-ultramarine;
|
|
|
|
}
|
|
|
|
@include dark-keyboard-mode {
|
|
|
|
background-color: $color-white-alpha-06;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.Preferences__LanguageModal__Item__Inner {
|
|
|
|
display: flex;
|
|
|
|
gap: 8px;
|
|
|
|
align-items: center;
|
|
|
|
justify-content: center;
|
|
|
|
padding-block: 5px;
|
|
|
|
padding-inline: 16px;
|
|
|
|
border-radius: 8px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.Preferences__LanguageModal__Item__Label {
|
|
|
|
flex-grow: 1;
|
|
|
|
}
|
|
|
|
|
|
|
|
.Preferences__LanguageModal__Item__Current {
|
|
|
|
display: block;
|
|
|
|
@include font-body-1;
|
|
|
|
}
|
|
|
|
|
|
|
|
.Preferences__LanguageModal__Item__Check {
|
|
|
|
display: flex;
|
|
|
|
height: 20px;
|
|
|
|
width: 20px;
|
|
|
|
align-items: center;
|
|
|
|
justify-content: center;
|
|
|
|
background: $color-ultramarine;
|
|
|
|
@include rounded-corners;
|
|
|
|
&::after {
|
|
|
|
@include color-svg('../images/icons/v3/check/check.svg', $color-white);
|
|
|
|
content: '';
|
|
|
|
height: 14px;
|
|
|
|
width: 14px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.Preferences__LanguageModal__Item__Matching {
|
|
|
|
display: block;
|
|
|
|
@include font-body-2;
|
|
|
|
@include light-theme {
|
|
|
|
color: $color-gray-60;
|
|
|
|
}
|
|
|
|
@include dark-theme {
|
|
|
|
color: $color-gray-25;
|
|
|
|
}
|
|
|
|
}
|