fix(v2): set proper font for live editor (#2835)

This commit is contained in:
Alexey Pyltsyn 2020-05-29 12:57:19 +03:00 committed by GitHub
parent f2fb2b8e0f
commit e57294f70f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 1 deletions

View file

@ -25,7 +25,7 @@ function Playground({children, theme, transformCode, ...props}) {
)}>
Live Editor
</div>
<LiveEditor />
<LiveEditor className={styles.playgroundEditor} />
<div
className={classnames(
styles.playgroundHeader,

View file

@ -22,6 +22,10 @@
color: var(--ifm-color-content);
}
.playgroundEditor {
font-family: var(--ifm-font-family-monospace) !important;
}
.playgroundPreview {
border: 1px solid var(--ifm-color-emphasis-200);
border-bottom-left-radius: var(--ifm-global-radius);