Skip to content

Commit

Permalink
temp page focus fix
Browse files Browse the repository at this point in the history
  • Loading branch information
arcadeperfect committed Nov 27, 2024
1 parent 9cfebef commit 30071ac
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 1 deletion.
2 changes: 1 addition & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
rel="stylesheet">
</head>

<body class="color-scheme-home" onload="window.scrollTo(0, 0)">
<body class="color-scheme-home">

<div class="grid">
<div class="main-column">
Expand Down
18 changes: 18 additions & 0 deletions styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,23 @@
margin: 0;
}

html {
/* Remove smooth scrolling */
scroll-behavior: auto;
/* Prevent automatic scroll anchoring */
overflow-anchor: none;
}

/* Ensure the page content starts at the top */
body {
min-height: 100vh;
display: flex;
flex-direction: column;
/* Force initial scroll position */
position: relative;
top: 0;
}

body {
line-height: 1.5;
-webkit-font-smoothing: antialiased;
Expand Down Expand Up @@ -190,3 +207,4 @@ a:hover {
position: static;
margin-left: 4px; /* Align with heading */
}

0 comments on commit 30071ac

Please sign in to comment.