diff --git a/assets/styles/layouts/_header.scss b/assets/styles/layouts/_header.scss index 2304858..eaa5dfe 100644 --- a/assets/styles/layouts/_header.scss +++ b/assets/styles/layouts/_header.scss @@ -20,12 +20,19 @@ } } -.home #content { +.home #content{ margin-top: -540px; background: transparent; + &.custom-homepage { + margin-top: 0; + } @media #{$breakpoint-large} { margin-top: -880px; + + &.custom-homepage { + margin-top: 0; + } } } @@ -68,7 +75,7 @@ } } -.page:not(.home) .header { +.page .header { height: rem(240); @media #{$breakpoint-large} { diff --git a/assets/styles/layouts/_page.scss b/assets/styles/layouts/_page.scss index 954a7b5..740d0a4 100644 --- a/assets/styles/layouts/_page.scss +++ b/assets/styles/layouts/_page.scss @@ -22,6 +22,6 @@ body { } } -.page.home:not(.has-sections) article { +.page article { margin-top: 0; } diff --git a/dist/styles/aldine.css b/dist/styles/aldine.css index cae2b0b..711abcf 100644 --- a/dist/styles/aldine.css +++ b/dist/styles/aldine.css @@ -2155,10 +2155,16 @@ input[type=submit] { margin-top: -540px; background: transparent; } +.home #content.custom-homepage { + margin-top: 0; +} @media screen and (min-width: 60rem) { .home #content { margin-top: -880px; } + .home #content.custom-homepage { + margin-top: 0; + } } .home .entry-header { @@ -2208,11 +2214,11 @@ input[type=submit] { } } -.page:not(.home) .header { +.page .header { height: 15rem; } @media screen and (min-width: 60rem) { - .page:not(.home) .header { + .page .header { height: 55rem; } } @@ -2282,7 +2288,7 @@ body #content a.call-to-action { text-decoration: none; } -.page.home:not(.has-sections) article { +.page article { margin-top: 0; } diff --git a/header.php b/header.php index ea0041f..7d4838f 100644 --- a/header.php +++ b/header.php @@ -9,6 +9,8 @@ * @package Aldine */ +use function Aldine\Helpers\custom_homepage; + ?> > @@ -20,7 +22,7 @@ -
data-barba="wrapper"> +>