Skip to content
Snippets Groups Projects

Surface styles

Merged Christos requested to merge surface-styles into master
6 files
+ 39
103
Compare changes
  • Side-by-side
  • Inline
Files
6
import { css } from 'styled-components';
import { th } from '@pubsweet/ui-toolkit';
/* All styles regarding ProseMirror surface and elements */
const fontWriting = css`
font-family: ${th('fontWriting')};
font-size: ${th('fontSizeBase')};
color: ${th('colorText')};
`;
export default css`
.ProseMirror {
background: white;
line-height: 1.6;
${fontWriting}
p::selection,
h1::selection,
h2::selection,
h3::selection,
code::selection,
span::selection,
p span::selection,
h1 span::selection,
h2 span::selection,
h3 span::selection,
h4 span::selection,
code span::selection,
custom-tag-block::selection,
custom-tag-inline::selection,
#notes-container div::selection {
background-color: transparent;
color: #000;
}
}
`;
export default css``;