typography-theme-github
Advanced tools
Comparing version 0.15.1 to 0.15.10
{ | ||
"name": "typography-theme-github", | ||
"description": "A theme for Typography.js inspired by Github's Markdown typography", | ||
"version": "0.15.1", | ||
"version": "0.15.10", | ||
"author": "Kyle Mathews <mathews.kyle@gmail.com>", | ||
@@ -6,0 +6,0 @@ "dependencies": { |
@@ -39,8 +39,8 @@ // @flow | ||
// Github has all block elements use 1/2 rhythm not a full rhythm. | ||
blockMarginBottom: 1/2, | ||
blockMarginBottom: 1 / 2, | ||
overrideStyles: ({ rhythm }) => ({ | ||
h1: { | ||
borderBottom: `1px solid ${gray(93)}`, | ||
paddingBottom: `calc(${rhythm(1/4)} - 1px)`, | ||
marginBottom: rhythm(3/4), | ||
paddingBottom: `calc(${rhythm(1 / 4)} - 1px)`, | ||
marginBottom: rhythm(3 / 4), | ||
marginTop: rhythm(1.5), | ||
@@ -50,4 +50,4 @@ }, | ||
borderBottom: `1px solid ${gray(93)}`, | ||
paddingBottom: `calc(${rhythm(1/4)} - 1px)`, | ||
marginBottom: rhythm(1/4), | ||
paddingBottom: `calc(${rhythm(1 / 4)} - 1px)`, | ||
marginBottom: rhythm(1 / 4), | ||
marginTop: rhythm(1), | ||
@@ -59,3 +59,3 @@ }, | ||
'h3,h4,h5,h6': { | ||
marginBottom: rhythm(1/2), | ||
marginBottom: rhythm(1 / 2), | ||
marginTop: rhythm(1), | ||
@@ -83,3 +83,3 @@ }, | ||
marginLeft: 0, | ||
paddingLeft: `calc(${rhythm(1/2)} - 1px)`, | ||
paddingLeft: `calc(${rhythm(1 / 2)} - 1px)`, | ||
}, | ||
@@ -86,0 +86,0 @@ }), |
46067