Skip to content

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

editor: move outline list item indicator to li from first child

Abdullah Atta9f4c0a4c9af6
diff --git a/packages/editor/styles/styles.css b/packages/editor/styles/styles.css
index 3ff2ec936..e676c1ee2 100644
--- a/packages/editor/styles/styles.css
+++ b/packages/editor/styles/styles.css
@@ -536,11 +536,11 @@ p > *::selection {
.outline-list li.collapsed .outline-list {
display: none;
}
-.outline-list li > :first-child {
+.outline-list li {
position: relative;
}
-.outline-list > li > :first-child::before {
+.outline-list > li::before {
position: absolute;
top: 0px;
cursor: pointer;
@@ -560,13 +560,13 @@ p > *::selection {
left: -22px;
}
-.outline-list li:not(.nested) > :first-child::before {
+.outline-list li:not(.nested)::before {
mask: url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxZW0iIGhlaWdodD0iMWVtIiB2aWV3Qm94PSIwIDAgMjQgMjQiPjxwYXRoIGZpbGw9IiM4ODg4ODgiIGQ9Ik0xMiAyQTEwIDEwIDAgMCAwIDIgMTJhMTAgMTAgMCAwIDAgMTAgMTBhMTAgMTAgMCAwIDAgMTAtMTBBMTAgMTAgMCAwIDAgMTIgMloiLz48L3N2Zz4=)
no-repeat 50% 50%;
scale: 0.4;
}
-.outline-list li.collapsed > :first-child::before {
+.outline-list li.collapsed::before {
transform: rotate(-90deg);
}