Skip to content

Commit

Permalink
fix(docz-theme-default): include breakpoints as const
Browse files Browse the repository at this point in the history
  • Loading branch information
marceloavf committed Jun 22, 2018
1 parent bb56449 commit 43490bb
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions packages/docz-theme-default/src/styles/responsive.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,13 @@
import facepaint from 'facepaint'

export const breakpoints = {
mobile: 420,
tablet: 920,
desktop: 1120,
}

export const mq = facepaint([
'@media(min-width: 420px)',
'@media(min-width: 920px)',
'@media(min-width: 1120px)'
`@media(min-width: ${breakpoints.mobile}px)`,
`@media(min-width: ${breakpoints.tablet}px)`,
`@media(min-width: ${breakpoints.desktop}px)`
])

0 comments on commit 43490bb

Please sign in to comment.