signal-desktop/stylesheets/components/InstallScreenQrCodeNotScannedStep.scss

174 lines
3.5 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
2024-11-15 23:09:31 +00:00
@use '../mixins';
@use '../variables';
2021-12-16 15:02:22 +00:00
.module-InstallScreenQrCodeNotScannedStep {
2024-11-15 23:09:31 +00:00
@include mixins.install-screen;
2021-12-16 15:02:22 +00:00
&__contents {
$base-max-width: 760px;
2021-12-16 15:02:22 +00:00
align-items: center;
2024-11-15 23:09:31 +00:00
background: variables.$color-white;
2021-12-16 15:02:22 +00:00
border-radius: 8px;
2024-11-15 23:09:31 +00:00
color: variables.$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
2024-11-15 23:09:31 +00:00
@include mixins.light-theme {
max-width: $base-max-width;
padding: 22px;
2021-12-16 15:02:22 +00:00
}
2024-11-15 23:09:31 +00:00
@include mixins.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 {
2024-11-15 23:09:31 +00:00
background: variables.$color-white;
2021-12-16 15:02:22 +00:00
}
&--load-failed {
2024-11-15 23:09:31 +00:00
@include mixins.font-subtitle;
border-color: variables.$color-gray-05;
2024-07-01 21:51:49 +00:00
border-radius: 10px;
2024-11-15 23:09:31 +00:00
color: variables.$color-gray-60;
2021-12-16 15:02:22 +00:00
}
&__link {
2024-11-15 23:09:31 +00:00
@include mixins.button-reset;
& {
@include mixins.font-body-2-bold;
2024-07-01 21:51:49 +00:00
2024-11-15 23:09:31 +00:00
display: flex;
gap: 4px;
align-items: center;
2024-07-01 21:51:49 +00:00
2024-11-15 23:09:31 +00:00
color: variables.$color-ultramarine;
margin-block-start: 16px;
}
2024-07-01 21:51:49 +00:00
&::before {
2024-11-15 23:09:31 +00:00
@include mixins.color-svg(
2024-07-01 21:51:49 +00:00
'../images/icons/v3/refresh/refresh-bold.svg',
2024-11-15 23:09:31 +00:00
variables.$color-ultramarine
2024-07-01 21:51:49 +00:00
);
2024-11-15 23:09:31 +00:00
& {
content: '';
display: block;
height: 16px;
width: 16px;
}
2024-07-01 21:51:49 +00:00
}
}
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-11-15 23:09:31 +00:00
@include mixins.font-body-2;
2021-12-16 15:02:22 +00:00
&::before {
2024-11-15 23:09:31 +00:00
@include mixins.color-svg(
2023-05-04 18:04:22 +00:00
'../images/icons/v3/error/error-circle.svg',
2024-11-15 23:09:31 +00:00
variables.$color-accent-red
2021-12-16 15:02:22 +00:00
);
2024-11-15 23:09:31 +00:00
& {
content: '';
display: block;
height: 22px;
margin-block: 0 8px;
margin-inline: auto;
width: 22px;
}
2021-12-16 15:02:22 +00:00
}
2024-11-15 23:09:31 +00:00
& {
margin-inline: 24px;
}
2024-07-01 21:51:49 +00:00
}
&__error-message p {
margin-block: 0;
}
&__get-help {
2024-11-15 23:09:31 +00:00
@include mixins.font-body-2-bold;
2024-07-01 21:51:49 +00:00
display: flex;
gap: 4px;
align-items: center;
margin-block-start: 16px;
2024-11-15 23:09:31 +00:00
color: variables.$color-ultramarine;
2024-07-01 21:51:49 +00:00
text-decoration: none;
&::before {
2024-11-15 23:09:31 +00:00
@include mixins.color-svg(
2024-07-01 21:51:49 +00:00
'../images/icons/v3/open/open-compact-bold.svg',
2024-11-15 23:09:31 +00:00
variables.$color-ultramarine
2024-07-01 21:51:49 +00:00
);
2024-11-15 23:09:31 +00:00
& {
content: '';
display: block;
height: 16px;
width: 16px;
}
2021-12-16 15:02:22 +00:00
}
}
}
ol {
2024-11-15 23:09:31 +00:00
@include mixins.font-body-1;
2021-12-16 15:02:22 +00:00
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.
2024-11-15 23:09:31 +00:00
color: variables.$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;
}
}