Skip to content

Commit

Permalink
feat(gatsby-theme-docz): add blockquote styles
Browse files Browse the repository at this point in the history
  • Loading branch information
pedronauck committed Jul 1, 2019
1 parent 7bf03b2 commit b9f11a1
Show file tree
Hide file tree
Showing 2 changed files with 51 additions and 0 deletions.
41 changes: 41 additions & 0 deletions core/gatsby-theme-docz/src/theme/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,20 @@ export default merge(typography, {
li: {
marginBottom: 1,
},
blockquote: {
my: 4,
mx: 0,
py: 3,
px: 4,
bg: 'blockquote.bg',
borderLeft: '5px solid #000',
borderColor: 'blockquote.border',
color: 'blockquote.color',
fontStyle: 'italic',
'> p': {
m: 0,
},
},
code: {
fontFamily: 'monospace',
},
Expand All @@ -93,5 +107,32 @@ export default merge(typography, {
height: '1.5em',
},
},
table: {
width: '100%',
my: 4,
borderCollapse: 'separate',
borderSpacing: 0,
[['th', 'td']]: {
textAlign: 'left',
py: '4px',
pr: '4px',
pl: 0,
borderColor: 'muted',
borderBottomStyle: 'solid',
},
},
th: {
verticalAlign: 'bottom',
borderBottomWidth: '2px',
},
td: {
verticalAlign: 'top',
borderBottomWidth: '1px',
},
hr: {
border: 0,
borderBottom: '1px solid',
borderColor: 'muted',
},
},
})
10 changes: 10 additions & 0 deletions core/gatsby-theme-docz/src/theme/modes.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,11 @@ export const light = {
bg: colors.white,
border: colors.grayLight,
},
blockquote: {
bg: colors.grayExtraLight,
border: colors.grayLight,
color: colors.gray,
},
}

export const dark = {
Expand Down Expand Up @@ -76,4 +81,9 @@ export const dark = {
bg: colors.dark,
border: colors.grayDark,
},
blockquote: {
bg: colors.grayDark,
border: colors.gray,
color: colors.gray,
},
}

0 comments on commit b9f11a1

Please sign in to comment.