@@ -134,7 +134,7 @@ function Details({
134
134
135
135
return (
136
136
< details
137
- className = "_my- 4 _rounded _border _border-gray-200 _bg-white _p-2 _shadow-sm first:_mt-0 dark:_border-neutral-800 dark:_bg-neutral-900"
137
+ className = "[&:not(:first-child)]:_mt- 4 _rounded _border _border-gray-200 _bg-white _p-2 _shadow-sm dark:_border-neutral-800 dark:_bg-neutral-900"
138
138
{ ...props }
139
139
open = { delayedOpenState }
140
140
data-expanded = { openState ? '' : undefined }
@@ -281,22 +281,22 @@ const DEFAULT_COMPONENTS: MDXComponents = {
281
281
) ,
282
282
ul : props => (
283
283
< ul
284
- className = "_mt-6 _list-disc first:_mt-0 ltr:_ml-6 rtl:_mr-6"
284
+ className = "[:is(ol,ul)_&]:_my-3 [&:not(:first-child)]: _mt-6 _list-disc ltr:_ml-6 rtl:_mr-6"
285
285
{ ...props }
286
286
/>
287
287
) ,
288
288
ol : props => (
289
289
< ol
290
- className = "_mt-6 _list-decimal first:_mt-0 ltr:_ml-6 rtl:_mr-6"
290
+ className = "[:is(ol,ul)_&]:_my-3 [&:not(:first-child)]: _mt-6 _list-decimal ltr:_ml-6 rtl:_mr-6"
291
291
{ ...props }
292
292
/>
293
293
) ,
294
294
li : props => < li className = "_my-2" { ...props } /> ,
295
295
blockquote : props => (
296
296
< blockquote
297
297
className = { cn (
298
- '_mt-6 _border-gray-300 _italic _text-gray-700 dark:_border-gray-700 dark:_text-gray-400' ,
299
- 'first:_mt-0 ltr:_border-l-2 ltr:_pl-6 rtl:_border-r-2 rtl:_pr-6'
298
+ '[&:not(:first-child)]: _mt-6 _border-gray-300 _italic _text-gray-700 dark:_border-gray-700 dark:_text-gray-400' ,
299
+ 'ltr:_border-l-2 ltr:_pl-6 rtl:_border-r-2 rtl:_pr-6'
300
300
) }
301
301
{ ...props }
302
302
/>
@@ -309,9 +309,14 @@ const DEFAULT_COMPONENTS: MDXComponents = {
309
309
) ,
310
310
a : Link ,
311
311
table : props => (
312
- < Table className = "nextra-scrollbar _mt-6 _p-0 first:_mt-0" { ...props } />
312
+ < Table
313
+ className = "nextra-scrollbar [&:not(:first-child)]:_mt-6 _p-0"
314
+ { ...props }
315
+ />
316
+ ) ,
317
+ p : props => (
318
+ < p className = "[&:not(:first-child)]:_mt-6 _leading-7" { ...props } />
313
319
) ,
314
- p : props => < p className = "_mt-6 _leading-7 first:_mt-0" { ...props } /> ,
315
320
tr : Tr ,
316
321
th : Th ,
317
322
td : Td ,
0 commit comments