-
Notifications
You must be signed in to change notification settings - Fork 0
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
Query format #1
Comments
Those are some great suggestions! I'll try to reply to them one by one here:
What we can do
I will try to include these in the next release. |
Hi, npm i get-grid@next -g Your above query will work now: get-grid --container "body.desktop-mode" --query "header/ #file-explorer, image-viewer, aside.image-properties/ footer" Only difference being that I have not changed the row separator. It is still "/". The highlights and default margin/padding has also been removed in this version. get-grid --container "body.desktop-mode" -Hdq "header/ #file-explorer, image-viewer, aside.image-properties/ footer" to get the highlights and defaults. I have used the emmet library to resolve the HTML, so semantic HTML can actually be written in get-grid and media queries will be much simpler, considering that the container classes can also be defined. Feel free to open another issue to suggest more enhancements! :) |
Cool idea!
With some modifications to the query parameter format, it would be easy to write a SublimeText or VSCode plugin around it.
In most cases you might already have some HTML structure in place and it might not be using semantic HTML. You might want to specify the HTML structure and get only CSS as output.
Currently the container can be specified only as a class - can't specify it as
body
.At the same time element selectors can't be specified as classes or IDs.
Also WebComponents/CustomElements can't be specified, because they require a dash in their name.
You might also want to apply the grid setup when a certain class is applied to the container element and that class might be toggled via JS when certain conditions are met.
Here's an example:
Example of a new query format:
Just throwing out some ideas!
The text was updated successfully, but these errors were encountered: