mirror of
https://github.com/facebook/docusaurus.git
synced 2025-05-30 01:17:07 +02:00
fix(v2): set proper font for live editor (#2835)
This commit is contained in:
parent
f2fb2b8e0f
commit
e57294f70f
2 changed files with 5 additions and 1 deletions
|
@ -25,7 +25,7 @@ function Playground({children, theme, transformCode, ...props}) {
|
||||||
)}>
|
)}>
|
||||||
Live Editor
|
Live Editor
|
||||||
</div>
|
</div>
|
||||||
<LiveEditor />
|
<LiveEditor className={styles.playgroundEditor} />
|
||||||
<div
|
<div
|
||||||
className={classnames(
|
className={classnames(
|
||||||
styles.playgroundHeader,
|
styles.playgroundHeader,
|
||||||
|
|
|
@ -22,6 +22,10 @@
|
||||||
color: var(--ifm-color-content);
|
color: var(--ifm-color-content);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.playgroundEditor {
|
||||||
|
font-family: var(--ifm-font-family-monospace) !important;
|
||||||
|
}
|
||||||
|
|
||||||
.playgroundPreview {
|
.playgroundPreview {
|
||||||
border: 1px solid var(--ifm-color-emphasis-200);
|
border: 1px solid var(--ifm-color-emphasis-200);
|
||||||
border-bottom-left-radius: var(--ifm-global-radius);
|
border-bottom-left-radius: var(--ifm-global-radius);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue