signal-desktop/stylesheets/components/InstallScreenQrCodeNotScannedStep.scss

161 lines
3.1 KiB
SCSS
Raw Normal View History

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 {
$base-max-width: 760px;
2021-12-16 15:02:22 +00:00
align-items: center;
background: $color-white;
2021-12-16 15:02:22 +00:00
border-radius: 8px;
color: $color-black;
2021-12-16 15:02:22 +00:00
display: flex;
flex-direction: row;
animation: 500ms module-InstallScreenQrCodeNotScannedStep__slide-in;
position: relative;
top: 0;
2021-12-16 15:02:22 +00:00
@include light-theme {
max-width: $base-max-width;
padding: 22px;
2021-12-16 15:02:22 +00:00
}
2021-12-16 15:02:22 +00:00
@include dark-theme {
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;
2024-07-01 21:51:49 +00:00
border: 1.5px solid transparent;
2021-12-16 15:02:22 +00:00
box-sizing: content-box;
display: flex;
flex-direction: column;
justify-content: center;
2023-04-20 17:03:43 +00:00
margin-block: 8px;
margin-inline: 8px 38px;
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;
border-color: $color-gray-05;
2024-07-01 21:51:49 +00:00
border-radius: 10px;
color: $color-gray-60;
2021-12-16 15:02:22 +00:00
}
&__link {
@include button-reset;
2024-07-01 21:51:49 +00:00
@include font-body-2-bold;
display: flex;
gap: 4px;
align-items: center;
color: $color-ultramarine;
2024-07-01 21:51:49 +00:00
margin-block-start: 16px;
&::before {
@include color-svg(
'../images/icons/v3/refresh/refresh-bold.svg',
$color-ultramarine
);
content: '';
display: block;
height: 16px;
width: 16px;
}
}
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;
2024-07-01 21:51:49 +00:00
@include font-body-2;
2021-12-16 15:02:22 +00:00
&::before {
@include color-svg(
2023-05-04 18:04:22 +00:00
'../images/icons/v3/error/error-circle.svg',
2021-12-16 15:02:22 +00:00
$color-accent-red
);
content: '';
display: block;
height: 22px;
2024-07-01 21:51:49 +00:00
margin-block: 0 8px;
2023-04-20 17:03:43 +00:00
margin-inline: auto;
2021-12-16 15:02:22 +00:00
width: 22px;
}
2024-07-01 21:51:49 +00:00
margin-inline: 24px;
}
&__error-message p {
margin-block: 0;
}
&__get-help {
@include font-body-2-bold;
display: flex;
gap: 4px;
align-items: center;
margin-block-start: 16px;
color: $color-ultramarine;
text-decoration: none;
&::before {
@include color-svg(
'../images/icons/v3/open/open-compact-bold.svg',
$color-ultramarine
);
content: '';
display: block;
height: 16px;
width: 16px;
2021-12-16 15:02:22 +00:00
}
}
}
ol {
@include font-body-1;
line-height: 26px;
list-style-position: inside;
padding-inline-start: 0;
}
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
}
@keyframes module-InstallScreenQrCodeNotScannedStep__slide-in {
from {
transform: translateY(-8px);
2021-12-16 15:02:22 +00:00
opacity: 0;
}
to {
transform: translateY(0px);
2021-12-16 15:02:22 +00:00
opacity: 1;
}
}