Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
digital-edition-editor
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
gutzkow
digital-edition-editor
Commits
10dbcd7e
Commit
10dbcd7e
authored
4 years ago
by
Mark Hall
Browse files
Options
Downloads
Patches
Plain Diff
Fixed a white-space bug in the TEI editor
parent
836e21d9
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
CHANGES.md
+2
-0
2 additions, 0 deletions
CHANGES.md
src/digi_edit/static/theme.css
+39
-1
39 additions, 1 deletion
src/digi_edit/static/theme.css
src/theme/_tei-editor.scss
+48
-2
48 additions, 2 deletions
src/theme/_tei-editor.scss
with
89 additions
and
3 deletions
CHANGES.md
+
2
−
0
View file @
10dbcd7e
...
...
@@ -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
...
...
This diff is collapsed.
Click to expand it.
src/digi_edit/static/theme.css
+
39
−
1
View file @
10dbcd7e
...
...
@@ -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
;
}
...
...
This diff is collapsed.
Click to expand it.
src/theme/_tei-editor.scss
+
48
−
2
View file @
10dbcd7e
...
...
@@ -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
{
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment