diff options
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 |