generated from goitacademy/vanilla-app-template
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #31 from ReshetS/bugfix/how-it-works-background
Full background on "How it works" sectoin
- Loading branch information
Showing
2 changed files
with
150 additions
and
180 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,244 +1,212 @@ | ||
/* Styles for "How It Works" section */ | ||
.how-it-works { | ||
width: 100%; | ||
margin: 0 auto; | ||
|
||
} | ||
|
||
.how-it-works>.container { | ||
padding: 0; | ||
width: 100%; | ||
margin: 0 auto; | ||
} | ||
|
||
.work-image-wrap { | ||
padding: 40px 20px; | ||
padding: 40px 20px; | ||
max-width: 375px; | ||
margin: 0 auto; | ||
} | ||
|
||
.work-image { | ||
position: relative; | ||
|
||
position: relative; | ||
} | ||
|
||
|
||
|
||
.work-image-pic { | ||
|
||
border-radius: 30px; | ||
max-width: 100%; | ||
|
||
margin: 0 auto; | ||
|
||
|
||
border-radius: 30px; | ||
max-width: 100%; | ||
margin: 0 auto; | ||
} | ||
|
||
|
||
.work-image::after { | ||
content: ''; | ||
width: 100%; | ||
height: 100%; | ||
position: absolute; | ||
top: 0; | ||
left: 0; | ||
background-color: rgba(20, 20, 20, 0.3); | ||
border-radius: 30px; | ||
pointer-events: none; | ||
|
||
content: ''; | ||
width: 100%; | ||
height: 100%; | ||
position: absolute; | ||
top: 0; | ||
left: 0; | ||
background-color: rgba(20, 20, 20, 0.3); | ||
border-radius: 30px; | ||
pointer-events: none; | ||
} | ||
|
||
|
||
.work-steps-container { | ||
background-color: #576f35; | ||
} | ||
|
||
.work-steps-wrap { | ||
background-color: #576f35; | ||
padding-top: 80px; | ||
padding-bottom: 80px; | ||
padding-left: 20px; | ||
padding-right: 20px; | ||
padding: 80px 20px; | ||
max-width: 375px; | ||
margin: 0 auto; | ||
} | ||
|
||
.work-steps-txt-wrap { | ||
|
||
margin-bottom: 40px; | ||
|
||
margin-bottom: 40px; | ||
} | ||
|
||
.work-steps-subtit { | ||
font-weight: 600; | ||
font-size: 28px; | ||
line-height: 1; | ||
letter-spacing: -0.01em; | ||
text-transform: uppercase; | ||
color: #fbfbfb; | ||
font-weight: 600; | ||
font-size: 28px; | ||
line-height: 1; | ||
letter-spacing: -0.01em; | ||
text-transform: uppercase; | ||
color: #fbfbfb; | ||
|
||
margin: 0 auto; | ||
margin-bottom: 20px; | ||
margin: 0 auto; | ||
margin-bottom: 20px; | ||
} | ||
|
||
.steps-subt-accent { | ||
color: rgba(251, 251, 251, 0.3); | ||
color: rgba(251, 251, 251, 0.3); | ||
} | ||
|
||
.work-steps-text { | ||
font-weight: 500; | ||
font-size: 14px; | ||
line-height: 1.28; | ||
color: #fbfbfb; | ||
margin: 0 auto; | ||
|
||
|
||
|
||
font-weight: 500; | ||
font-size: 14px; | ||
line-height: 1.28; | ||
color: #fbfbfb; | ||
margin: 0 auto; | ||
} | ||
|
||
.work-steps-list { | ||
color: rgba(20, 20, 20, 0.6); | ||
display: flex; | ||
flex-direction: column; | ||
justify-content: center; | ||
align-items: center; | ||
gap: 20px; | ||
width: 100% | ||
color: rgba(20, 20, 20, 0.6); | ||
display: flex; | ||
flex-direction: column; | ||
justify-content: center; | ||
align-items: center; | ||
gap: 20px; | ||
width: 100%; | ||
} | ||
|
||
.work-steps-item:nth-child(2) { | ||
padding: 12px 59px 12px 100px; | ||
|
||
padding: 12px 59px 12px 100px; | ||
} | ||
|
||
.work-steps-item { | ||
display: flex; | ||
align-items: center; | ||
position: relative; | ||
counter-increment: section; | ||
list-style: none; | ||
z-index: 0; | ||
background-color: #fbfbfb; | ||
border-radius: 15px; | ||
padding: 12px 27px 12px 100px; | ||
width: 100%; | ||
height: 76px; | ||
display: flex; | ||
align-items: center; | ||
position: relative; | ||
counter-increment: section; | ||
list-style: none; | ||
z-index: 0; | ||
background-color: #fbfbfb; | ||
border-radius: 15px; | ||
padding: 12px 27px 12px 100px; | ||
width: 100%; | ||
height: 76px; | ||
} | ||
|
||
.work-steps-item::before { | ||
background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 52 52' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='26' cy='26' r='21' fill='%237A3145'/%3E%3Ccircle cx='26' cy='26' r='23.5' stroke='%237A3145' stroke-opacity='0.3' stroke-width='5'/%3E%3C/svg%3E%0A"); | ||
background-repeat: no-repeat; | ||
background-size: cover; | ||
content: counter(section); | ||
position: absolute; | ||
top: 50%; | ||
transform: translateY(-50%); | ||
left: 24px; | ||
display: flex; | ||
align-items: center; | ||
justify-content: center; | ||
|
||
font-size: 20px; | ||
color: #fbfbfb; | ||
font-weight: 500; | ||
line-height: 1; | ||
letter-spacing: -0.02em; | ||
height: 52px; | ||
width: 52px; | ||
background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 52 52' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='26' cy='26' r='21' fill='%237A3145'/%3E%3Ccircle cx='26' cy='26' r='23.5' stroke='%237A3145' stroke-opacity='0.3' stroke-width='5'/%3E%3C/svg%3E%0A"); | ||
background-repeat: no-repeat; | ||
background-size: cover; | ||
content: counter(section); | ||
position: absolute; | ||
top: 50%; | ||
transform: translateY(-50%); | ||
left: 24px; | ||
display: flex; | ||
align-items: center; | ||
justify-content: center; | ||
|
||
font-size: 20px; | ||
color: #fbfbfb; | ||
font-weight: 500; | ||
line-height: 1; | ||
letter-spacing: -0.02em; | ||
height: 52px; | ||
width: 52px; | ||
} | ||
|
||
.work-steps-item-txt { | ||
font-weight: 500; | ||
font-size: 12px; | ||
line-height: 1.17; | ||
letter-spacing: -0.02em; | ||
color: rgba(20, 20, 20, 0.6); | ||
font-weight: 500; | ||
font-size: 12px; | ||
line-height: 1.17; | ||
letter-spacing: -0.02em; | ||
color: rgba(20, 20, 20, 0.6); | ||
} | ||
|
||
.steps-list-accent { | ||
font-weight: 700; | ||
color: #141414; | ||
font-weight: 700; | ||
color: #141414; | ||
} | ||
|
||
|
||
|
||
|
||
@media screen and (min-width: 768px) { | ||
.work-image-wrap { | ||
padding: 100px 64px; | ||
max-width: 768px; | ||
margin: 0 auto; | ||
} | ||
|
||
.work-image-wrap { | ||
padding: 100px 64px; | ||
} | ||
|
||
|
||
|
||
.work-image-pic { | ||
|
||
max-width: 640px; | ||
height: 640px; | ||
|
||
} | ||
|
||
.work-steps-wrap { | ||
|
||
padding-top: 100px; | ||
padding-bottom: 100px; | ||
padding-left: 159px; | ||
padding-right: 159px; | ||
} | ||
|
||
|
||
|
||
|
||
.work-steps-txt-wrap { | ||
|
||
margin-bottom: 50px; | ||
|
||
} | ||
|
||
.work-steps-subtit { | ||
font-size: 32px; | ||
.work-image-pic { | ||
max-width: 640px; | ||
height: 640px; | ||
} | ||
|
||
margin-bottom: 25px; | ||
} | ||
.work-steps-wrap { | ||
padding: 100px 159px; | ||
max-width: 768px; | ||
margin: 0 auto; | ||
} | ||
|
||
.work-steps-text { | ||
font-size: 16px; | ||
line-height: 1.25; | ||
} | ||
.work-steps-txt-wrap { | ||
margin-bottom: 50px; | ||
} | ||
|
||
.work-steps-item { | ||
padding: 12px 25px 12px 100px; | ||
.work-steps-subtit { | ||
font-size: 32px; | ||
|
||
margin-bottom: 25px; | ||
} | ||
|
||
} | ||
.work-steps-text { | ||
font-size: 16px; | ||
line-height: 1.25; | ||
} | ||
|
||
.work-steps-item-txt { | ||
font-size: 16px; | ||
line-height: 1.25; | ||
} | ||
.work-steps-item { | ||
padding: 12px 25px 12px 100px; | ||
} | ||
|
||
.work-steps-item-txt { | ||
font-size: 16px; | ||
line-height: 1.25; | ||
} | ||
} | ||
|
||
@media screen and (min-width: 1280px) { | ||
.how-it-works>.container { | ||
display: flex; | ||
flex-direction: row; | ||
gap: 0 | ||
} | ||
|
||
|
||
|
||
.work-image-wrap { | ||
padding: 100px; | ||
flex-basis: 630px; | ||
} | ||
|
||
|
||
|
||
|
||
.work-image-pic { | ||
width: 430px; | ||
height: 559px; | ||
} | ||
|
||
.work-steps-wrap { | ||
flex-basis: 650px; | ||
padding: 100px 100px 160px 100px; | ||
|
||
} | ||
|
||
.how-it-works { | ||
display: flex; | ||
gap: 0; | ||
} | ||
|
||
.work-image-container { | ||
flex-basis: calc(50% - 10px); | ||
display: flex; | ||
} | ||
|
||
.work-image-wrap { | ||
position: relative; | ||
flex-basis: 630px; | ||
padding: 100px; | ||
margin: 0 0 0 auto; | ||
} | ||
|
||
.work-image-pic { | ||
width: 430px; | ||
height: 559px; | ||
} | ||
|
||
.work-steps-container { | ||
flex-basis: calc(50% + 10px); | ||
display: flex; | ||
} | ||
|
||
} | ||
.work-steps-wrap { | ||
flex-basis: 650px; | ||
padding: 100px 100px 160px 100px; | ||
margin: 0 auto 0 0; | ||
} | ||
} |
Oops, something went wrong.