-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Вёрстка, стилизация и адаптация блоков Process и Studies
- Loading branch information
1 parent
aad9902
commit 4ad1ee1
Showing
6 changed files
with
657 additions
and
2 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
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 |
---|---|---|
@@ -0,0 +1,125 @@ | ||
.process { | ||
|
||
&__list { | ||
display: flex; | ||
flex-direction: column; | ||
row-gap: 30px; | ||
counter-reset: custom-counter; | ||
list-style: none; | ||
|
||
@include mobile { | ||
row-gap: 20px; | ||
} | ||
} | ||
|
||
&__item { | ||
--counterContent: counter(custom-counter); | ||
|
||
counter-increment: custom-counter; | ||
|
||
&:nth-child(-n+9) { | ||
--counterContent: '0' counter(custom-counter); | ||
} | ||
} | ||
|
||
&__accordion { | ||
--indicatorVerticalRotate: 90deg; | ||
|
||
padding: 40px 60px; | ||
|
||
background-color: var(--color-gray); | ||
border: var(--border); | ||
box-shadow: var(--shadow); | ||
border-radius: var(--border-radius-large); | ||
transition-duration: var(--transition-duration); | ||
|
||
@include hover { | ||
background-color: var(--color-accent); | ||
} | ||
|
||
@include mobile { | ||
padding: 30px; | ||
} | ||
|
||
&[open] { | ||
background-color: var(--color-accent); | ||
|
||
--indicatorVerticalRotate: 0deg; | ||
} | ||
|
||
&-header { | ||
display: flex; | ||
justify-content: space-between; | ||
align-items: center; | ||
column-gap: 50px; | ||
|
||
cursor: pointer; | ||
user-select: none; | ||
|
||
@include mobile { | ||
column-gap: 28px; | ||
} | ||
} | ||
|
||
&-title { | ||
@include fluid-text(30,18); | ||
|
||
display: flex; | ||
align-items: center; | ||
column-gap: 25px; | ||
|
||
@include mobile { | ||
column-gap: 33px; | ||
|
||
} | ||
|
||
&::before { | ||
content: var(--counterContent); | ||
font-size: 2em; | ||
|
||
@include mobile { | ||
font-size: 30px; | ||
} | ||
} | ||
} | ||
|
||
&-indicator { | ||
@include flex-center; | ||
@include square(58px); | ||
|
||
flex-shrink: 0; | ||
|
||
background-color: var(--color-gray); | ||
border: var(--border); | ||
border-radius: 50%; | ||
position: relative; | ||
|
||
@include mobile { | ||
width: 30px; | ||
} | ||
|
||
&::before, | ||
&::after { | ||
@include abs-center; | ||
|
||
content: ''; | ||
width: 45%; | ||
height: 10%; | ||
background-color: var(--color-dark); | ||
} | ||
|
||
&::after { | ||
rotate: var(--indicatorVerticalRotate); | ||
transition-duration: var(--transition-duration); | ||
} | ||
|
||
|
||
} | ||
|
||
&-body { | ||
margin-top: 30px; | ||
padding-top: 30px; | ||
border-top: var(--border); | ||
} | ||
} | ||
} |
Oops, something went wrong.