Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(dsl): exposes DSL for end users to create their own layout syntaxes #53

Merged
merged 9 commits into from
May 11, 2016

Conversation

runspired
Copy link
Collaborator

Fixes

  • fix CSS compilation
  • fix layout lookup for non-prefixed pods

Features

  • configurable DSL via config/flexi.js
  • offsets can now be used within breakpoint attrs

Hooks
These only modify the class names generated in your html, not your CSS (css versions coming soon)

  • generateGridClass: function(breakpoint, colNumber, columnPrefix, totalColumns) {}
  • generateResponderClass: function(breakpoint, responder) {}
  • generateAttributeClass: function(property, value) {}
  • generateOffsetClass: function(breakpoint, colNumber, columnPrefix, totalColumns) {}

syntax

  • elements: [] // element tags to look for attributes on
  • responders: [] // responsive attributes usable within breakpoint attrs
  • attributes: [] // attributes usable directly on elements

elements and responders should both be arrays of strings.
attributes should be an array containing strings for attributes based on "presence" and objects for attributes with values. Objects should have name and values properties.

example:

attributes: [{ name: 'justify', values: ["start", "end", "center", "between", "around"] }]

@runspired runspired merged commit 158b984 into master May 11, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant