summaryrefslogtreecommitdiff
path: root/src/components/header.js
diff options
context:
space:
mode:
authorNick Van Doorn <vandoorn.nick@gmail.com>2019-01-10 15:42:32 -0800
committerNick Van Doorn <vandoorn.nick@gmail.com>2019-01-10 15:42:32 -0800
commit99e71875a9db9b1f512daeaba51c8b55254bf6f1 (patch)
tree1e5a60c6b5c0595ba1397fe4c63520314b5f0e7c /src/components/header.js
parente4208cbe44a1702213de876ef100de1185d8dd2b (diff)
Center header below a certain size
Diffstat (limited to 'src/components/header.js')
-rw-r--r--src/components/header.js19
1 files changed, 11 insertions, 8 deletions
diff --git a/src/components/header.js b/src/components/header.js
index a390b67..6e1c857 100644
--- a/src/components/header.js
+++ b/src/components/header.js
@@ -3,21 +3,24 @@ import { css } from 'react-emotion'
import { Link } from 'gatsby'
import { Nav } from './nav'
import { Social } from './social'
-import { margins } from './globals'
+import { margins, breakpoints } from './globals'
-const headerStyle = css(`
+const headerStyle = css`
display: flex;
- justify-content: space-between;
+ justify-content: center;
flex-wrap: wrap;
-`)
+ @media (min-width: ${breakpoints[0].breakpoint}px) {
+ justify-content: space-between;
+ }
+`
-const headerLinkStyle = css(`
+const headerLinkStyle = css`
border: none;
-`)
+`
-const headerLeftStyle = css(`
+const headerLeftStyle = css`
margin: 0 0 ${margins.md}px 0;
-`)
+`
export const Header = p => (
<header className={headerStyle}>