38 lines
994 B
TypeScript

import MDEditor from '@uiw/react-md-editor';
import styled from 'styled-components';
import { ANTD_GRAY } from '../../constants';
export default styled(MDEditor)`
height: calc(100% - 46px) !important;
z-index: 0;
box-shadow: none;
border-radius: 0;
font-weight: 400;
.w-md-editor-toolbar {
border-color: ${ANTD_GRAY[4]};
background: white;
padding: 0 20px;
height: 46px !important;
li {
button {
height: 100%;
margin: 0 5px;
}
svg {
width: 16px;
height: 16px;
}
&.active > button {
color: ${(props) => props.theme.styles['primary-color']};
background-color: ${ANTD_GRAY[3]};
}
}
}
.w-md-editor-preview {
box-shadow: inset 1px 0 0 0 ${ANTD_GRAY[4]};
}
.w-md-editor-content {
height: calc(100% - 46px) !important;
}
`;