Skip to content

Commit 8fc773e

Browse files
committed
Add initial figcaption styles
1 parent 5cb90b1 commit 8fc773e

File tree

1 file changed

+48
-0
lines changed

1 file changed

+48
-0
lines changed

src/styles.js

+48
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,9 @@ module.exports = {
7474
color: defaultTheme.colors.gray[900],
7575
fontWeight: '600',
7676
},
77+
'figure figcaption': {
78+
color: defaultTheme.colors.gray[600],
79+
},
7780
code: {
7881
fontFamily: defaultTheme.fontFamily.mono.join(', '),
7982
backgroundColor: defaultTheme.colors.gray[100],
@@ -147,6 +150,15 @@ module.exports = {
147150
marginTop: em(32, 16),
148151
marginBottom: em(32, 16),
149152
},
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+
},
150162
code: {
151163
fontSize: em(14, 16),
152164
lineHeight: round(28 / 14),
@@ -269,6 +281,15 @@ module.exports = {
269281
marginTop: em(24, 14),
270282
marginBottom: em(24, 14),
271283
},
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+
},
272293
code: {
273294
fontSize: em(12, 14),
274295
lineHeight: round(24 / 12),
@@ -388,6 +409,15 @@ module.exports = {
388409
marginTop: em(32, 18),
389410
marginBottom: em(32, 18),
390411
},
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+
},
391421
code: {
392422
fontSize: em(16, 18),
393423
lineHeight: round(32 / 16),
@@ -506,6 +536,15 @@ module.exports = {
506536
marginTop: em(40, 20),
507537
marginBottom: em(40, 20),
508538
},
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+
},
509548
code: {
510549
fontSize: em(18, 20),
511550
lineHeight: round(36 / 18),
@@ -638,6 +677,15 @@ module.exports = {
638677
marginTop: em(48, 24),
639678
marginBottom: em(48, 24),
640679
},
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+
},
641689
code: {
642690
fontSize: em(20, 24),
643691
lineHeight: round(40 / 20),

0 commit comments

Comments
 (0)