Skip to content

Commit

Permalink
Merge pull request #1 from metacartel/scroll-behavior
Browse files Browse the repository at this point in the history
Fixes padding and behavior of hash links
  • Loading branch information
jonathanprozzi authored Aug 6, 2022
2 parents 30455e0 + d44c14c commit 1b50fc6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 18 deletions.
1 change: 1 addition & 0 deletions pages/_app.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import { ChakraProvider } from "@chakra-ui/react";
import SiteLayout from "../components/SiteLayout";
import theme from "../theme";
import Fonts from "../components/Fonts";
import "../styles/globals.css";

const MyApp = ({ Component, pageProps }: AppProps) => {
const router = useRouter();
Expand Down
20 changes: 2 additions & 18 deletions styles/globals.css
Original file line number Diff line number Diff line change
@@ -1,20 +1,4 @@
html,
body {
padding: 0;
margin: 0;
font-family: -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Oxygen,
Ubuntu, Cantarell, Fira Sans, Droid Sans, Helvetica Neue, sans-serif;
}

a {
color: inherit;
text-decoration: none;
}

* {
box-sizing: border-box;
}

.img__border-rounded {
border-radius: "32px";
scroll-padding-top: 6rem;
scroll-behavior: smooth;
}

1 comment on commit 1b50fc6

@vercel
Copy link

@vercel vercel bot commented on 1b50fc6 Aug 6, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.