UNPKG

remirror

Version:

One editing package to rule them all, one editing package to bind them.

65 lines (59 loc) 1.56 kB
/** * Styles extracted from: packages/remirror__theme/src/core-theme.ts */ .remirror-editor.ProseMirror { word-wrap: break-word; white-space: pre-wrap; white-space: break-spaces; position: relative; font-variant-ligatures: none; font-feature-settings: 'liga' 0; overflow-y: scroll; } .remirror-editor.ProseMirror pre { white-space: pre-wrap; } .remirror-editor.ProseMirror li { position: relative; } .remirror-editor.ProseMirror hr { border-color: #2e2e2e; } /* Protect against generic img rules. See also https://github.com/ProseMirror/prosemirror-view/commit/aaa50d592074c8063fc2ef77907ab6d0373822fb */ .remirror-editor.ProseMirror img.ProseMirror-separator { display: inline !important; border: none !important; margin: 0 !important; } .remirror-editor.ProseMirror-hideselection *::-moz-selection { background: transparent; color: inherit; } .remirror-editor.ProseMirror-hideselection *::selection { background: transparent; color: inherit; } .remirror-editor.ProseMirror-hideselection *::-moz-selection { background: transparent; color: inherit; } .remirror-editor.ProseMirror-hideselection { caret-color: transparent; } .remirror-editor .ProseMirror-selectednode { outline: 2px solid #8cf; } /* Make sure li selections wrap around markers */ .remirror-editor li.ProseMirror-selectednode { outline: none; } .remirror-editor li.ProseMirror-selectednode:after { content: ''; position: absolute; left: -32px; right: -2px; top: -2px; bottom: -2px; border: 2px solid #8cf; pointer-events: none; }