Sass maps for responsive breakpoints

21

Transcript of Sass maps for responsive breakpoints

- Key/Value data sets- Unique list of keys- Access to the keys and values- Ability to iterate through these values

- Map content- @mixin- @warn for debugging- @mixin call

- map-deep-get($map, $keys...) //fetchs deeply nested values

- map-has-keys($map, $keys...) //tests if has several keys

- map-merge($map1, $map2...) //merges 2 maps into a new one

- Great for breakpoint organization

- Helps to avoid code repetition (DRY)

- Ability to debug

- Lots of map functions to use, not only for responsive