Skip to content

Commit

Permalink
feat(docz-theme-default): add style for hr component
Browse files Browse the repository at this point in the history
  • Loading branch information
pedronauck committed Nov 1, 2018
1 parent 0ccda92 commit 5b24400
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 0 deletions.
12 changes: 12 additions & 0 deletions packages/docz-theme-default/src/components/ui/Hr.tsx
@@ -0,0 +1,12 @@
import styled from 'react-emotion'
import { get } from '@utils/theme'

export const Hr = styled('hr')`
border: none;
border-top: 1px dashed ${get('colors.border')};
${p =>
p.theme.docz.mq({
margin: ['30px 0', '50px 0'],
})};
`
1 change: 1 addition & 0 deletions packages/docz-theme-default/src/components/ui/index.tsx
Expand Up @@ -4,6 +4,7 @@ export { H3 } from './H3'
export { H4 } from './H4'
export { H5 } from './H5'
export { H6 } from './H6'
export { Hr } from './Hr'
export { Blockquote } from './Blockquote'
export { InlineCode } from './InlineCode'
export { Link } from './Link'
Expand Down
1 change: 1 addition & 0 deletions packages/docz-theme-default/src/index.tsx
Expand Up @@ -33,6 +33,7 @@ const Theme = () => (
h4: components.H4,
h5: components.H5,
h6: components.H6,
hr: components.Hr,
ul: components.List,
p: components.Paragraph,
a: components.Link,
Expand Down

0 comments on commit 5b24400

Please sign in to comment.