fix: slate style (#289)

This commit is contained in:
SemmyWong 2022-04-13 22:51:35 +08:00 committed by GitHub
parent 1326e024ab
commit a69c4d7845
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 20 additions and 6 deletions

View File

@ -65,15 +65,9 @@ export const RichText = (props: any) => {
<MarkButton format="italic" icon="format_italic" /> <MarkButton format="italic" icon="format_italic" />
<MarkButton format="underline" icon="format_underlined" /> <MarkButton format="underline" icon="format_underlined" />
<MarkButton format="code" icon="code" /> <MarkButton format="code" icon="code" />
<BlockButton format="heading-one" icon="looks_one" />
<BlockButton format="heading-two" icon="looks_two" />
<BlockButton format="block-quote" icon="format_quote" /> <BlockButton format="block-quote" icon="format_quote" />
<BlockButton format="numbered-list" icon="format_list_numbered" /> <BlockButton format="numbered-list" icon="format_list_numbered" />
<BlockButton format="bulleted-list" icon="format_list_bulleted" /> <BlockButton format="bulleted-list" icon="format_list_bulleted" />
<BlockButton format="left" icon="format_align_left" />
<BlockButton format="center" icon="format_align_center" />
<BlockButton format="right" icon="format_align_right" />
<BlockButton format="justify" icon="format_align_justify" />
</Toolbar> </Toolbar>
<div <div
className={css` className={css`

View File

@ -29,3 +29,23 @@
border-right-width: 1px; border-right-width: 1px;
outline: 0; outline: 0;
} }
:not(pre) > code {
font-family: monospace;
background-color: #eee;
padding: 3px;
}
blockquote {
border-left: 2px solid #ddd;
margin-left: 0;
margin-right: 0;
padding-left: 10px;
color: #aaa;
font-style: italic;
}
blockquote[dir='rtl'] {
border-left: none;
padding-left: 0;
padding-right: 10px;
border-right: 2px solid #ddd;
}