Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Form #18

Open
wants to merge 30 commits into
base: main
Choose a base branch
from
Open

Form #18

Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
end faq, PP fixes
  • Loading branch information
restby committed Jul 10, 2024
commit 1b0297d13fb176038d0d0dc9e28cb964ca216b34
2 changes: 1 addition & 1 deletion source/index.html
Original file line number Diff line number Diff line change
@@ -1138,7 +1138,7 @@ <h3 class="faq__title section-title section-title--dark">
</div>
<div class="accordion__wrapper is-active">
<div class="accordion__item is-active">
<h5>Как стать членом фитнес-центра?</h5>
<h5>Как стать членом <br />фитнес-центра?</h5>
<button class="accordion__item-btn is-active">
<svg data-btn="plus" width="22" height="22">
<use href="/__spritemap#sprite-icon-plus"></use>
4 changes: 4 additions & 0 deletions source/sass/blocks/accordion-tabs.scss
Original file line number Diff line number Diff line change
@@ -15,6 +15,10 @@
transition: opacity $trans-default, background-color $trans-default,
color $trans-default;

@include vp-1365 {
padding-top: 0;
}

&:focus {
outline: none;
border: 1px solid $color-dark;
42 changes: 36 additions & 6 deletions source/sass/blocks/accordion.scss
Original file line number Diff line number Diff line change
@@ -23,6 +23,7 @@

@include vp-767 {
flex-wrap: wrap;
margin-bottom: 35px;
}
}
.accordion__control {
@@ -36,6 +37,8 @@
@include vp-767 {
max-width: 140px;
min-height: 46px;
font-size: 16px;
line-height: 16px;
}
}
.accordion__wrapper {
@@ -52,23 +55,43 @@
flex-wrap: wrap;
justify-content: space-between;
align-items: center;
padding-top: 23px;
padding-bottom: 23px;
padding-top: 24px;
padding-bottom: 21px;
border-bottom: 1px solid #74819c;

@include vp-1365 {
padding-top: 24px;
padding-bottom: 22px;
}

@include vp-767 {
padding-top: 20px;
padding-bottom: 20px;
}

&.is-active {
& p {
display: block;
}
}
// &:first-child {
// border-top: 1px solid #74819c;
// }
&:first-child {
& br {
display: none;
}
@include vp-767 {
& br {
display: inline-block;
}
}
}
& h5 {
margin: 0;
@include vp-1365 {
max-width: 500px;
}
@include vp-767 {
max-width: 238px;
}
}
& p {
display: none;
@@ -83,6 +106,13 @@
max-width: 560px;
margin-top: 10px;
}

@include vp-767 {
margin-top: 20px;
font-size: 16px;
line-height: 20px;
max-width: 238px;
}
}
}
.accordion__item-btn {
@@ -100,8 +130,8 @@
@include vp-767 {
width: 30px;
height: 30px;
padding: 8px;
& svg {
padding: 8px;
width: 14px;
height: 14px;
}
10 changes: 5 additions & 5 deletions source/sass/blocks/faq.scss
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
.faq {
padding-top: 100px;
padding-bottom: 0;
padding-bottom: 100px;
background-color: $color-light;

@include vp-1365 {
padding-top: 60px;
padding-top: 61px;
padding-bottom: 60px;
}

@include vp-767 {
padding-top: 69px;
padding-top: 71px;
padding-bottom: 70px;
}
}
@@ -19,10 +19,10 @@

@include vp-1365 {
text-align: center;
margin-bottom: 44px;
margin-bottom: 43px;

@include vp-767 {
margin-bottom: 35px;
margin-bottom: 33px;
}
}
}
2 changes: 1 addition & 1 deletion source/sass/blocks/offers.scss
Original file line number Diff line number Diff line change
@@ -8,7 +8,7 @@
}
@include vp-767 {
padding-top: 41px;
padding-bottom: 38px;
padding-bottom: 40px;

& .container {
padding: 0;