Skip to content

Commit 0136638

Browse files
committed
added strong component and margin fix - post-layout
1 parent fa4e4b7 commit 0136638

File tree

3 files changed

+19
-6
lines changed

3 files changed

+19
-6
lines changed

src/components/typography.js

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -98,15 +98,19 @@ const I = (props) => (
9898
const Ul = (props) => (
9999
<PseudoBox
100100
as='ul'
101-
listStyle='disc inside none'
101+
listStylePosition='inside'
102+
listStyleImage='none'
103+
listStyleType='disc'
102104
mb={2}
103105
{...props}
104106
/>
105107
)
106108
const Ol = (props) => (
107109
<PseudoBox
108110
as='ol'
109-
listStyle='decimal inside none'
111+
listStylePosition='inside'
112+
listStyleImage='none'
113+
listStyleType='decimal'
110114
mb={2}
111115
{...props}
112116
/>
@@ -123,6 +127,14 @@ const Li = (props) => (
123127
/>
124128
)
125129

130+
const Strong = (props) => (
131+
<PseudoBox
132+
as='strong'
133+
fontFamily='bold'
134+
{...props}
135+
/>
136+
)
137+
126138
export {
127-
H1, H2, H3, H4, H5, P, B, Em, I, Ul, Ol, Li
139+
H1, H2, H3, H4, H5, P, B, Em, I, Ul, Ol, Li, Strong
128140
}

src/templates/blog-post-layout.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ const Sidebar = ({ author, category, tags }) => (
1616
<Box display='flex' fontSize={[0, 0]} justifyContent="center" lineHeight='0'>
1717
<H1 as='h1'>Written by</H1>
1818
</Box>
19-
<Flex justifyContent="center" mt="0.5rem">
19+
<Flex justifyContent="center">
2020
<PlainLink to={`/author/${slugify(author)}`}>
2121
<I>{author}</I>
2222
<br />
@@ -28,7 +28,7 @@ const Sidebar = ({ author, category, tags }) => (
2828
<Flex fontSize={[0, 0]} justifyContent="center">
2929
Posted in
3030
</Flex>
31-
<Flex justifyContent="center" mt="0.5rem">
31+
<Flex justifyContent="center">
3232
<CategoryLink to={`/category/${slugify(getCategory({ category }))}`}>
3333
{getCategory({ category })}
3434
</CategoryLink>
@@ -40,7 +40,7 @@ const Sidebar = ({ author, category, tags }) => (
4040
<Flex fontSize={[0, 0]} justifyContent="center">
4141
Tags
4242
</Flex>
43-
<Flex justifyContent="center" mt="0.5rem">
43+
<Flex justifyContent="center">
4444
<Flex
4545
fontSize={[0, 0]}
4646
color="black.2"

src/templates/layout.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -258,6 +258,7 @@ const Layout = ({ children }) => (
258258
ul: Typography.Ul,
259259
ol: Typography.Ol,
260260
li: Typography.Li,
261+
strong: Typography.Strong,
261262
}}
262263
>
263264
<Box bg="rgb(247,245,242)" minHeigh="100vh">

0 commit comments

Comments
 (0)