diff options
author | Julius Härtl <jus@bitgrid.net> | 2019-10-25 16:18:40 +0300 |
---|---|---|
committer | Julius Härtl <jus@bitgrid.net> | 2019-10-28 13:51:12 +0300 |
commit | 7b3edd3989e4656db414c20f5aad6541c9c39a1e (patch) | |
tree | bdcc9d3263b0e1268d963c9179a2ddd5f9e0d692 /css | |
parent | e322c247a347c703bdab35f0ba423114bc898d49 (diff) |
Add preview plugin
Signed-off-by: Julius Härtl <jus@bitgrid.net>
Diffstat (limited to 'css')
-rw-r--r-- | css/prosemirror.scss | 15 | ||||
-rw-r--r-- | css/style.scss | 11 |
2 files changed, 13 insertions, 13 deletions
diff --git a/css/prosemirror.scss b/css/prosemirror.scss index 4b4bae934..0cd43af70 100644 --- a/css/prosemirror.scss +++ b/css/prosemirror.scss @@ -1,5 +1,5 @@ /* Document rendering styles */ -#editor-wrapper .ProseMirror { +.ProseMirror { margin-top: 44px; height: 100%; position: relative; @@ -12,6 +12,17 @@ font-size: 14px; outline: none; + &[contenteditable=true], + &[contenteditable=false] { + border: none !important; + width: 100%; + background-color: transparent; + color: var(--color-main-text); + opacity: 1; + -webkit-user-select: text; + user-select: text; + } + p:first-child, h1:first-child, h2:first-child, @@ -133,7 +144,7 @@ .ProseMirror-focused .ProseMirror-gapcursor { display: block; } -#editor-wrapper:not(.richEditor) .ProseMirror { +&:not(.richEditor) .ProseMirror { pre { background-color: var(--color-main-background); diff --git a/css/style.scss b/css/style.scss index 1d0b944cf..b5923a2ca 100644 --- a/css/style.scss +++ b/css/style.scss @@ -52,14 +52,3 @@ li.ProseMirror-selectednode:after { visibility: hidden; } } - -div[contenteditable=true], -div[contenteditable=false] { - border: none !important; - width: 100%; - background-color: transparent; - color: var(--color-main-text); - opacity: 1; - -webkit-user-select: text; - user-select: text; -}
\ No newline at end of file |