Skip to content

Commit 5cb90b1

Browse files
committed
Add initial blockquote styles
1 parent eb88a24 commit 5cb90b1

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
@@ -45,6 +45,19 @@ module.exports = {
4545
left: '0',
4646
backgroundColor: defaultTheme.colors.gray[500],
4747
},
48+
blockquote: {
49+
fontWeight: '500',
50+
fontStyle: 'italic',
51+
borderLeftWidth: '0.25rem',
52+
borderLeftColor: defaultTheme.colors.gray[300],
53+
quotes: '"\\201C""\\201D""\\2018""\\2019"',
54+
},
55+
'blockquote p:first-of-type::before': {
56+
content: 'open-quote',
57+
},
58+
'blockquote p:last-of-type::after': {
59+
content: 'close-quote',
60+
},
4861
h1: {
4962
color: defaultTheme.colors.gray[900],
5063
fontWeight: '800',
@@ -93,6 +106,13 @@ module.exports = {
93106
marginTop: em(20, 16),
94107
marginBottom: em(20, 16),
95108
},
109+
blockquote: {
110+
fontSize: em(20, 16),
111+
lineHeight: round(32 / 20),
112+
marginTop: em(32, 20),
113+
marginBottom: em(32, 20),
114+
paddingLeft: em(20, 20),
115+
},
96116
h1: {
97117
fontSize: em(36, 16),
98118
marginTop: '0',
@@ -208,6 +228,13 @@ module.exports = {
208228
marginTop: em(16, 14),
209229
marginBottom: em(16, 14),
210230
},
231+
blockquote: {
232+
fontSize: em(18, 14),
233+
lineHeight: round(32 / 18),
234+
marginTop: em(24, 18),
235+
marginBottom: em(24, 18),
236+
paddingLeft: em(16, 18),
237+
},
211238
h1: {
212239
fontSize: em(30, 14),
213240
marginTop: '0',
@@ -323,6 +350,13 @@ module.exports = {
323350
marginTop: em(24, 18),
324351
marginBottom: em(24, 18),
325352
},
353+
blockquote: {
354+
fontSize: em(24, 18),
355+
lineHeight: round(36 / 24),
356+
marginTop: em(40, 24),
357+
marginBottom: em(40, 24),
358+
paddingLeft: em(20, 24),
359+
},
326360
h1: {
327361
fontSize: em(48, 18),
328362
marginTop: '0',
@@ -434,6 +468,13 @@ module.exports = {
434468
marginTop: em(24, 20),
435469
marginBottom: em(24, 20),
436470
},
471+
blockquote: {
472+
fontSize: em(32, 20),
473+
lineHeight: round(40 / 32),
474+
marginTop: em(48, 32),
475+
marginBottom: em(48, 32),
476+
paddingLeft: em(20, 32),
477+
},
437478
h1: {
438479
fontSize: em(56, 20),
439480
marginTop: '0',
@@ -559,6 +600,13 @@ module.exports = {
559600
marginTop: em(32, 24),
560601
marginBottom: em(32, 24),
561602
},
603+
blockquote: {
604+
fontSize: em(36, 24),
605+
lineHeight: round(48 / 36),
606+
marginTop: em(56, 36),
607+
marginBottom: em(56, 36),
608+
paddingLeft: em(20, 36),
609+
},
562610
h1: {
563611
fontSize: em(64, 24),
564612
marginTop: '0',

0 commit comments

Comments
 (0)