From 3f7fa0eb1abd9dccd76b0dec6cdb87decdeeb8d4 Mon Sep 17 00:00:00 2001 From: John Knox Date: Fri, 22 Nov 2019 06:22:31 -0800 Subject: [PATCH] Use workplace markdown style Summary: Mimicking the workplace markdown style so people feel more familiar with it and don't get surprises when posting. Reviewed By: passy Differential Revision: D18639041 fbshipit-source-id: 0097087b8ae4da8e29609604eeffd5b349ebe7ab --- src/ui/components/Markdown.tsx | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/ui/components/Markdown.tsx b/src/ui/components/Markdown.tsx index 229b7a375..e4e0993ba 100644 --- a/src/ui/components/Markdown.tsx +++ b/src/ui/components/Markdown.tsx @@ -19,10 +19,12 @@ const Row = styled('div')({ marginBottom: 5, }); const Heading = styled('div')((props: {level: number}) => ({ - fontSize: props.level === 1 ? 25 : 18, + fontSize: props.level === 1 ? 18 : 12, + textTransform: props.level > 1 ? 'uppercase' : undefined, + color: props.level > 1 ? '#90949c' : undefined, marginTop: 10, marginBottom: 10, - fontWeight: 'bold', + fontWeight: props.level > 1 ? 'bold' : 'normal', })); const ListItem = styled('li')({ 'list-style-type': 'circle', @@ -31,6 +33,7 @@ const ListItem = styled('li')({ }); const Strong = styled('span')({ fontWeight: 'bold', + color: '#1d2129', }); const Emphasis = styled('span')({ fontStyle: 'italic', @@ -38,6 +41,7 @@ const Emphasis = styled('span')({ const Quote = styled(Row)({ padding: 10, backgroundColor: '#f1f2f3', + fontSize: 13, }); const Code = styled('span')({ fontFamily: '"Courier New", Courier, monospace', @@ -58,7 +62,6 @@ class CodeBlock extends PureComponent<{value: string; language: string}> { } const Link = styled('span')({ color: colors.blue, - textDecoration: 'underline', }); class LinkReference extends PureComponent<{href: string}> { render() {