@@ -48,7 +48,8 @@ NESTED BLOCKS
48
48
position : relative;
49
49
}
50
50
51
- .bn-block-group .bn-block-group
51
+ .bn-block-group
52
+ .bn-block-group
52
53
> .bn-block-outer : not ([data-prev-depth-changed ])::before {
53
54
content : " " ;
54
55
display : inline;
@@ -58,7 +59,8 @@ NESTED BLOCKS
58
59
transition : all 0.2s 0.1s ;
59
60
}
60
61
61
- .bn-block-group .bn-block-group
62
+ .bn-block-group
63
+ .bn-block-group
62
64
> .bn-block-outer [data-prev-depth-change = "-2" ]::before {
63
65
height : 0 ;
64
66
}
@@ -147,6 +149,11 @@ NESTED BLOCKS
147
149
}
148
150
149
151
/* Ordered */
152
+ .bn-block-content [data-content-type = "numberedListItem" ] {
153
+ display : flex;
154
+ gap : 1.2em ;
155
+ }
156
+
150
157
[data-content-type = "numberedListItem" ] {
151
158
--index : attr (data-index);
152
159
}
@@ -158,30 +165,31 @@ NESTED BLOCKS
158
165
.bn-block-outer [data-prev-type = "numberedListItem" ]: not ([data-prev-index = "none" ])
159
166
> .bn-block
160
167
> .bn-block-content ::before {
161
- margin-right : 1.2em ;
162
168
content : var (--prev-index ) "." ;
163
169
}
164
170
165
171
.bn-block-outer : not ([data-prev-type ])
166
172
> .bn-block
167
173
> .bn-block-content [data-content-type = "numberedListItem" ]::before {
168
- margin-right : 1.2em ;
169
174
content : var (--index ) "." ;
170
175
}
171
176
172
177
/* Unordered */
178
+ .bn-block-content [data-content-type = "bulletListItem" ] {
179
+ display : flex;
180
+ gap : 1.2em ;
181
+ }
182
+
173
183
/* No list nesting */
174
184
.bn-block-outer [data-prev-type = "bulletListItem" ]
175
185
> .bn-block
176
186
> .bn-block-content ::before {
177
- margin-right : 1.2em ;
178
187
content : "•" ;
179
188
}
180
189
181
190
.bn-block-outer : not ([data-prev-type ])
182
191
> .bn-block
183
192
> .bn-block-content [data-content-type = "bulletListItem" ]::before {
184
- margin-right : 1.2em ;
185
193
content : "•" ;
186
194
}
187
195
@@ -191,7 +199,6 @@ NESTED BLOCKS
191
199
> .bn-block-outer [data-prev-type = "bulletListItem" ]
192
200
> .bn-block
193
201
> .bn-block-content ::before {
194
- margin-right : 1.2em ;
195
202
content : "◦" ;
196
203
}
197
204
@@ -200,7 +207,6 @@ NESTED BLOCKS
200
207
> .bn-block-outer : not ([data-prev-type ])
201
208
> .bn-block
202
209
> .bn-block-content [data-content-type = "bulletListItem" ]::before {
203
- margin-right : 1.2em ;
204
210
content : "◦" ;
205
211
}
206
212
@@ -212,7 +218,6 @@ NESTED BLOCKS
212
218
> .bn-block-outer [data-prev-type = "bulletListItem" ]
213
219
> .bn-block
214
220
> .bn-block-content ::before {
215
- margin-right : 1.2em ;
216
221
content : "▪" ;
217
222
}
218
223
@@ -223,7 +228,6 @@ NESTED BLOCKS
223
228
> .bn-block-outer : not ([data-prev-type ])
224
229
> .bn-block
225
230
> .bn-block-content [data-content-type = "bulletListItem" ]::before {
226
- margin-right : 1.2em ;
227
231
content : "▪" ;
228
232
}
229
233
@@ -293,7 +297,7 @@ NESTED BLOCKS
293
297
}
294
298
295
299
[data-content-type = "image" ] .caption {
296
- font-size : 0.8em
300
+ font-size : 0.8em ;
297
301
}
298
302
299
303
/* PLACEHOLDERS*/
@@ -326,12 +330,14 @@ NESTED BLOCKS
326
330
327
331
.bn-block-content [data-content-type = "bulletListItem" ].bn-is-empty
328
332
.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
330
334
.bn-inline-content : before {
331
335
content : "List" ;
332
336
}
333
337
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 {
335
341
content : "Caption" ;
336
342
}
337
343
0 commit comments