Skip to content

Commit

Permalink
Hack to prevent flash of unstyled content on 404 page.
Browse files Browse the repository at this point in the history
  • Loading branch information
rebeccacremona committed Feb 27, 2024
1 parent 5a0713b commit 37840e0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/404.html
Original file line number Diff line number Diff line change
Expand Up @@ -88,15 +88,15 @@
<main id="main" class="l-interiorPage">
<header class="u-bg-gray-500 u-col-span-full">
<cap-page-header heading="Not Found.">
<p class="u-text-white u-text-serif">
<p class="u-text-white u-text-serif" style="visibility: hidden">
The Caselaw Access Project has updated and simplified our site to
provide long-term, unrestricted access to U.S. case law.
</p>
<p class="u-text-white u-text-serif">
<p class="u-text-white u-text-serif" style="visibility: hidden">
As part of this process we have deactivated portions of the site,
potentially including the page you were looking for.
</p>
<p class="u-text-white u-text-serif">
<p class="u-text-white u-text-serif" style="visibility: hidden">
If you have questions about the changes we have made, please let us
know at
<a class="u-link-purple" href="mailto:[email protected]"
Expand Down
1 change: 1 addition & 0 deletions src/components/cap-page-header.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ export class CapPageHeader extends LitElement {
}
::slotted(p) {
visibility: visible !important;
padding-top: var(--spacing-200);
@media (min-width: 35rem) {
Expand Down

0 comments on commit 37840e0

Please sign in to comment.