diff options
author | Nick Van Doorn <vandoorn.nick@gmail.com> | 2019-03-12 13:08:51 -0700 |
---|---|---|
committer | Nick Van Doorn <vandoorn.nick@gmail.com> | 2019-03-12 13:08:51 -0700 |
commit | 47239474ea002d1f09a7a86616505a1890f92aa9 (patch) | |
tree | 8d1b6169eacf9774a409daa47d6899820611e6cb | |
parent | f00748cfc123081e9c245e31d60b9e754d29cae7 (diff) |
Define global margins
-rw-r--r-- | src/components/layout.js | 19 |
1 files changed, 18 insertions, 1 deletions
diff --git a/src/components/layout.js b/src/components/layout.js index e5f17bf..dd9cedd 100644 --- a/src/components/layout.js +++ b/src/components/layout.js @@ -1,7 +1,7 @@ import React from 'react' import Helmet from 'react-helmet' import { css, Global } from '@emotion/core' -import { colours, fontStack, transitions } from './globals' +import { colours, fontStack, transitions, margins } from './globals' import { FontAwesomeIcon } from '@fortawesome/react-fontawesome' import { faSpotify, @@ -30,6 +30,23 @@ const globalStyles = css` font-family: ${fontStack}; color: ${colours.main}; } + h1, + h2 { + margin: 0 0 ${margins.lg}px 0; + } + h3 { + margin: 0 0 ${margins.md}px 0; + } + h4, + h5 { + margin: 0 0 ${margins.sm}px 0; + } + ul { + list-style-type: none; + } + ul li:not(:first-of-type):not(:last-child) { + margin: ${margins.md}px 0; + } a { border-bottom: 1px dotted; text-decoration: none; |