Skip to content

Commit

Permalink
Moved texblock design time styles out of published css (#694)
Browse files Browse the repository at this point in the history
  • Loading branch information
velsietis authored Jun 11, 2020
1 parent 8d9113f commit 795c2bb
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 23 deletions.
1 change: 1 addition & 0 deletions src/themes/designer/styles/widgets.scss
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
@import "widgets/map.scss";
@import "widgets/video.scss";
@import "widgets/textblock.scss";
@import "editors/videoEditor.scss";
@import "editors/rowLayoutSelector.scss";
@import "editors/colorSelector.scss";
21 changes: 21 additions & 0 deletions src/themes/designer/styles/widgets/textblock.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
[contenteditable]:focus {
outline: none;
}

.ProseMirror {
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; /* the above doesn't seem to work in Edge */

pre {
white-space: pre-wrap;
}

li {
position: relative;
}
}
24 changes: 1 addition & 23 deletions src/themes/website/styles/widgets/textblock.scss
Original file line number Diff line number Diff line change
@@ -1,27 +1,5 @@
[contenteditable]:focus {
outline: none;
}

p:empty {
&:before {
content: " ";
}
}

.ProseMirror {
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; /* the above doesn't seem to work in Edge */

pre {
white-space: pre-wrap;
}

li {
position: relative;
}
}
}

0 comments on commit 795c2bb

Please sign in to comment.