Skip to content
This repository has been archived by the owner on Jun 17, 2022. It is now read-only.

Commit

Permalink
Updated nav styles
Browse files Browse the repository at this point in the history
  • Loading branch information
ehowey committed Jul 28, 2019
1 parent a90d131 commit d3d220c
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 7 deletions.
14 changes: 8 additions & 6 deletions src/components/nav.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,14 +23,16 @@ const siteNav = props => {
return (
<nav
sx={{
gridColumn: ["1 / -1", "2 / 3", null],
gridRow: ["2 / 3", "1 / 2", null],
justifySelf: ["center", "end", null],
alignSelf: "center",
height: [props.open ? headOpen() : 0, "auto", null],
gridColumn: ["1 / -1", "1 / -1", "2 / 3"],
gridRow: ["2 / 3", "2 / 3", "1 / 2"],
justifySelf: ["center", "start", "end"],
alignItems: "center",
justifyContent: ["flex-start", "space-between", "flex-start"],
height: [props.open ? headOpen() : 0, "headerHeightTablet", "auto"],
mt: [props.open ? 2 : 0, 0, null],
display: "flex",
flexDirection: ["column", "row", null],
width: ["auto", "100%", "auto"],
}}
role="navigation"
aria-label="main-navigation"
Expand All @@ -40,8 +42,8 @@ const siteNav = props => {
display: [props.open ? "flex" : "none", "flex", null],
mr: ["auto", 3, null],
ml: "auto",
mt: "0.25rem",
mb: [3, 0, null],
order: [2, 2, 1],

a: {
color: props.open ? "header.iconsOpen" : "header.icons",
Expand Down
2 changes: 1 addition & 1 deletion src/gatsby-plugin-theme-ui/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ export default {
text: "#333333",
textOpen: "#ffffff",
icons: "#333333",
iconsHover: "primary",
iconsHover: "#3273dc",
iconsOpen: "#ffffff",
},

Expand Down

0 comments on commit d3d220c

Please sign in to comment.