saunved / get-grid Goto Github PK
View Code? Open in Web Editor NEWCreate CSS grids using the command line
Create CSS grids using the command line
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:
<body class="desktop-mode">
<header>
<div id="file-explorer">...<div>
<image-viewer></image-viewer>
<aside class="image-properties"><aside>
<footer>
</body>
Example of a new query format:
# For desktop browsers
# File explorer, image viewer and image properties could be side-by-side
get-grid --container "body.desktop-mode" --query "header; #file-explorer, image-viewer, aside.image-properties; footer"
# For mobile browsers
# Not enough room, let's display the components below one another
get-grid --container "body.mobile-mode" --query "header; #file-explorer; image-viewer; aside.image-properties; footer"
Just throwing out some ideas!
Quick question... Why don't you use pipes to show we have a new column? Would be more intuitive to me.
Windows 10 Pro (Insider)
Norton 360 - in case that's the problem
VSCode opened as administrator, using internal terminal.
It appears to install globally, but the error is returned on all get-grid commands.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.