Skip to content
Snippets Groups Projects
Commit c8f97687 authored by chris's avatar chris
Browse files

all styles for Prosemirror surface

parent 842e73fe
No related branches found
No related tags found
1 merge request!33Layouts themes
import styled, { css } from "styled-components"; import styled, { css } from "styled-components";
/* All styles regarding ProseMirror surface and elements */
export default css`{ export default css`{
.ProseMirror {
-moz-box-shadow: 0 0 3px #ccc;
-webkit-box-shadow: 0 0 3px #ccc;
box-shadow: 0 0 3px #ccc;
width: 65%;
min-height: 90%;
padding: 40px;
font-family: ${props => props.theme.fontReading};
&:focus {
outline: none;
}
}
hr { hr {
padding: 2px 10px; padding: 2px 10px;
border: none; border: none;
...@@ -74,7 +88,8 @@ export default css`{ ...@@ -74,7 +88,8 @@ export default css`{
background-color: #adf; background-color: #adf;
pointer-events: none; pointer-events: none;
} }
.ProseMirror.resize-cursor.resize-cursor {
.ProseMirror.resize-cursor {
cursor: ew-resize; cursor: ew-resize;
cursor: col-resize; cursor: col-resize;
} }
......
...@@ -27,19 +27,7 @@ const WaxSurfaceScroll = styled.div` ...@@ -27,19 +27,7 @@ const WaxSurfaceScroll = styled.div`
padding: 0; padding: 0;
margin-left: 14%; margin-left: 14%;
padding: 2px; padding: 2px;
.ProseMirror { ${EditorElements};
-moz-box-shadow: 0 0 3px #ccc;
-webkit-box-shadow: 0 0 3px #ccc;
box-shadow: 0 0 3px #ccc;
width: 65%;
min-height: 90%;
padding: 40px;
font-family: ${props => props.theme.fontReading};
&:focus {
outline: none;
}
${EditorElements};
}
`; `;
const EditoriaLayout = ({ editor, view, ...props }) => ( const EditoriaLayout = ({ editor, view, ...props }) => (
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment