Changes to text editor

This commit is contained in:
alonso.torres 2022-02-17 14:53:46 +01:00
parent d83459f674
commit 618d22d214
9 changed files with 115 additions and 149 deletions

View file

@ -1,62 +1,61 @@
foreignObject {
.text-editor,
.rich-text {
color: $color-black;
height: 100%;
white-space: pre-wrap;
font-family: sourcesanspro;
div {
line-height: inherit;
user-select: text;
}
.text-editor,
.rich-text {
color: $color-black;
height: 100%;
white-space: pre-wrap;
font-family: sourcesanspro;
span {
line-height: inherit;
}
div {
line-height: inherit;
user-select: text;
}
.text-editor {
.DraftEditor-root {
height: 100%;
display: flex;
flex-direction: column;
}
&.align-top {
.DraftEditor-root {
justify-content: flex-start;
}
}
&.align-center {
.DraftEditor-root {
justify-content: center;
}
}
&.align-bottom {
.DraftEditor-root {
justify-content: flex-end;
}
}
span {
line-height: inherit;
}
}
.rich-text .paragraphs {
.text-editor {
.DraftEditor-root {
height: 100%;
display: flex;
flex-direction: column;
}
&.align-top {
&.align-top {
.DraftEditor-root {
justify-content: flex-start;
}
}
&.align-center {
&.align-center {
.DraftEditor-root {
justify-content: center;
}
}
&.align-bottom {
&.align-bottom {
.DraftEditor-root {
justify-content: flex-end;
}
}
}
.rich-text .paragraphs {
height: 100%;
display: flex;
flex-direction: column;
&.align-top {
justify-content: flex-start;
}
&.align-center {
justify-content: center;
}
&.align-bottom {
justify-content: flex-end;
}
}