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

Make specifying flags easier #3

Open
lazarljubenovic opened this issue Mar 13, 2017 · 0 comments
Open

Make specifying flags easier #3

lazarljubenovic opened this issue Mar 13, 2017 · 0 comments

Comments

@lazarljubenovic
Copy link
Owner

The fixed-grid mixin currently uses a few "flags". These are actually arguments which are set to false by default, and the consumer can set them to true individually easily because Sass allows specifying arguments out of order when the argument name is given.

  @include fixed-grid(
    3,
    $distribute-dangling: true,
    $dangling-at-beginning: true,
  );

However, the number of flags would eventually grow, and this can become cumbersome. It can be solved much easier:

@include fixed-grid(3, $flags: distribute-dangling dangling-at-beginning);

Just for convenience (and some Sassy source code fun), it wouldn't be hard to allow an alternative syntax with spaces (but using commas to separate flags):

@include fixed-grid(3, $flags: distribute dangling, dangling at beginning);

We could still support the current syntax in parallel or just drop it completely.

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

No branches or pull requests

1 participant