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

Support for full CSS selectors in VFL #33

Open
mountainstorm opened this issue Mar 8, 2014 · 1 comment
Open

Support for full CSS selectors in VFL #33

mountainstorm opened this issue Mar 8, 2014 · 1 comment

Comments

@mountainstorm
Copy link

@horizontal |[#smartFindGroups]~| in(#search > .panel-body)

As a general rule the number of rules needed is huge - a visual editor would make this much easier!

@d4tocchini
Copy link
Member

Currently, complex CSS selectors work more reliably with rulesets, so you could accomplish this with,

#search > .panel-body {
  @horizontal |[#smartFindGroups]~| in(::);
}

Yeah, fully specifying a constraint layout can be verbose, and though I like the idea of a visual editor, not convinced it will make complex situations any easier, see. Better debugging & visualizing the constraints is something more achievable in the short term.

Another problem is the lack of higher level abstractions for grid-based layouts. We should be able to constrain DOM elements to the "Virtual Elements" of a grid, like a grid-col or grid-area, which could be constrained like normal elements but wouldn't exist in the DOM. I'm currently working on Virtual Elements and a constraint-based implementation of the Grid Layout Module. This will allow a workflow of quickly setting up a grid for different adaptive scenarios, and then aligning elements to the grid, thus alleviating the tedium of constraining every element.

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