Skip to content
Snippets Groups Projects
Commit 10dbcd7e authored by Mark Hall's avatar Mark Hall
Browse files

Fixed a white-space bug in the TEI editor

parent 836e21d9
Branches
Tags
No related merge requests found
......@@ -2,6 +2,8 @@
## Development ():
* **Bugfix**: Fix white-space issues in the TEI editor
## 0.10.5 (29.07.2020)
* **Update**: Minimally improved the UX in the metadata editor
......
......@@ -309,7 +309,45 @@ div.branch-overview {
margin-right: 1rem; }
#tei-editor .text-editor .ProseMirror {
padding: 0 1rem; }
padding: 0 1rem;
position: relative;
word-wrap: break-word;
white-space: pre-wrap;
white-space: break-spaces;
-webkit-font-variant-ligatures: none;
font-variant-ligatures: none;
font-feature-settings: "liga" 0; }
#tei-editor .text-editor .ProseMirror pre {
white-space: pre-wrap; }
#tei-editor .text-editor .ProseMirror li {
position: relative; }
#tei-editor .text-editor .ProseMirror-hideselection *::selection {
background: transparent; }
#tei-editor .text-editor .ProseMirror-hideselection *::-moz-selection {
background: transparent; }
#tei-editor .text-editor .ProseMirror-hideselection {
caret-color: transparent; }
#tei-editor .text-editor .ProseMirror-selectednode {
outline: 2px solid #8cf; }
#tei-editor .text-editor li.ProseMirror-selectednode {
outline: none; }
#tei-editor .text-editor li.ProseMirror-selectednode:after {
content: "";
position: absolute;
left: -32px;
right: -2px;
top: -2px;
bottom: -2px;
border: 2px solid #8cf;
pointer-events: none; }
#tei-editor .text-editor .nested {
background: #ffffff; }
......
......@@ -7,8 +7,54 @@
}
}
.text-editor .ProseMirror {
padding: 0 $global-padding;
.text-editor {
.ProseMirror {
padding: 0 $global-padding;
position: relative;
word-wrap: break-word;
white-space: pre-wrap;
white-space: break-spaces;
-webkit-font-variant-ligatures: none;
font-variant-ligatures: none;
font-feature-settings: "liga" 0;
}
.ProseMirror pre {
white-space: pre-wrap;
}
.ProseMirror li {
position: relative;
}
.ProseMirror-hideselection *::selection {
background: transparent;
}
.ProseMirror-hideselection *::-moz-selection {
background: transparent;
}
.ProseMirror-hideselection {
caret-color: transparent;
}
.ProseMirror-selectednode {
outline: 2px solid #8cf;
}
li.ProseMirror-selectednode {
outline: none;
}
li.ProseMirror-selectednode:after {
content: "";
position: absolute;
left: -32px;
right: -2px; top: -2px; bottom: -2px;
border: 2px solid #8cf;
pointer-events: none;
}
}
.text-editor .nested {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment