Skip to content

Commit 9c2bf94

Browse files
committed
Revert "chore: add and fix margins inside super note content [skip e2e]"
This reverts commit 562e1be.
1 parent b240e3a commit 9c2bf94

File tree

2 files changed

+12
-24
lines changed

2 files changed

+12
-24
lines changed

packages/web/src/javascripts/Components/SuperEditor/Lexical/Theme/base.scss

+1-21
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
hr {
2424
padding: 2px 0px;
2525
border: none;
26-
margin: 0.825em 0;
26+
margin: 1em 0;
2727
cursor: pointer;
2828
}
2929

@@ -40,23 +40,3 @@
4040
user-select: none;
4141
}
4242
}
43-
44-
.ContentEditable__root,
45-
.Collapsible__content {
46-
> *:not(:first-child) {
47-
margin-block-start: 0.825em;
48-
}
49-
50-
// Remove extra margin around empty paragraphs
51-
.Lexical__paragraph:has(br:first-child) {
52-
margin-block-start: 0;
53-
54-
& + * {
55-
margin-block-start: 0;
56-
}
57-
}
58-
59-
.Lexical__listItem {
60-
margin-block-end: 0.325em;
61-
}
62-
}

packages/web/src/javascripts/Components/SuperEditor/Lexical/Theme/editor.scss

+11-3
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,13 @@
77
text-align: right;
88
}
99
.Lexical__paragraph {
10+
margin: 0;
1011
position: relative;
1112
}
1213
.Lexical__quote {
14+
margin: 0;
1315
margin-left: 20px;
16+
margin-bottom: 10px;
1417
color: var(--sn-stylekit-passive-color-1);
1518
border-left-color: var(--sn-stylekit-passive-color-1);
1619
border-left-width: 4px;
@@ -28,18 +31,21 @@
2831
}
2932
}
3033
.Lexical__h1 {
31-
font-size: 1.75em;
34+
font-size: 26px;
3235
color: var(--sn-stylekit-editor-foreground-color);
3336
font-weight: 700;
37+
margin: 0;
3438
}
3539
.Lexical__h2 {
36-
font-size: 1.5em;
40+
font-size: 22px;
3741
color: var(--sn-stylekit-editor-foreground-color);
3842
font-weight: 700;
43+
margin: 0;
3944
}
4045
.Lexical__h3 {
41-
font-size: 1.3em;
46+
font-size: 19px;
4247
font-weight: 700;
48+
margin: 0;
4349
}
4450
.Lexical__textBold {
4551
font-weight: bold;
@@ -88,6 +94,7 @@
8894
font-family: var(--sn-stylekit-monospace-font), monospace;
8995
display: block;
9096
padding: 1.25rem 1.35rem;
97+
margin: 0.5rem 0;
9198
tab-size: 2;
9299
overflow-x: auto;
93100
position: relative;
@@ -105,6 +112,7 @@
105112
overflow-y: scroll;
106113
table-layout: fixed;
107114
width: calc(100% - 25px);
115+
margin: 0.5rem 0;
108116
color: var(--sn-stylekit-contrast-foreground-color);
109117
}
110118
.Lexical__tableSelection *::selection {

0 commit comments

Comments
 (0)