mirror of
https://github.com/Redocly/redoc.git
synced 2025-08-08 14:14:56 +03:00
fix: make ConsoleEditor typography closer to the payload viewer
This commit is contained in:
parent
cb2389a586
commit
e80fe1d47c
|
@ -46,8 +46,13 @@ export class ConsoleEditor extends React.Component<ConsoleEditorProps> {
|
||||||
enableSnippets: true,
|
enableSnippets: true,
|
||||||
showLineNumbers: true,
|
showLineNumbers: true,
|
||||||
tabSize: 2,
|
tabSize: 2,
|
||||||
|
fontFamily: 'Courier,monospace,Vazir',
|
||||||
|
displayIndentGuides: false,
|
||||||
|
}}
|
||||||
|
fontSize={13}
|
||||||
|
style={{
|
||||||
|
lineHeight: '23px',
|
||||||
}}
|
}}
|
||||||
fontSize={15}
|
|
||||||
mode="json"
|
mode="json"
|
||||||
name="request-builder-editor"
|
name="request-builder-editor"
|
||||||
editorProps={{ $blockScrolling: true }}
|
editorProps={{ $blockScrolling: true }}
|
||||||
|
|
|
@ -15,8 +15,9 @@ export const ConsoleEditorWrapper = styled.div`
|
||||||
background: #11171a !important;
|
background: #11171a !important;
|
||||||
width: 100% !important;
|
width: 100% !important;
|
||||||
}
|
}
|
||||||
& .ace_editor .ace_marker-layer .ace_selection {
|
& .ace_editor .ace_marker-layer .ace_selection, & .ace_editor .ace_marker-layer .ace_selected-word {
|
||||||
background: ${lighten(0.05, '#11171a')} !important;
|
background: ${lighten(0.05, '#11171a')} !important;
|
||||||
|
border-color: ${lighten(0.05, '#11171a')} !important;
|
||||||
}
|
}
|
||||||
& .ace_editor .ace_marker-layer .ace_active-line {
|
& .ace_editor .ace_marker-layer .ace_active-line {
|
||||||
background: rgba(0, 0, 0, 0.2);
|
background: rgba(0, 0, 0, 0.2);
|
||||||
|
@ -30,6 +31,7 @@ export const ConsoleEditorWrapper = styled.div`
|
||||||
& .ace_editor .ace_line .ace_fold {
|
& .ace_editor .ace_line .ace_fold {
|
||||||
background: none !important;
|
background: none !important;
|
||||||
color: #aaa;
|
color: #aaa;
|
||||||
|
border: none;
|
||||||
}
|
}
|
||||||
& .ace_editor .ace_line .ace_fold:hover {
|
& .ace_editor .ace_line .ace_fold:hover {
|
||||||
background: none !important;
|
background: none !important;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user