Skip to content

Instantly share code, notes, and snippets.

@seven-phases-max
Last active April 19, 2017 09:32
Show Gist options
  • Select an option

  • Save seven-phases-max/8f3eeab81f64ab7c307124e2ab95b976 to your computer and use it in GitHub Desktop.

Select an option

Save seven-phases-max/8f3eeab81f64ab7c307124e2ab95b976 to your computer and use it in GitHub Desktop.

A simple Map / Associative-Array structure in legacy Less w/o any plugins or so:

  • Example 1 - via mixins (useful when you need complex map "values", e.g. multiple values/properties, rulesets, other mixins... basically anything)

  • Example 2 - via variables (when you need just an ordinal plain value to assign to a property).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment