2023-01-03 19:55:46 +00:00
|
|
|
// Copyright 2021 Signal Messenger, LLC
|
2021-10-01 21:52:36 +00:00
|
|
|
// SPDX-License-Identifier: AGPL-3.0-only
|
|
|
|
|
2021-08-19 22:56:29 +00:00
|
|
|
@keyframes progress-animation {
|
|
|
|
0% {
|
|
|
|
background-position: 100%;
|
|
|
|
}
|
|
|
|
100% {
|
|
|
|
background-position: -100%;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.LeftPaneDialog {
|
2021-10-12 23:59:08 +00:00
|
|
|
$default-background-color: $color-ultramarine;
|
|
|
|
$default-text-color: $color-white;
|
|
|
|
$error-background-color: $color-accent-red;
|
|
|
|
$error-text-color: $default-text-color;
|
|
|
|
$warning-background-color: $color-accent-yellow;
|
|
|
|
$warning-text-color: $color-black;
|
|
|
|
|
2021-08-19 22:56:29 +00:00
|
|
|
align-items: center;
|
2021-10-12 23:59:08 +00:00
|
|
|
background: $default-background-color;
|
|
|
|
color: $default-text-color;
|
2022-01-27 22:12:26 +00:00
|
|
|
cursor: inherit;
|
2021-08-19 22:56:29 +00:00
|
|
|
display: flex;
|
|
|
|
min-height: 64px;
|
2023-04-20 17:03:43 +00:00
|
|
|
padding-block: 12px;
|
|
|
|
padding-inline: 16px 14px;
|
2021-09-17 22:20:49 +00:00
|
|
|
user-select: none;
|
2022-01-27 22:12:26 +00:00
|
|
|
width: 100%;
|
2021-08-19 22:56:29 +00:00
|
|
|
|
2023-03-15 16:57:27 +00:00
|
|
|
font-size: 13px;
|
|
|
|
line-height: 18px;
|
|
|
|
letter-spacing: -0.0025em;
|
|
|
|
font-weight: 400;
|
|
|
|
|
2023-09-11 20:55:51 +00:00
|
|
|
&--width-narrow {
|
2023-04-20 17:03:43 +00:00
|
|
|
padding-inline-start: 36px;
|
2021-10-12 23:59:08 +00:00
|
|
|
}
|
|
|
|
|
2022-02-02 21:13:56 +00:00
|
|
|
&__retry {
|
|
|
|
@include button-reset;
|
|
|
|
@include font-body-1-bold;
|
|
|
|
}
|
|
|
|
|
2021-10-05 14:22:41 +00:00
|
|
|
&--clickable {
|
|
|
|
cursor: pointer;
|
|
|
|
}
|
|
|
|
|
2021-08-19 22:56:29 +00:00
|
|
|
&__container {
|
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
flex-grow: 1;
|
|
|
|
}
|
|
|
|
|
|
|
|
&__container-close {
|
|
|
|
display: flex;
|
|
|
|
justify-content: flex-end;
|
|
|
|
}
|
|
|
|
|
|
|
|
&__spinner-container {
|
2023-04-20 17:03:43 +00:00
|
|
|
margin-inline-end: 18px;
|
2021-08-19 22:56:29 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
&__spinner {
|
|
|
|
&__arc {
|
|
|
|
background-color: $color-black;
|
2021-09-08 00:11:17 +00:00
|
|
|
|
|
|
|
// Needed for specificity
|
|
|
|
@include dark-theme {
|
|
|
|
background-color: $color-black;
|
|
|
|
}
|
2021-08-19 22:56:29 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
&__circle {
|
|
|
|
background-color: $color-accent-yellow;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&__icon {
|
2021-09-17 22:20:49 +00:00
|
|
|
width: 24px;
|
|
|
|
height: 24px;
|
2023-04-20 17:03:43 +00:00
|
|
|
margin-inline-end: 18px;
|
2021-08-19 22:56:29 +00:00
|
|
|
background-color: $color-white;
|
2021-09-17 22:20:49 +00:00
|
|
|
-webkit-mask-size: contain;
|
2021-08-19 22:56:29 +00:00
|
|
|
|
2022-04-04 17:16:00 +00:00
|
|
|
@media (forced-colors: active) {
|
|
|
|
background-color: WindowText;
|
|
|
|
}
|
|
|
|
|
2021-08-24 20:59:44 +00:00
|
|
|
&--relink {
|
2023-05-04 18:04:22 +00:00
|
|
|
-webkit-mask: url('../images/icons/v3/link/link-slash.svg') no-repeat
|
2021-08-24 20:59:44 +00:00
|
|
|
center;
|
|
|
|
}
|
|
|
|
|
2021-08-19 22:56:29 +00:00
|
|
|
&--network {
|
2023-05-04 18:04:22 +00:00
|
|
|
-webkit-mask: url('../images/icons/v3/wifi/wifi-error.svg') no-repeat
|
|
|
|
center;
|
2021-08-19 22:56:29 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
&--update {
|
2023-05-04 18:04:22 +00:00
|
|
|
-webkit-mask: url('../images/icons/v3/refresh/refresh.svg') no-repeat
|
|
|
|
center;
|
2021-08-19 22:56:29 +00:00
|
|
|
}
|
2021-10-12 23:59:08 +00:00
|
|
|
|
|
|
|
&--warning {
|
2023-05-04 18:04:22 +00:00
|
|
|
-webkit-mask: url('../images/icons/v3/error/error-triangle.svg') no-repeat
|
2021-10-12 23:59:08 +00:00
|
|
|
center;
|
|
|
|
}
|
2024-03-12 19:52:02 +00:00
|
|
|
|
|
|
|
&--error {
|
|
|
|
-webkit-mask: url('../images/icons/v3/error/error-circle.svg') no-repeat
|
|
|
|
center;
|
|
|
|
}
|
2021-08-19 22:56:29 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
&__action-text {
|
|
|
|
@include button-reset;
|
|
|
|
text-decoration: none;
|
2023-03-15 16:57:27 +00:00
|
|
|
color: $color-white-alpha-80;
|
2021-08-19 22:56:29 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
&__close-button {
|
|
|
|
@include button-reset;
|
|
|
|
|
|
|
|
border-radius: 4px;
|
2023-04-20 17:03:43 +00:00
|
|
|
float: inline-end;
|
2023-03-15 16:57:27 +00:00
|
|
|
height: 20px;
|
|
|
|
width: 20px;
|
2021-08-19 22:56:29 +00:00
|
|
|
|
|
|
|
&::before {
|
2023-05-04 18:04:22 +00:00
|
|
|
-webkit-mask: url('../images/icons/v3/x/x.svg') no-repeat center;
|
2021-08-19 22:56:29 +00:00
|
|
|
background-color: $color-white;
|
|
|
|
content: '';
|
|
|
|
display: block;
|
|
|
|
width: 100%;
|
|
|
|
height: 100%;
|
2022-04-04 17:16:00 +00:00
|
|
|
|
|
|
|
@media (forced-colors: active) {
|
|
|
|
background-color: WindowText;
|
|
|
|
@include dark-theme {
|
|
|
|
background-color: WindowText;
|
|
|
|
}
|
|
|
|
}
|
2021-08-19 22:56:29 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
&:hover,
|
|
|
|
&:focus {
|
|
|
|
background-color: $color-white-alpha-20;
|
|
|
|
}
|
|
|
|
&:active {
|
|
|
|
background-color: $color-white-alpha-20;
|
|
|
|
}
|
2022-04-04 17:16:00 +00:00
|
|
|
|
|
|
|
@media (forced-colors: active) {
|
|
|
|
&:hover,
|
|
|
|
&:focus,
|
|
|
|
&:active {
|
|
|
|
background-color: none;
|
|
|
|
}
|
|
|
|
@include dark-theme {
|
|
|
|
&:hover,
|
|
|
|
&:focus,
|
|
|
|
&:active {
|
|
|
|
background-color: none;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2021-08-19 22:56:29 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
&__message {
|
|
|
|
width: 100%;
|
2021-10-12 23:59:08 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
&__message,
|
|
|
|
&__tooltip {
|
2023-01-18 23:31:10 +00:00
|
|
|
max-width: 250px;
|
|
|
|
|
2021-08-19 22:56:29 +00:00
|
|
|
h3 {
|
|
|
|
@include font-body-1-bold;
|
|
|
|
padding: 0px;
|
|
|
|
margin: 0px;
|
|
|
|
}
|
|
|
|
span {
|
|
|
|
@include font-body-1;
|
|
|
|
display: inline-block;
|
|
|
|
}
|
|
|
|
a {
|
|
|
|
font-weight: bold;
|
|
|
|
text-decoration: none;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2023-09-26 16:13:57 +00:00
|
|
|
&__tooltip {
|
|
|
|
--tooltip-background-color: #{$default-background-color};
|
|
|
|
--tooltip-text-color: #{$default-text-color};
|
|
|
|
min-width: 280px;
|
|
|
|
text-align: inherit;
|
|
|
|
}
|
2023-01-18 23:31:10 +00:00
|
|
|
|
2023-09-26 16:13:57 +00:00
|
|
|
&,
|
|
|
|
&__tooltip {
|
|
|
|
&--error {
|
|
|
|
background-color: $error-background-color;
|
2023-01-18 23:31:10 +00:00
|
|
|
color: $error-text-color;
|
2023-03-15 16:57:27 +00:00
|
|
|
|
2023-09-26 16:13:57 +00:00
|
|
|
@include any-theme {
|
|
|
|
--tooltip-background-color: #{$error-background-color};
|
|
|
|
--tooltip-text-color: #{$error-text-color};
|
|
|
|
}
|
2021-08-19 22:56:29 +00:00
|
|
|
|
2023-09-26 16:13:57 +00:00
|
|
|
a {
|
|
|
|
color: $error-text-color;
|
|
|
|
}
|
2021-08-19 22:56:29 +00:00
|
|
|
|
2023-09-26 16:13:57 +00:00
|
|
|
.LeftPaneDialog__action-text {
|
|
|
|
color: $error-text-color;
|
|
|
|
}
|
2021-08-19 22:56:29 +00:00
|
|
|
}
|
|
|
|
|
2023-09-26 16:13:57 +00:00
|
|
|
&--warning {
|
|
|
|
background-color: $warning-background-color;
|
|
|
|
color: $warning-text-color;
|
2022-04-04 17:16:00 +00:00
|
|
|
|
2023-09-26 16:13:57 +00:00
|
|
|
@include any-theme {
|
|
|
|
--tooltip-background-color: #{$warning-background-color};
|
|
|
|
--tooltip-text-color: #{$warning-text-color};
|
2022-04-04 17:16:00 +00:00
|
|
|
}
|
2021-08-19 22:56:29 +00:00
|
|
|
|
2023-09-26 16:13:57 +00:00
|
|
|
a {
|
|
|
|
color: $warning-text-color;
|
|
|
|
}
|
2022-04-04 17:16:00 +00:00
|
|
|
|
2023-09-26 16:13:57 +00:00
|
|
|
.LeftPaneDialog__icon {
|
|
|
|
background-color: $warning-text-color;
|
|
|
|
|
|
|
|
@media (forced-colors: active) {
|
|
|
|
background-color: WindowText;
|
|
|
|
}
|
2022-04-04 17:16:00 +00:00
|
|
|
}
|
2023-03-15 16:57:27 +00:00
|
|
|
|
2023-09-26 16:13:57 +00:00
|
|
|
.LeftPaneDialog__close-button::before {
|
|
|
|
background-color: $warning-text-color;
|
|
|
|
|
|
|
|
@media (forced-colors: active) {
|
|
|
|
background-color: WindowText;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.LeftPaneDialog__action-text {
|
|
|
|
color: $warning-text-color;
|
|
|
|
}
|
2023-03-15 16:57:27 +00:00
|
|
|
}
|
2021-08-19 22:56:29 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
&__progress {
|
|
|
|
&--container {
|
|
|
|
background: $color-white-alpha-20;
|
|
|
|
border-radius: 2px;
|
|
|
|
height: 4px;
|
|
|
|
max-width: 210px;
|
|
|
|
overflow: hidden;
|
|
|
|
width: 100%;
|
2023-04-20 17:03:43 +00:00
|
|
|
margin-block: 10px 6px;
|
|
|
|
margin-inline: 0;
|
2021-08-19 22:56:29 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
&--bar {
|
|
|
|
animation: progress-animation 2s linear infinite;
|
|
|
|
background: linear-gradient(
|
|
|
|
90deg,
|
|
|
|
$color-white-alpha-40,
|
|
|
|
$color-white-alpha-60,
|
|
|
|
$color-white-alpha-90,
|
|
|
|
$color-white-alpha-60,
|
|
|
|
$color-white-alpha-40
|
|
|
|
);
|
|
|
|
background-size: 200% 100%;
|
|
|
|
border-radius: 2px;
|
|
|
|
display: block;
|
|
|
|
height: 100%;
|
2022-11-23 20:13:13 +00:00
|
|
|
width: 100%;
|
2023-04-20 17:03:43 +00:00
|
|
|
&:dir(ltr) {
|
|
|
|
/* stylelint-disable-next-line declaration-property-value-disallowed-list */
|
|
|
|
transform: translateX(-100%);
|
|
|
|
}
|
|
|
|
&:dir(rtl) {
|
|
|
|
/* stylelint-disable-next-line declaration-property-value-disallowed-list */
|
|
|
|
transform: translateX(100%);
|
|
|
|
}
|
2022-11-23 20:13:13 +00:00
|
|
|
transition: transform 500ms ease-out;
|
2021-08-19 22:56:29 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|