Last active
October 25, 2022 21:58
-
-
Save tripolskypetr/d0bc49c517ef555ad0d334cfebc3b95d to your computer and use it in GitHub Desktop.
styles.css
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.root { | |
display: flex; | |
flex-direction: column; | |
justify-content: space-between; | |
box-sizing: border-box; | |
max-width: 650px; | |
min-height: 100vh; | |
margin: auto; | |
padding-top: 3rem; | |
padding-bottom: 1rem; | |
} | |
.content { | |
display: flex; | |
flex: 1; | |
flex-direction: column; | |
padding-top: 3rem; | |
} | |
.link { | |
cursor: pointer; | |
color: var(--color-active); | |
white-space: nowrap; | |
} | |
.link:hover { | |
text-decoration: underline; | |
} | |
.logoutButton { | |
cursor: pointer; | |
align-self: flex-start; | |
font-size: 14px; | |
color: var(--color-secondary); | |
border-radius: 0.5rem; | |
} | |
.logoutButton:hover { | |
color: var(--color-active); | |
} | |
.stepper { | |
display: flex; | |
} | |
.step { | |
position: relative; | |
width: 200px; | |
padding-top: 1rem; | |
font-size: 13px; | |
color: var(--color-medium); | |
} | |
.step + .step { | |
margin-left: 2rem; | |
} | |
.step::before { | |
content: ""; | |
position: absolute; | |
top: 0; | |
left: 0; | |
width: 100%; | |
height: 5px; | |
background: rgb(152 161 169 / 0.5); | |
border-radius: 2.5px; | |
} | |
.step.isCompleted::before, | |
.step.isActive::before { | |
background: var(--color-active); | |
} | |
.contentWrapper { | |
display: grid; | |
justify-items: start; | |
} | |
.contentTitle { | |
margin-bottom: 16px; | |
} | |
.helpText { | |
margin-bottom: 24px; | |
font-size: 16px; | |
} | |
.helpTextMobile { | |
font-size: 14px; | |
line-height: 22px; | |
color: #626978; | |
} | |
.sberIcon, | |
.fnsIcon { | |
margin-right: 16px; | |
} | |
.fnsIcon { | |
width: 40px; | |
height: 40px; | |
background-color: rgb(233 233 235); | |
background-image: url("../../assets/icon-fns.png"); | |
background-repeat: no-repeat; | |
background-position: center; | |
background-size: 24px 24px; | |
border-radius: 20px; | |
} | |
.qrIcon { | |
flex-shrink: 0; | |
margin-right: 24px; | |
} | |
.registrationCard { | |
margin-bottom: 28px; | |
padding: 16px 20px 20px 16px; | |
background: #fff; | |
border-radius: 8px; | |
box-shadow: 0 8px 16px rgb(0 0 0 / 0.08); | |
} | |
.registrationCardLast { | |
margin-bottom: 36px; | |
} | |
.registrationCardTitle { | |
display: flex; | |
flex-wrap: nowrap; | |
align-items: center; | |
justify-content: space-between; | |
margin-bottom: 20px; | |
font-size: 18px; | |
font-weight: 600; | |
} | |
.registrationCardContent { | |
display: flex; | |
flex-wrap: nowrap; | |
font-size: 14px; | |
line-height: 20px; | |
} | |
.registrationCardFooterText { | |
margin-top: 16px; | |
font-size: 12px; | |
line-height: 20px; | |
color: #878f9e; | |
} | |
.requirementsList { | |
margin-top: 12px; | |
list-style: none; | |
list-style-position: inside; | |
} | |
.requirementsListItem { | |
position: relative; | |
padding-left: 18px; | |
font-weight: 600; | |
} | |
.requirementsListItem::before { | |
content: url("../../assets/list-dot-icon.svg"); | |
position: absolute; | |
top: -2px; | |
left: 0; | |
width: 6px; | |
height: 6px; | |
} | |
.sberLink { | |
user-select: none; | |
display: flex; | |
align-items: center; | |
justify-content: center; | |
min-width: 150px; | |
min-height: 3rem; | |
margin: 20px 0 8px; | |
padding: 0 2rem; | |
font-size: 1rem; | |
font-weight: 500; | |
color: #5317fe; | |
text-align: center; | |
text-decoration: none; | |
white-space: nowrap; | |
background: #efebff; | |
border-radius: 25px; | |
} | |
/* .sberContent, | |
.fnsContent { | |
padding-left: calc(140px + 2rem); | |
background-repeat: no-repeat; | |
} */ | |
/* .sberContent { | |
background-image: url('../../assets/sber-qr.png'); | |
background-size: 163px auto; | |
background-position: left -16px top -10px; | |
} | |
.fnsContent { | |
background-image: url('../../assets/fns-qr.svg'); | |
background-size: 142px auto; | |
background-position: left -6px top 1px; | |
} */ | |
.title { | |
font-size: 1.5rem; | |
font-weight: 500; | |
} | |
.loading { | |
font-weight: 500; | |
color: var(--color-secondary); | |
} | |
.message { | |
font-weight: 500; | |
} | |
.message a { | |
font-weight: normal; | |
color: var(--color-active); | |
} | |
.message a:hover { | |
border-bottom: 1px solid var(--color-active); | |
} | |
.error { | |
color: var(--color-red); | |
} | |
.success { | |
color: var(--color-green); | |
} | |
.completedStep { | |
position: relative; | |
animation: fade-in 0.3s ease-in-out; | |
} | |
@keyframes fade-in { | |
from { | |
opacity: 0; | |
} | |
to { | |
opacity: 1; | |
} | |
} | |
.partyImage { | |
position: absolute; | |
top: 80px; | |
left: 670px; | |
transform: rotate(-15deg); | |
width: 120px; | |
height: 120px; | |
background: url("./party.png"); | |
} | |
.confetti { | |
position: absolute; | |
top: 90px; | |
left: 30px; | |
} | |
.errorWrapper { | |
padding: 24px 24px 24px 55px; | |
line-height: 1.5; | |
background-color: rgb(243 79 122 / 0.08); | |
} | |
.errorTitle { | |
position: relative; | |
margin-bottom: 10px; | |
font-size: 18px; | |
font-weight: 600; | |
} | |
.errorTitle::before { | |
content: url("../../assets/error-icon.svg"); | |
position: absolute; | |
top: 0; | |
right: calc(100% + 10px); | |
height: 24px; | |
border-radius: 50%; | |
box-shadow: 0 4px 8px rgb(243 79 122 / 0.2); | |
} | |
.errorDescription { | |
line-height: 1.75; | |
} | |
.chatButton { | |
margin-top: 16px; | |
} | |
.errorImage { | |
width: 288px; | |
height: 192px; | |
margin: 10px auto 0; | |
background-image: url("../../assets/error-image.png"); | |
background-repeat: no-repeat; | |
background-position: center center; | |
background-size: contain; | |
} | |
@media (max-width: 768px) { | |
.partyImage { | |
display: none; | |
} | |
} | |
.li { | |
position: relative; | |
margin-bottom: 1rem; | |
padding-left: 18px; | |
list-style: none; | |
} | |
.li::before { | |
content: ""; | |
position: absolute; | |
top: 12px; | |
left: 0; | |
transform: translateY(-50%); | |
display: block; | |
width: 8px; | |
height: 8px; | |
background: var(--color-active); | |
border-radius: 0.5rem; | |
} | |
.fnsLogo { | |
width: 75px; | |
height: 75px; | |
background: url("./fns.png"); | |
background-repeat: no-repeat; | |
background-position: center; | |
background-size: contain; | |
} | |
.block { | |
max-width: 650px; | |
padding: 1rem; | |
padding-bottom: 2rem; | |
background: #eee; | |
border-radius: 10px; | |
} | |
.listItem { | |
font-size: 1.25rem; | |
font-weight: 500; | |
} | |
.stepWrapper { | |
margin-bottom: 2rem; | |
font-size: 1.25rem; | |
font-weight: 500; | |
} | |
.stepWrapper:nth-child(3) { | |
margin-bottom: 0.5rem; | |
} | |
.appStoreBadge { | |
width: 126px; | |
height: 42px; | |
background: url("../../assets/app-store-badge.svg"); | |
background-size: contain; | |
} | |
.googlePlayBadge { | |
width: 141px; | |
height: 42px; | |
background: url("../../assets/google-play-badge.png"); | |
background-size: contain; | |
} | |
@media (max-width: 768px) { | |
.root { | |
padding-top: 2rem; | |
font-size: 14px; | |
} | |
.content { | |
padding-top: 2rem; | |
} | |
.step + .step { | |
margin-left: 1rem; | |
} | |
.sberTitle, | |
.fnsTitle { | |
margin-bottom: 0; | |
padding-left: calc(45px + 1.5rem); | |
font-size: 1.25rem; | |
} | |
.sberTitle br, | |
.fnsTitle br { | |
display: block; | |
} | |
.sberContent, | |
.fnsContent { | |
padding-left: 0; | |
background-image: none; | |
} | |
.stepWrapper { | |
margin: 2rem 0; | |
} | |
.stepWrapper:nth-child(3) { | |
margin-bottom: 2rem; | |
} | |
.errorWrapper { | |
width: 100vw; | |
margin-left: -20px; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment