Skip to content

Commit

Permalink
SCSS: Move payment and reviews media queries into respective section …
Browse files Browse the repository at this point in the history
…file
  • Loading branch information
wikjoh committed Oct 5, 2024
1 parent 61646d2 commit af9096a
Show file tree
Hide file tree
Showing 4 changed files with 30 additions and 16 deletions.
18 changes: 10 additions & 8 deletions css/main.css
Original file line number Diff line number Diff line change
Expand Up @@ -756,6 +756,11 @@ section#how {
section#payment {
display: none;
}
@media (width >= 1400px) {
section#payment {
display: block;
}
}

.payment-container {
margin-top: 8rem;
Expand Down Expand Up @@ -844,6 +849,11 @@ section#reviews {
display: none;
background-color: var(--color-reviewsbg);
}
@media (width >= 1400px) {
section#reviews {
display: block;
}
}

.reviews-container {
padding: 6rem 1.5rem 7rem;
Expand Down Expand Up @@ -1659,14 +1669,6 @@ a:hover {
}
@media (1400px <= width) {
/* How does it work-section */
/* Payment section */
section#payment {
display: block;
}
/* Reviews section */
section#reviews {
display: block;
}
/* FAQ-contact section */
.faq-contact-container {
margin-top: 7rem;
Expand Down
16 changes: 8 additions & 8 deletions css/scss/base/_media-width.scss
Original file line number Diff line number Diff line change
Expand Up @@ -366,15 +366,15 @@
// }
// }

/* Payment section */
section#payment {
display: block;
}
// /* Payment section */
// section#payment {
// display: block;
// }

/* Reviews section */
section#reviews {
display: block;
}
// /* Reviews section */
// section#reviews {
// display: block;
// }

/* FAQ-contact section */
.faq-contact-container {
Expand Down
6 changes: 6 additions & 0 deletions css/scss/sections/_payment.scss
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
@use '../abstracts/' as *;

section#payment {
display: none;

@include desktop {
display: block;
}
}

.payment-container {
Expand Down
6 changes: 6 additions & 0 deletions css/scss/sections/_reviews.scss
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
@use '../abstracts/' as *;

section#reviews {
display: none;
background-color: var(--color-reviewsbg);

@include desktop {
display: block;
}
}

.reviews-container {
Expand Down

0 comments on commit af9096a

Please sign in to comment.