@@ -74,6 +74,9 @@ module.exports = {
74
74
color : defaultTheme . colors . gray [ 900 ] ,
75
75
fontWeight : '600' ,
76
76
} ,
77
+ 'figure figcaption' : {
78
+ color : defaultTheme . colors . gray [ 600 ] ,
79
+ } ,
77
80
code : {
78
81
fontFamily : defaultTheme . fontFamily . mono . join ( ', ' ) ,
79
82
backgroundColor : defaultTheme . colors . gray [ 100 ] ,
@@ -147,6 +150,15 @@ module.exports = {
147
150
marginTop : em ( 32 , 16 ) ,
148
151
marginBottom : em ( 32 , 16 ) ,
149
152
} ,
153
+ 'figure > *' : {
154
+ marginTop : '0' ,
155
+ marginBottom : '0' ,
156
+ } ,
157
+ 'figure figcaption' : {
158
+ fontSize : em ( 14 , 16 ) ,
159
+ lineHeight : round ( 20 / 14 ) ,
160
+ marginTop : em ( 12 , 14 ) ,
161
+ } ,
150
162
code : {
151
163
fontSize : em ( 14 , 16 ) ,
152
164
lineHeight : round ( 28 / 14 ) ,
@@ -269,6 +281,15 @@ module.exports = {
269
281
marginTop : em ( 24 , 14 ) ,
270
282
marginBottom : em ( 24 , 14 ) ,
271
283
} ,
284
+ 'figure > *' : {
285
+ marginTop : '0' ,
286
+ marginBottom : '0' ,
287
+ } ,
288
+ 'figure figcaption' : {
289
+ fontSize : em ( 12 , 14 ) ,
290
+ lineHeight : round ( 16 / 12 ) ,
291
+ marginTop : em ( 8 , 12 ) ,
292
+ } ,
272
293
code : {
273
294
fontSize : em ( 12 , 14 ) ,
274
295
lineHeight : round ( 24 / 12 ) ,
@@ -388,6 +409,15 @@ module.exports = {
388
409
marginTop : em ( 32 , 18 ) ,
389
410
marginBottom : em ( 32 , 18 ) ,
390
411
} ,
412
+ 'figure > *' : {
413
+ marginTop : '0' ,
414
+ marginBottom : '0' ,
415
+ } ,
416
+ 'figure figcaption' : {
417
+ fontSize : em ( 16 , 18 ) ,
418
+ lineHeight : round ( 24 / 16 ) ,
419
+ marginTop : em ( 16 , 16 ) ,
420
+ } ,
391
421
code : {
392
422
fontSize : em ( 16 , 18 ) ,
393
423
lineHeight : round ( 32 / 16 ) ,
@@ -506,6 +536,15 @@ module.exports = {
506
536
marginTop : em ( 40 , 20 ) ,
507
537
marginBottom : em ( 40 , 20 ) ,
508
538
} ,
539
+ 'figure > *' : {
540
+ marginTop : '0' ,
541
+ marginBottom : '0' ,
542
+ } ,
543
+ 'figure figcaption' : {
544
+ fontSize : em ( 18 , 20 ) ,
545
+ lineHeight : round ( 24 / 18 ) ,
546
+ marginTop : em ( 18 , 18 ) ,
547
+ } ,
509
548
code : {
510
549
fontSize : em ( 18 , 20 ) ,
511
550
lineHeight : round ( 36 / 18 ) ,
@@ -638,6 +677,15 @@ module.exports = {
638
677
marginTop : em ( 48 , 24 ) ,
639
678
marginBottom : em ( 48 , 24 ) ,
640
679
} ,
680
+ 'figure > *' : {
681
+ marginTop : '0' ,
682
+ marginBottom : '0' ,
683
+ } ,
684
+ 'figure figcaption' : {
685
+ fontSize : em ( 20 , 24 ) ,
686
+ lineHeight : round ( 32 / 20 ) ,
687
+ marginTop : em ( 20 , 20 ) ,
688
+ } ,
641
689
code : {
642
690
fontSize : em ( 20 , 24 ) ,
643
691
lineHeight : round ( 40 / 20 ) ,
0 commit comments