mirror of
https://github.com/jakejarvis/jarv.is.git
synced 2025-07-21 02:01:16 -04:00
add scroll-margin-top
property to content sub-headings (fixes #717)
This commit is contained in:
@@ -150,8 +150,7 @@ export default function App({ Component, pageProps }: AppProps) {
|
||||
/>
|
||||
|
||||
{/* Inline script to restore light/dark theme preference ASAP */}
|
||||
<Script id="restore_theme" strategy="afterInteractive">{`
|
||||
try {
|
||||
<Script id="restore_theme" strategy="afterInteractive">{`try {
|
||||
var root = document.documentElement,
|
||||
pref = localStorage.getItem("dark_mode"),
|
||||
theme = pref === "true" || (!pref && window.matchMedia("(prefers-color-scheme: dark)").matches) ? "dark" : "light";
|
||||
|
Reference in New Issue
Block a user