2022-07-29 14:43:29 +03:00
|
|
|
/*
|
2024-09-09 16:57:16 +03:00
|
|
|
Copyright 2024 New Vector Ltd.
|
2022-07-29 14:43:29 +03:00
|
|
|
Copyright 2022 The Matrix.org Foundation C.I.C.
|
|
|
|
|
2024-09-09 16:57:16 +03:00
|
|
|
SPDX-License-Identifier: AGPL-3.0-only OR GPL-3.0-only
|
|
|
|
Please see LICENSE files in the repository root for full details.
|
2022-07-29 14:43:29 +03:00
|
|
|
*/
|
|
|
|
|
|
|
|
.mx_UserOnboardingTask {
|
|
|
|
display: contents;
|
|
|
|
|
|
|
|
.mx_UserOnboardingTask_number {
|
|
|
|
counter-increment: user-onboarding;
|
|
|
|
grid-column: 1;
|
|
|
|
color: $secondary-content;
|
|
|
|
width: 32px;
|
|
|
|
height: 32px;
|
|
|
|
text-align: center;
|
|
|
|
border: 2px solid $quinary-content;
|
|
|
|
border-radius: 32px;
|
|
|
|
line-height: 32px;
|
|
|
|
align-self: center;
|
|
|
|
position: relative;
|
|
|
|
|
|
|
|
&::before {
|
|
|
|
content: counter(user-onboarding);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.mx_UserOnboardingTask_content {
|
|
|
|
grid-column: 2;
|
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
|
|
|
flex-grow: 1;
|
|
|
|
flex-shrink: 1;
|
|
|
|
|
|
|
|
transition: all 500ms;
|
|
|
|
|
2024-08-09 15:32:37 +03:00
|
|
|
.mx_UserOnboardingTask_title {
|
|
|
|
font: var(--cpd-font-body-md-medium);
|
|
|
|
}
|
|
|
|
|
2022-07-29 14:43:29 +03:00
|
|
|
.mx_UserOnboardingTask_description {
|
|
|
|
font-size: $font-12px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.mx_UserOnboardingTask_action.mx_AccessibleButton {
|
|
|
|
grid-column: 3;
|
|
|
|
min-width: 180px;
|
|
|
|
|
|
|
|
@media (max-width: 800px) {
|
|
|
|
grid-column: 2;
|
|
|
|
margin-top: -16px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&.mx_UserOnboardingTask_completed {
|
|
|
|
.mx_UserOnboardingTask_number {
|
|
|
|
&::before {
|
|
|
|
content: "";
|
|
|
|
position: absolute;
|
|
|
|
inset: -2px;
|
2024-03-05 07:25:47 +03:00
|
|
|
background: var(--cpd-color-icon-accent-tertiary);
|
2022-07-29 14:43:29 +03:00
|
|
|
border-radius: 32px;
|
|
|
|
|
|
|
|
animation-duration: 300ms;
|
|
|
|
animation-fill-mode: both;
|
|
|
|
animation-name: mx_UserOnboardingTask_spring;
|
|
|
|
will-change: opacity, transform;
|
|
|
|
}
|
|
|
|
|
|
|
|
&::after {
|
2024-03-05 07:25:47 +03:00
|
|
|
background-color: var(--cpd-color-icon-on-solid-primary);
|
2022-07-29 14:43:29 +03:00
|
|
|
content: "";
|
|
|
|
mask-repeat: no-repeat;
|
|
|
|
mask-position: center;
|
2024-10-15 13:19:06 +03:00
|
|
|
mask-size: 24px;
|
|
|
|
width: inherit;
|
|
|
|
height: inherit;
|
2022-07-29 14:43:29 +03:00
|
|
|
position: absolute;
|
2024-10-15 13:19:06 +03:00
|
|
|
left: 0;
|
|
|
|
top: 0;
|
|
|
|
mask-image: url("@vector-im/compound-design-tokens/icons/check.svg");
|
2022-07-29 14:43:29 +03:00
|
|
|
|
|
|
|
animation-duration: 300ms;
|
|
|
|
animation-fill-mode: both;
|
|
|
|
animation-name: mx_UserOnboardingTask_spring;
|
|
|
|
will-change: opacity, transform;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.mx_UserOnboardingTask_content {
|
|
|
|
opacity: 0.6;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
@keyframes mx_UserOnboardingTask_spring {
|
|
|
|
0% {
|
|
|
|
opacity: 0;
|
|
|
|
transform: scale(0.6);
|
|
|
|
}
|
|
|
|
50% {
|
|
|
|
opacity: 1;
|
|
|
|
transform: scale(1.2);
|
|
|
|
}
|
|
|
|
100% {
|
|
|
|
opacity: 1;
|
|
|
|
transform: scale(1);
|
|
|
|
}
|
|
|
|
}
|