Skip to content

Commit f6c9032

Browse files
committed
Add code block margins
1 parent 58b4052 commit f6c9032

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

src/styles.js

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -197,6 +197,8 @@ module.exports = {
197197
pre: {
198198
fontSize: em(14, 16),
199199
lineHeight: round(24 / 14),
200+
marginTop: em(32, 14),
201+
marginBottom: em(32, 14),
200202
borderRadius: rem(6),
201203
paddingTop: em(12, 14),
202204
paddingRight: em(16, 14),
@@ -358,6 +360,8 @@ module.exports = {
358360
pre: {
359361
fontSize: em(12, 14),
360362
lineHeight: round(20 / 12),
363+
marginTop: em(24, 12),
364+
marginBottom: em(24, 12),
361365
borderRadius: rem(4),
362366
paddingTop: em(8, 12),
363367
paddingRight: em(12, 12),
@@ -518,6 +522,8 @@ module.exports = {
518522
pre: {
519523
fontSize: em(16, 18),
520524
lineHeight: round(28 / 16),
525+
marginTop: em(32, 16),
526+
marginBottom: em(32, 16),
521527
borderRadius: rem(6),
522528
paddingTop: em(20, 16),
523529
paddingRight: em(20, 16),
@@ -678,6 +684,8 @@ module.exports = {
678684
pre: {
679685
fontSize: em(18, 20),
680686
lineHeight: round(32 / 18),
687+
marginTop: em(40, 18),
688+
marginBottom: em(40, 18),
681689
borderRadius: rem(8),
682690
paddingTop: em(24, 18),
683691
paddingRight: em(24, 18),
@@ -838,6 +846,8 @@ module.exports = {
838846
pre: {
839847
fontSize: em(20, 24),
840848
lineHeight: round(36 / 20),
849+
marginTop: em(48, 20),
850+
marginBottom: em(48, 20),
841851
borderRadius: rem(8),
842852
paddingTop: em(32, 20),
843853
paddingRight: em(32, 20),

0 commit comments

Comments
 (0)