diff --git a/packages/docz-theme-default/src/components/ui/Editor/index.tsx b/packages/docz-theme-default/src/components/ui/Editor/index.tsx index e6db3bb93..1927ac23b 100644 --- a/packages/docz-theme-default/src/components/ui/Editor/index.tsx +++ b/packages/docz-theme-default/src/components/ui/Editor/index.tsx @@ -48,14 +48,12 @@ const Wrapper = styled('div')` position: relative; width: 100%; border: 1px solid ${get('colors.border')}; - border-radius: ${get('radii')}; ` const Scrollbar = styled(PerfectScrollbar)` overflow: auto; position: relative; max-height: 360px; - border-radius: ${get('radii')}; .ps__rail-y { z-index: 9; @@ -63,18 +61,12 @@ const Scrollbar = styled(PerfectScrollbar)` } ` -interface EditorStyledProps { - square: boolean -} - const preStyles = get('styles.pre') const EditorStyled = styled(CodeMirror)` ${themes.dark()}; ${themes.light()}; ${p => p.theme.docz.mq(preStyles(p))}; position: relative; - border-radius: ${(p: EditorStyledProps) => - p.square ? 'none' : get('radii')}; flex: 1; .CodeMirror { @@ -164,7 +156,6 @@ interface EditorProps { onChange?: (code: string) => any language?: string withLastLine?: boolean - square?: boolean } interface EditorState { @@ -193,7 +184,6 @@ export class Editor extends Component { className, editorClassName, language: defaultLanguage, - square, ...props } = this.props @@ -234,7 +224,7 @@ export class Editor extends Component { {config => ( - + )} diff --git a/packages/docz-theme-default/src/config.ts b/packages/docz-theme-default/src/config.ts index c8ce41feb..90c6f944e 100644 --- a/packages/docz-theme-default/src/config.ts +++ b/packages/docz-theme-default/src/config.ts @@ -4,7 +4,7 @@ import * as colors from './styles/colors' export const config = { colors, styles, - radii: '4px', + radii: '2px', mode: 'light', showPlaygroundEditor: false, } diff --git a/packages/docz-theme-default/src/styles/codemirror/dark.ts b/packages/docz-theme-default/src/styles/codemirror/dark.ts index 48b40b0c2..96fcecc70 100644 --- a/packages/docz-theme-default/src/styles/codemirror/dark.ts +++ b/packages/docz-theme-default/src/styles/codemirror/dark.ts @@ -4,7 +4,7 @@ export const theme = () => css` .CodeMirror.cm-s-docz-dark { color: #d8dee9; background-color: #2e3440; - border-radius: 4px; + border-radius: 0; } .cm-s-docz-dark .CodeMirror-selected { background-color: rgba(67, 76, 94, 0.8); @@ -13,7 +13,7 @@ export const theme = () => css` .cm-s-docz-dark .CodeMirror-gutters { border: none; background-color: #2e3440; - border-radius: 4px; + border-radius: 0; } .cm-s-docz-dark .CodeMirror-linenumber, .cm-s-docz-dark .CodeMirror-linenumbers { diff --git a/packages/docz-theme-default/src/styles/codemirror/light.ts b/packages/docz-theme-default/src/styles/codemirror/light.ts index 25179b6c9..8d9309da0 100644 --- a/packages/docz-theme-default/src/styles/codemirror/light.ts +++ b/packages/docz-theme-default/src/styles/codemirror/light.ts @@ -2,7 +2,7 @@ import { css } from 'react-emotion' export const theme = () => css` .cm-s-docz-light.CodeMirror { - border-radius: 4px; + border-radius: 0; background: #fbfcfd; color: #24292e; } @@ -10,7 +10,7 @@ export const theme = () => css` .cm-s-docz-light .CodeMirror-gutters { background: #fbfcfd; border-right-width: 0; - border-radius: 4px; + border-radius: 0; } .cm-s-docz-light .CodeMirror-guttermarker {