Skip to content

Commit

Permalink
Fix space between sections
Browse files Browse the repository at this point in the history
  • Loading branch information
TomaszDziezykNetcentric committed Oct 25, 2024
1 parent ca265ea commit b98dbe2
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 6 deletions.
2 changes: 1 addition & 1 deletion blocks/hero/hero.css
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ main .hero-container > div {
}

main .hero-container {
padding: 0 0 var(--section-bottom-padding);
padding: 0 0 var(--section-y-padding);
}

main .hero-container .hero-wrapper {
Expand Down
14 changes: 9 additions & 5 deletions styles/styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
--nav-height: 70px;

/* section paddings */
--section-bottom-padding: 60px;
--section-y-padding: 30px;
--section-x-padding: 20px;

/* grid gap */
Expand Down Expand Up @@ -82,7 +82,7 @@

:root .homepage,
:root .pdp {
--section-bottom-padding: 80px;
--section-y-padding: 40px;
}

* {
Expand Down Expand Up @@ -530,13 +530,17 @@ main.no-top-margin {

/* sections */
main .section {
padding: 0 var(--section-x-padding) var(--section-bottom-padding);
padding: var(--section-y-padding) var(--section-x-padding);
}

main .section:first-child {
padding-top: 0;
}

main .section:last-child {
padding-bottom: calc(2 * var(--section-y-padding));
}

main .section.nba-container:last-child,
main .section.padding-bottom-0 {
padding-bottom: 0;
Expand All @@ -551,13 +555,13 @@ main .section.padding-bottom-0 {

@media (width >= 1025px) {
:root {
--section-bottom-padding: 80px;
--section-y-padding: 40px;
--section-x-padding: 40px;
}

:root .homepage,
:root .pdp {
--section-bottom-padding: 120px;
--section-y-padding: 60px;
}

.section > div {
Expand Down

0 comments on commit b98dbe2

Please sign in to comment.