summaryrefslogtreecommitdiff
path: root/src/components
diff options
context:
space:
mode:
authorNick Van Doorn <vandoorn.nick@gmail.com>2019-03-12 13:08:51 -0700
committerNick Van Doorn <vandoorn.nick@gmail.com>2019-03-12 13:08:51 -0700
commit47239474ea002d1f09a7a86616505a1890f92aa9 (patch)
tree8d1b6169eacf9774a409daa47d6899820611e6cb /src/components
parentf00748cfc123081e9c245e31d60b9e754d29cae7 (diff)
Define global margins
Diffstat (limited to 'src/components')
-rw-r--r--src/components/layout.js19
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;