Skip to content

Commit d96e47a

Browse files
authored
Removed inconsistencies in styling of editor content (#675)
* Removed inconsistencies in styling of editor content * Fixed integrated attachments style * Updated styles * Added padding for lists * Improved padding
1 parent e654373 commit d96e47a

3 files changed

Lines changed: 6 additions & 10 deletions

File tree

src/components/Editor/index.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@ const Editor = (
202202
dragDropRef={dragDropRef}
203203
isIndependent={false}
204204
ref={addAttachmentsRef}
205-
className={classnames("ne-attachments", {
205+
className={classnames("ne-attachments--integrated", {
206206
[attachmentsClassName]: attachmentsClassName,
207207
})}
208208
onChange={onChangeAttachments}

src/styles/editor/_editor-content.scss

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -12,15 +12,14 @@
1212
h4,
1313
h5,
1414
h6 {
15-
margin: 0 0 16px 0;
15+
margin: 1rem 0 0.5rem 0;
1616
}
1717

1818
// Paragraph
1919
p {
2020
font-size: var(--neeto-ui-text-body2);
2121
line-height: var(--neeto-ui-leading-normal);
2222
color: rgb(var(--neeto-ui-gray-700));
23-
margin-bottom: 8px;
2423

2524
&:empty::after {
2625
content: "\00a0";
@@ -85,13 +84,8 @@
8584
ul,
8685
ol {
8786
list-style: revert;
88-
margin: revert;
89-
padding: revert;
87+
padding-left: 28px;
9088

91-
& > li > p {
92-
margin-top: 0 !important;
93-
margin-bottom: 0.375rem !important;
94-
}
9589
li::before {
9690
background-color: rgb(var(--neeto-ui-black));
9791
}
@@ -107,7 +101,7 @@
107101
.video-wrapper {
108102
width: 560px;
109103
height: 315px;
110-
margin: auto;
104+
margin: 16px auto;
111105
}
112106

113107
mark {
@@ -172,6 +166,7 @@
172166
}
173167

174168
.neeto-editor__image-wrapper {
169+
margin: 16px 0;
175170
display: flex;
176171

177172
figure {

src/styles/editor/_table.scss

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
.neeto-editor-table {
22
display: relative;
33
width: fit-content;
4+
margin: 16px 0;
45

56
table {
67
th,

0 commit comments

Comments
 (0)