pattern-lab / styleguidekit-assets-default

The static assets for the default StyleguideKit for Pattern Lab. Contains styles and mark-up for Pattern Lab's front-end.
http://patternlab.io/
MIT License
35 stars 67 forks source link

configurable size range #61

Closed bmuenzenmeyer closed 7 years ago

bmuenzenmeyer commented 7 years ago

part of https://github.com/pattern-lab/styleguidekit-assets-default/issues/54

now users may specify an optional configuration entry within patternlab-config.json (Node)

  "ishViewportRange": {
    "s": [240, 500],
    "m": [768, 768],
    "l": [800, 2600]
  },

the first entry in ishViewportRange.s is the ishViewportMinimum the second entry in ishViewportRange.l is the ishViewportMaximum

if this configuration option is not found, behavior reverts to the hard-coded values