Skip to content
This repository has been archived by the owner on Oct 8, 2019. It is now read-only.

Commit

Permalink
Updated versions and small improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
ehowey committed Aug 1, 2019
1 parent 617553a commit 0f79f68
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 5 deletions.
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
{
"name": "gatsby-theme-catalyst-onepage",
"description": "Extends the base catalyst core theme to create a one page Gatsby theme",
"version": "0.1.18",
"description": "Gatsby Theme - Child theme for the base catalyst core theme to create a one page site.",
"version": "0.2.0",
"author": "Eric Howey <[email protected]>",
"dependencies": {
"gatsby-theme-catalyst-core": "^0.1.15",
"gatsby-theme-catalyst-core": "^0.2.0",
"react-scroll": "^1.7.12"
},
"devDependencies": {
Expand Down
2 changes: 1 addition & 1 deletion src/gatsby-theme-catalyst-core/components/branding.js
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ const siteBranding = props => {
/>
<h1
sx={{
fontSize: [4, 5, 6],
fontSize: [3, 5, 6],
flex: "0 0 auto"
}}
>
Expand Down
6 changes: 5 additions & 1 deletion src/gatsby-theme-catalyst-core/components/nav.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,11 @@ import { SocialHeaderIcons, SocialLinks } from "gatsby-theme-catalyst-core";
const siteNav = props => {
const { theme } = useThemeUI();
const headOpen = () => {
return window.innerHeight - parseInt(theme.sizes.headerHeight) + "px";
if (typeof window !== "undefined") {
return window.innerHeight - parseInt(theme.sizes.headerHeight) + "px";
} else {
return null;
}
}; //Used to calculate the height of the nav so it is exactly the height of the window
return (
<nav
Expand Down

0 comments on commit 0f79f68

Please sign in to comment.