Make border colors hoverable by default

This commit is contained in:
Adam Wathan 2017-08-27 21:01:08 -04:00
parent 8163761b7d
commit b936532414
3 changed files with 725 additions and 244 deletions

962
dist/tailwind.css vendored

File diff suppressed because it is too large Load Diff

File diff suppressed because one or more lines are too long

View File

@ -1,13 +1,14 @@
import _ from 'lodash'
import defineClass from '../util/defineClass'
import normalizeColorList from '../util/normalizeColorList'
import hoverable from '../util/hoverable'
export default function ({ colors, borders }) {
const borderColors = normalizeColorList(borders.colors, colors)
return _.map(borderColors, (color, className) => {
return hoverable(_.map(borderColors, (color, className) => {
return defineClass(`border-${className}`, {
'border-color': color,
})
})
}))
}