{"size": 429, "ext": "js", "max_stars_repo_path": "src/styles/mixins/defaultBorder.js", "max_stars_repo_name": "forxtu/hdrawer", "max_stars_repo_stars_event_min_datetime": "2018-06-27T14:08:04.000Z", "max_stars_repo_stars_event_max_datetime": "2018-12-28T14:08:33.000Z", "max_issues_repo_path": "src/styles/mixins/defaultBorder.js", "max_issues_repo_name": "forxtu/hdrawer", "max_issues_repo_issues_event_min_datetime": "2018-06-27T14:06:47.000Z", "max_issues_repo_issues_event_max_datetime": "2019-01-08T17:59:41.000Z", "max_forks_repo_path": "src/styles/mixins/defaultBorder.js", "max_forks_repo_name": "forxtu/hdrawer", "max_forks_repo_forks_event_min_datetime": "2018-06-27T13:50:57.000Z", "max_forks_repo_forks_event_max_datetime": "2018-09-21T07:34:52.000Z"}
{"max_stars_count": 12, "max_issues_count": 3, "max_forks_count": 3, "avg_line_length": 25.2352941176, "max_line_length": 67, "alphanum_fraction": 0.655011655}
import { map } from 'ramda'
import { ensureArray } from 'ramda-adjunct'
import { css } from 'styled-components'
import { mixin } from 'cssapi'

const defaultBorder = api => (edges = [`top`]) => css`
  border-image-slice: 30;
  border-style: solid;
  border-width: 0;
  ${map(edge => `border-${edge}-width: 1px;`, ensureArray(edges))};
  ${api({
    borderImageSource: `g:lightFade`,
  })};
`

export default mixin(defaultBorder)
