Code Monkey home page Code Monkey logo

get-grid's People

Contributors

saunved avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

get-grid's Issues

Use pipe as separator

Quick question... Why don't you use pipes to show we have a new column? Would be more intuitive to me.

Query format

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"
  • Semicolon for next row
  • Comma for next column

Just throwing out some ideas!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.