Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/text.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/css
diff options
context:
space:
mode:
authorJulius Härtl <jus@bitgrid.net>2019-10-25 16:18:40 +0300
committerJulius Härtl <jus@bitgrid.net>2019-10-28 13:51:12 +0300
commit7b3edd3989e4656db414c20f5aad6541c9c39a1e (patch)
treebdcc9d3263b0e1268d963c9179a2ddd5f9e0d692 /css
parente322c247a347c703bdab35f0ba423114bc898d49 (diff)
Add preview plugin
Signed-off-by: Julius Härtl <jus@bitgrid.net>
Diffstat (limited to 'css')
-rw-r--r--css/prosemirror.scss15
-rw-r--r--css/style.scss11
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