Skip to content

A fully open source & end-to-end encrypted note taking alternative to Evernote.

editor: align outline bullet in the center of item

Abdullah Atta7edd45419e71
diff --git a/packages/editor/styles/styles.css b/packages/editor/styles/styles.css
index bc83c7a59..0130ad592 100644
--- a/packages/editor/styles/styles.css
+++ b/packages/editor/styles/styles.css
@@ -497,13 +497,13 @@ p > *::selection {
.outline-list li.collapsed .outline-list {
display: none;
}
-.outline-list li > p:first-child {
+.outline-list li > :first-child {
position: relative;
}
-.outline-list li > p:first-child::before {
+.outline-list li > :first-child::before {
position: absolute;
- top: 4px;
+ top: calc(50% - 7.5px);
cursor: pointer;
content: "";
background-size: 18px;
@@ -521,13 +521,13 @@ p > *::selection {
left: -22px;
}
-.outline-list li:not(.nested) > p:first-child::before {
+.outline-list li:not(.nested) > :first-child::before {
mask: url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxZW0iIGhlaWdodD0iMWVtIiB2aWV3Qm94PSIwIDAgMjQgMjQiPjxwYXRoIGZpbGw9IiM4ODg4ODgiIGQ9Ik0xMiAyQTEwIDEwIDAgMCAwIDIgMTJhMTAgMTAgMCAwIDAgMTAgMTBhMTAgMTAgMCAwIDAgMTAtMTBBMTAgMTAgMCAwIDAgMTIgMloiLz48L3N2Zz4=)
no-repeat 50% 50%;
scale: 0.4;
}
-.outline-list li.collapsed > p:first-child::before {
+.outline-list li.collapsed > :first-child::before {
transform: rotate(-90deg);
}
@@ -544,7 +544,6 @@ p > *::selection {
border-left: 1px solid var(--hover);
}
-
/* IMAGE */
.image-view-content-wrap.ProseMirror-selectednode .resizer::before {