Skip to content

Commit

Permalink
Fix layout of Oops! text on Learn 404 page
Browse files Browse the repository at this point in the history
Use a consistent relative positioning container for the text, to avoid an issue where `:where(.wp-block-group.wp-block-group-is-layout-constrained) { position: relative }` is only sometimes applied.

See #155
  • Loading branch information
adamwoodnz committed Sep 20, 2024
1 parent fb1f3ba commit 9220e95
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ body.error404 {
}

.wporg-parent-oops-container {
position: relative;

> p {
display: none;
}
Expand All @@ -31,14 +33,14 @@ body.error404 {
z-index: -1;
position: absolute;
top: 22px;
left: -4.9vw;
left: -10vw;
font-family: var(--wp--preset--font-family--eb-garamond);
font-size: var(--oops-font-size);
line-height: var(--oops-font-size);
opacity: 0.4; // Make the overlaid text more readable.

@include break-small() {
top: calc(var(--oops-font-size) * -0.25);
top: calc(var(--oops-font-size) * -0.55);
}
}
}
Expand Down

0 comments on commit 9220e95

Please sign in to comment.