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

@put sugar for @horizontal + @vertical #49

Open
appsforartists opened this issue Apr 12, 2014 · 1 comment
Open

@put sugar for @horizontal + @vertical #49

appsforartists opened this issue Apr 12, 2014 · 1 comment

Comments

@appsforartists
Copy link

VGL requires a lot of duplicate lines, e.g:

@h |[selector]| in("virtual-id");
@v |[selector]| in ("virtual-id");

Since grids specify both horizontal and vertical position, there should be sugar to shorten this into something more readable. @fit could be a good choice; it's both short and descriptive. @put would also be quite readable.

Does it make sense to skip pipes for this shorthand? This seems ideal for most cases:

@put [selector] in("virtual-id");
@d4tocchini
Copy link
Member

definitely need something like this...

Still not sure about the semantics. Should it be @put or @place or ...

Things to consider:

  • probably define containment gaps with gap()
  • cover & contain from object-fit would be a nice-to-have
  • dynamically flow items into virtuals according to virtual name would be killer, see grid-auto-flow from the Grid Layout Module

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

No branches or pull requests

2 participants