@@ -48,7 +48,8 @@ NESTED BLOCKS
4848 position : relative;
4949}
5050
51- .bn-block-group .bn-block-group
51+ .bn-block-group
52+ .bn-block-group
5253 > .bn-block-outer : not ([data-prev-depth-changed ])::before {
5354 content : " " ;
5455 display : inline;
@@ -58,7 +59,8 @@ NESTED BLOCKS
5859 transition : all 0.2s 0.1s ;
5960}
6061
61- .bn-block-group .bn-block-group
62+ .bn-block-group
63+ .bn-block-group
6264 > .bn-block-outer [data-prev-depth-change = "-2" ]::before {
6365 height : 0 ;
6466}
@@ -147,6 +149,11 @@ NESTED BLOCKS
147149}
148150
149151/* Ordered */
152+ .bn-block-content [data-content-type = "numberedListItem" ] {
153+ display : flex;
154+ gap : 1.2em ;
155+ }
156+
150157[data-content-type = "numberedListItem" ] {
151158 --index : attr (data-index);
152159}
@@ -158,30 +165,31 @@ NESTED BLOCKS
158165.bn-block-outer [data-prev-type = "numberedListItem" ]: not ([data-prev-index = "none" ])
159166 > .bn-block
160167 > .bn-block-content ::before {
161- margin-right : 1.2em ;
162168 content : var (--prev-index ) "." ;
163169}
164170
165171.bn-block-outer : not ([data-prev-type ])
166172 > .bn-block
167173 > .bn-block-content [data-content-type = "numberedListItem" ]::before {
168- margin-right : 1.2em ;
169174 content : var (--index ) "." ;
170175}
171176
172177/* Unordered */
178+ .bn-block-content [data-content-type = "bulletListItem" ] {
179+ display : flex;
180+ gap : 1.2em ;
181+ }
182+
173183/* No list nesting */
174184.bn-block-outer [data-prev-type = "bulletListItem" ]
175185 > .bn-block
176186 > .bn-block-content ::before {
177- margin-right : 1.2em ;
178187 content : "•" ;
179188}
180189
181190.bn-block-outer : not ([data-prev-type ])
182191 > .bn-block
183192 > .bn-block-content [data-content-type = "bulletListItem" ]::before {
184- margin-right : 1.2em ;
185193 content : "•" ;
186194}
187195
@@ -191,7 +199,6 @@ NESTED BLOCKS
191199 > .bn-block-outer [data-prev-type = "bulletListItem" ]
192200 > .bn-block
193201 > .bn-block-content ::before {
194- margin-right : 1.2em ;
195202 content : "◦" ;
196203}
197204
@@ -200,7 +207,6 @@ NESTED BLOCKS
200207 > .bn-block-outer : not ([data-prev-type ])
201208 > .bn-block
202209 > .bn-block-content [data-content-type = "bulletListItem" ]::before {
203- margin-right : 1.2em ;
204210 content : "◦" ;
205211}
206212
@@ -212,7 +218,6 @@ NESTED BLOCKS
212218 > .bn-block-outer [data-prev-type = "bulletListItem" ]
213219 > .bn-block
214220 > .bn-block-content ::before {
215- margin-right : 1.2em ;
216221 content : "▪" ;
217222}
218223
@@ -223,7 +228,6 @@ NESTED BLOCKS
223228 > .bn-block-outer : not ([data-prev-type ])
224229 > .bn-block
225230 > .bn-block-content [data-content-type = "bulletListItem" ]::before {
226- margin-right : 1.2em ;
227231 content : "▪" ;
228232}
229233
@@ -293,7 +297,7 @@ NESTED BLOCKS
293297}
294298
295299[data-content-type = "image" ] .caption {
296- font-size : 0.8em
300+ font-size : 0.8em ;
297301}
298302
299303/* PLACEHOLDERS*/
@@ -326,12 +330,14 @@ NESTED BLOCKS
326330
327331.bn-block-content [data-content-type = "bulletListItem" ].bn-is-empty
328332 .bn-inline-content : before ,
329- .bn-block-content [data-content-type = "numberedListItem" ].bn-is-empty
333+ .bn-block-content [data-content-type = "numberedListItem" ].bn-is-empty
330334 .bn-inline-content : before {
331335 content : "List" ;
332336}
333337
334- .bn-is-empty .bn-block-content [data-content-type = "captionedImage" ] .bn-inline-content : before {
338+ .bn-is-empty
339+ .bn-block-content [data-content-type = "captionedImage" ]
340+ .bn-inline-content : before {
335341 content : "Caption" ;
336342}
337343
0 commit comments