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
This commit is contained in:
committed by
Facebook Github Bot
parent
018ed212bc
commit
3f7fa0eb1a
@@ -19,10 +19,12 @@ const Row = styled('div')({
|
|||||||
marginBottom: 5,
|
marginBottom: 5,
|
||||||
});
|
});
|
||||||
const Heading = styled('div')((props: {level: number}) => ({
|
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,
|
marginTop: 10,
|
||||||
marginBottom: 10,
|
marginBottom: 10,
|
||||||
fontWeight: 'bold',
|
fontWeight: props.level > 1 ? 'bold' : 'normal',
|
||||||
}));
|
}));
|
||||||
const ListItem = styled('li')({
|
const ListItem = styled('li')({
|
||||||
'list-style-type': 'circle',
|
'list-style-type': 'circle',
|
||||||
@@ -31,6 +33,7 @@ const ListItem = styled('li')({
|
|||||||
});
|
});
|
||||||
const Strong = styled('span')({
|
const Strong = styled('span')({
|
||||||
fontWeight: 'bold',
|
fontWeight: 'bold',
|
||||||
|
color: '#1d2129',
|
||||||
});
|
});
|
||||||
const Emphasis = styled('span')({
|
const Emphasis = styled('span')({
|
||||||
fontStyle: 'italic',
|
fontStyle: 'italic',
|
||||||
@@ -38,6 +41,7 @@ const Emphasis = styled('span')({
|
|||||||
const Quote = styled(Row)({
|
const Quote = styled(Row)({
|
||||||
padding: 10,
|
padding: 10,
|
||||||
backgroundColor: '#f1f2f3',
|
backgroundColor: '#f1f2f3',
|
||||||
|
fontSize: 13,
|
||||||
});
|
});
|
||||||
const Code = styled('span')({
|
const Code = styled('span')({
|
||||||
fontFamily: '"Courier New", Courier, monospace',
|
fontFamily: '"Courier New", Courier, monospace',
|
||||||
@@ -58,7 +62,6 @@ class CodeBlock extends PureComponent<{value: string; language: string}> {
|
|||||||
}
|
}
|
||||||
const Link = styled('span')({
|
const Link = styled('span')({
|
||||||
color: colors.blue,
|
color: colors.blue,
|
||||||
textDecoration: 'underline',
|
|
||||||
});
|
});
|
||||||
class LinkReference extends PureComponent<{href: string}> {
|
class LinkReference extends PureComponent<{href: string}> {
|
||||||
render() {
|
render() {
|
||||||
|
|||||||
Reference in New Issue
Block a user