1
mirror of https://github.com/jakejarvis/jarv.is.git synced 2025-07-03 17:46:39 -04:00

tell unblock-transitions script to remove itself when finished

This commit is contained in:
2022-02-18 12:31:57 -05:00
parent 5f977db7f2
commit 17a271eb87
2 changed files with 9 additions and 7 deletions

View File

@ -5,7 +5,11 @@ import * as config from "../lib/config";
const Document = () => {
return (
<Html lang={config.siteLocale?.replace("_", "-")}>
<Head />
<Head>
{/* kinda a hack to prevent dramatically fading into dark theme if we're immediately setting it on load. */}
{/* removed by `<Layout />` once the page is completely finished loading. */}
<style id="block-transitions">{`*,::before,::after{transition:none!important}`}</style>
</Head>
<body>
<Main />
<NextScript />