Skip to content

Commit

Permalink
Fixed wide blocks
Browse files Browse the repository at this point in the history
  • Loading branch information
exzolink committed Feb 9, 2024
1 parent 522d45b commit 569631c
Show file tree
Hide file tree
Showing 6 changed files with 23 additions and 14 deletions.
2 changes: 1 addition & 1 deletion app/css/app.min.css

Large diffs are not rendered by default.

4 changes: 4 additions & 0 deletions app/styles/blocks/_catalog.scss
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,10 @@
border-radius: 3px;
height: auto !important;

&.swiper-slide {
display: flex;
}

&:hover & {
&_title {
color: $green;
Expand Down
17 changes: 10 additions & 7 deletions app/styles/blocks/_hero.scss
Original file line number Diff line number Diff line change
Expand Up @@ -43,15 +43,18 @@
}

&__slider {
margin-top: 55px;
max-width: 1920px;
margin: 55px auto 0 auto;
}

&__container:not(.swiper-initialized) {
& .swiper-wrapper {
display: grid;
grid-template-columns: repeat(3, 1fr);
grid-gap: 10px;
box-sizing: border-box;
&__container {
&:not(.swiper-initialized) {
& .swiper-wrapper {
display: grid;
grid-template-columns: repeat(3, 1fr);
grid-gap: 10px;
box-sizing: border-box;
}
}
}

Expand Down
3 changes: 1 addition & 2 deletions app/styles/blocks/_price.scss
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,7 @@
display: block;
text-align: center;
max-width: 680px;
margin: 0 auto;
margin-bottom: 40px;
margin: 0 auto 40px;
}

&__table {
Expand Down
8 changes: 6 additions & 2 deletions app/styles/blocks/_promo.scss
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,16 @@
color: rgba(232, 232, 232, 0.02);
}

&__slider {
max-width: 1920px;
margin: 0 auto;
}

&__title {
display: block;
text-align: center;
max-width: 930px;
margin: 0 auto;
margin-bottom: 70px;
margin: 0 auto 70px;
}

&__item {
Expand Down
3 changes: 1 addition & 2 deletions app/styles/blocks/_works.scss
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,7 @@
text-align: center;
display: block;
max-width: 470px;
margin: 0 auto;
margin-bottom: 30px;
margin: 0 auto 30px;
}

&__items {
Expand Down

0 comments on commit 569631c

Please sign in to comment.