Skip to content

Commit

Permalink
404: Decrease the gap between "oops" and the footer.
Browse files Browse the repository at this point in the history
  • Loading branch information
iandunn committed Feb 17, 2022
1 parent fbdb774 commit 74ca6fa
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions source/wp-content/themes/wporg-news-2021/sass/page/_404.scss
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ body.error404 {
*/
position: relative; // needed for overflow to work
overflow: hidden;
min-height: var(--oops-font-size);
margin-top: 0;
color: var(--wp--preset--color--off-white-2);
padding-left: var(--wp--custom--alignment--edge-spacing);
Expand All @@ -30,7 +29,10 @@ body.error404 {
// <html> has a `margin-top` that assumes the local header is present. That creates a gap when when
// hide the local nav. We can't change <html> without affecting other pages, so instead we just push
// this element up to cover the gap.
top: calc(-1 * var(--local-header-height));
margin-top: calc(-1 * var(--local-header-height));
// Prevent the gap under the content container from growing too big.
// The max will start cutting off the text after ~2500px, but that's an edge case.
min-height: min( var(--oops-font-size), 975px );
}
}

Expand Down Expand Up @@ -117,5 +119,9 @@ body.error404 {
.global-footer {
margin-top: 150px;
border-top: 1px solid var(--wp--preset--color--darker-grey);

@include break-small() {
margin-top: 115px;
}
}
}

0 comments on commit 74ca6fa

Please sign in to comment.