tmdroid / gridly

:zap: The minimal (~157 bytes) grid system for modern browsers.

Home Page:http://ionicabizau.github.io/gridly/example

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

gridly

gridly Support this project

The minimal (~157 bytes) grid system for modern browsers.

You don't need monolithic CSS frameworks for simple grid systems. ~150 bytes of CSS can save your life. 💫

Usage

In the dist directory there are three minified files:

  • gridly-core.min.css (105 B): just the Gridly core including same-width column support and mobile responsive support.
  • gridly-col-widths.min.css (92 B): the custom width columns
  • gridly.min.css (157 B): the previous two files' content put together

If you do not need custom width columns, you will probably want to use only gridly-core.min.css in your page. If you do need the custom width columns, you have to include gridly.min.css instead.

Example

Include the CSS file in your page:

<link rel="stylesheet" href="gridly.min.css" type="text/css" charset="utf-8">

Then you can use the .row and .col classes:

<div class="row">
    <div class="col">Two</div>
    <div class="col">Column</div>
</div>

This will create two columns having equal widths.

gridly

Installation

Check out the dist directory to download the needed files and include them on your page.

Documentation

The gridly-core.min.css file handles two classes:

  • row: the row containing columns
  • col: the column to put in the row

Because of the flexbox amazing power, the columns will have the same width (as many columns you want / row).

To extend this basic functionality, there is another file: gridly-col-widths.min.css. This adds the following classes:

  • col-tenth has 10% width
  • col-fifth has 10% width
  • col-quarter has 25% width
  • col-third has 33.3333334% width
  • col-half has 50% width

Like specified above, the gridly.min.css contains both: the core and the custom widths.

How to contribute

Have an idea? Found a bug? See how to contribute.

Run npm i to install the dependencies. Then, you can run the npm scripts using npm run <script-name>.

Run npm run release to recreate all the dist files.

Where is this library used?

If you are using this library in one of your projects, add it in this list. ✨

License

MIT © Ionică Bizău

About

:zap: The minimal (~157 bytes) grid system for modern browsers.

http://ionicabizau.github.io/gridly/example

License:MIT License


Languages

Language:HTML 90.7%Language:CSS 9.3%