2023-01-03 19:55:46 +00:00
|
|
|
// Copyright 2021 Signal Messenger, LLC
|
2021-12-16 15:02:22 +00:00
|
|
|
// SPDX-License-Identifier: AGPL-3.0-only
|
|
|
|
|
|
|
|
.module-InstallScreenQrCodeNotScannedStep {
|
|
|
|
@include install-screen;
|
|
|
|
|
|
|
|
&__contents {
|
2022-02-10 16:27:05 +00:00
|
|
|
$base-max-width: 760px;
|
|
|
|
|
2021-12-16 15:02:22 +00:00
|
|
|
align-items: center;
|
2022-02-10 16:27:05 +00:00
|
|
|
background: $color-white;
|
2021-12-16 15:02:22 +00:00
|
|
|
border-radius: 8px;
|
2022-02-10 16:27:05 +00:00
|
|
|
color: $color-black;
|
2021-12-16 15:02:22 +00:00
|
|
|
display: flex;
|
|
|
|
flex-direction: row;
|
|
|
|
animation: 500ms module-InstallScreenQrCodeNotScannedStep__slide-in;
|
|
|
|
position: relative;
|
2022-11-23 20:13:13 +00:00
|
|
|
top: 0;
|
2021-12-16 15:02:22 +00:00
|
|
|
|
|
|
|
@include light-theme {
|
2022-02-10 16:27:05 +00:00
|
|
|
max-width: $base-max-width;
|
|
|
|
padding: 22px;
|
2021-12-16 15:02:22 +00:00
|
|
|
}
|
2022-02-10 16:27:05 +00:00
|
|
|
|
2021-12-16 15:02:22 +00:00
|
|
|
@include dark-theme {
|
2022-02-10 16:27:05 +00:00
|
|
|
max-width: $base-max-width + 44px;
|
|
|
|
padding: 44px;
|
|
|
|
margin-top: 44px; // Avoids overlap with the Signal logo
|
2021-12-16 15:02:22 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&__qr-code {
|
|
|
|
$size: 256px;
|
|
|
|
|
|
|
|
align-items: center;
|
|
|
|
border: 2px solid transparent;
|
|
|
|
box-sizing: content-box;
|
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
|
|
|
justify-content: center;
|
2022-01-25 23:32:33 +00:00
|
|
|
margin: 8px 38px 8px 8px;
|
2021-12-16 15:02:22 +00:00
|
|
|
min-height: $size;
|
|
|
|
min-width: $size;
|
|
|
|
width: $size;
|
|
|
|
|
|
|
|
&--loaded {
|
|
|
|
background: $color-white;
|
|
|
|
}
|
|
|
|
|
|
|
|
&--load-failed {
|
|
|
|
@include font-subtitle;
|
2022-02-10 16:27:05 +00:00
|
|
|
border-color: $color-gray-05;
|
2022-01-25 23:32:33 +00:00
|
|
|
border-radius: 4px;
|
2022-02-10 16:27:05 +00:00
|
|
|
color: $color-gray-60;
|
2021-12-16 15:02:22 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
&__code {
|
|
|
|
height: $size;
|
|
|
|
width: $size;
|
|
|
|
animation: 1s module-InstallScreenQrCodeNotScannedStep__slide-in;
|
|
|
|
position: relative;
|
|
|
|
}
|
|
|
|
|
|
|
|
&__error-message {
|
|
|
|
text-align: center;
|
|
|
|
|
|
|
|
&::before {
|
|
|
|
@include color-svg(
|
|
|
|
'../images/icons/v2/error-outline-24.svg',
|
|
|
|
$color-accent-red
|
|
|
|
);
|
|
|
|
content: '';
|
|
|
|
display: block;
|
|
|
|
height: 22px;
|
|
|
|
margin: 8px auto 0 auto;
|
|
|
|
width: 22px;
|
|
|
|
}
|
|
|
|
|
|
|
|
a {
|
|
|
|
color: $color-ultramarine;
|
|
|
|
text-decoration: none;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
ol {
|
|
|
|
@include font-body-1;
|
|
|
|
line-height: 26px;
|
|
|
|
list-style-position: inside;
|
|
|
|
padding-inline-start: 0;
|
|
|
|
}
|
|
|
|
|
2022-02-10 16:27:05 +00:00
|
|
|
a {
|
|
|
|
// We want the right link color in dark mode. This is a no-op in light mode.
|
|
|
|
color: $color-ultramarine;
|
|
|
|
}
|
|
|
|
|
2021-12-16 15:02:22 +00:00
|
|
|
&__android-plus {
|
|
|
|
background: $color-gray-25;
|
|
|
|
border-radius: 100%;
|
|
|
|
display: inline-block;
|
|
|
|
padding: 5px;
|
|
|
|
vertical-align: middle;
|
|
|
|
|
|
|
|
&::before {
|
2022-02-10 16:27:05 +00:00
|
|
|
@include color-svg('../images/icons/v2/plus-24.svg', $color-white);
|
2021-12-16 15:02:22 +00:00
|
|
|
content: '';
|
|
|
|
display: block;
|
|
|
|
height: 12px;
|
|
|
|
width: 12px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
@keyframes module-InstallScreenQrCodeNotScannedStep__slide-in {
|
|
|
|
from {
|
2022-11-23 20:13:13 +00:00
|
|
|
transform: translateY(-8px);
|
2021-12-16 15:02:22 +00:00
|
|
|
opacity: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
to {
|
2022-11-23 20:13:13 +00:00
|
|
|
transform: translateY(0px);
|
2021-12-16 15:02:22 +00:00
|
|
|
opacity: 1;
|
|
|
|
}
|
|
|
|
}
|