Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/IonicaBizau/gridly
:zap: The minimal (~100-170 bytes) grid system for modern browsers.
https://github.com/IonicaBizau/gridly
grid hacktoberfest minimalist modern-browsers
Last synced: 16 days ago
JSON representation
:zap: The minimal (~100-170 bytes) grid system for modern browsers.
- Host: GitHub
- URL: https://github.com/IonicaBizau/gridly
- Owner: IonicaBizau
- License: mit
- Created: 2015-11-25T14:19:10.000Z (almost 9 years ago)
- Default Branch: gh-pages
- Last Pushed: 2022-10-26T18:37:37.000Z (about 2 years ago)
- Last Synced: 2024-05-02T06:14:50.146Z (6 months ago)
- Topics: grid, hacktoberfest, minimalist, modern-browsers
- Language: HTML
- Homepage: http://ionicabizau.github.io/gridly/example
- Size: 62.5 KB
- Stars: 969
- Watchers: 31
- Forks: 51
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
Awesome Lists containing this project
README
[![gridly](http://i.imgur.com/kPrOESX.png)](http://ionicabizau.github.io/gridly/example/)
# gridly
[![Support me on Patreon][badge_patreon]][patreon] [![Buy me a book][badge_amazon]][amazon] [![PayPal][badge_paypal_donate]][paypal-donations] [![Ask me anything](https://img.shields.io/badge/ask%20me-anything-1abc9c.svg)](https://github.com/IonicaBizau/ama) [![Version](https://img.shields.io/npm/v/gridly.svg)](https://www.npmjs.com/package/gridly) [![Downloads](https://img.shields.io/npm/dt/gridly.svg)](https://www.npmjs.com/package/gridly) [![Get help on Codementor](https://cdn.codementor.io/badges/get_help_github.svg)](https://www.codementor.io/johnnyb?utm_source=github&utm_medium=button&utm_term=johnnyb&utm_campaign=github)
> The minimal (~100-170 bytes) grid system for modern browsers.
You don't need monolithic CSS frameworks for simple grid systems. ~100 bytes of CSS can save your life. :dizzy:
## Usage
In the [`dist`](/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` (115 B): the custom width columns
- `gridly.min.css` (165 B): the previous two files' content put togetherIf you need to support more browsers, you can use the prefixed versions. They're located in [`dist/prefixed`](/dist/prefixed). They're ~1.8× the size of their counterparts.
### Browser Support
Gridly supports browsers that implement the Flexible Box Layout Module.
As of December 2015, [browser support for flexbox](http://caniuse.com/#feat=flexbox) is 81.27% for unprefixed, and 95.44% for prefixed.
## :rocket: Available on CDN!
Gridly is available on cdnjs.com. [**Check it out**](https://cdnjs.com/libraries/gridly).
> https://cdnjs.cloudflare.com/ajax/libs/gridly/1.1.0/gridly-core.min.css
> https://cdnjs.cloudflare.com/ajax/libs/gridly/1.1.0/gridly-col-widths.min.css
> https://cdnjs.cloudflare.com/ajax/libs/gridly/1.1.0/gridly.min.cssIf 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:
```html
```
Then you can use the `.row` and `.col` classes:
```html
Two
Column
```This will create two columns having equal widths.
[![gridly](http://i.imgur.com/m4pwrnO.png)](http://ionicabizau.github.io/gridly/example/)
## :cloud: Installation
Check out the [`dist`](/dist) directory to download the needed files and include them on your page.
If you're using this module in a CommonJS environment, you can install it using `npm` or `yarn` and `require` it:
```sh
# Using npm
npm install --save gridly# Using yarn
yarn add gridly
```## :question: Get Help
There are few ways to get help:
1. Please [post questions on Stack Overflow](https://stackoverflow.com/questions/ask). You can open issues with questions, as long you add a link to your Stack Overflow question.
2. For bug reports and feature requests, open issues. :bug:
3. For direct and quick help, you can [use Codementor](https://www.codementor.io/johnnyb). :rocket:## :memo: Documentation
The `gridly-core.min.css` file handles two classes:
- `row`: the row containing columns
- `col`: the column to put in the rowBecause 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 `20%` width
- `col-quarter` has `25%` width
- `col-third` has `33.3333334%` width
- `col-half` has `50%` widthLike specified above, the `gridly.min.css` contains both: the core and the custom widths.
## :yum: How to contribute
Have an idea? Found a bug? See [how to contribute][contributing].## :sparkling_heart: Support my projects
I open-source almost everything I can, and I try to reply to everyone needing help using these projects. Obviously,
this takes time. You can integrate and use these projects in your applications *for free*! You can even change the source code and redistribute (even resell it).However, if you get some profit from this or just want to encourage me to continue creating stuff, there are few ways you can do it:
- Starring and sharing the projects you like :rocket:
- [![Buy me a book][badge_amazon]][amazon]—I love books! I will remember you after years if you buy me one. :grin: :book:
- [![PayPal][badge_paypal]][paypal-donations]—You can make one-time donations via PayPal. I'll probably buy a ~~coffee~~ tea. :tea:
- [![Support me on Patreon][badge_patreon]][patreon]—Set up a recurring monthly donation and you will get interesting news about what I'm doing (things that I don't share with everyone).
- **Bitcoin**—You can send me bitcoins at this address (or scanning the code below): `1P9BRsmazNQcuyTxEqveUsnf5CERdq35V6`![](https://i.imgur.com/z6OQI95.png)
Thanks! :heart:
Run `npm i` to install the dependencies. Then, you can run the npm scripts using `npm run `.
Run `npm run release` to recreate all the `dist` files.
## :dizzy: Where is this library used?
If you are using this library in one of your projects, add it in this list. :sparkles:- [showalicense.com](http://showalicense.com/)–A site to provide an easy way to show licenses and their human-readable explanations. ([source](https://github.com/IonicaBizau/showalicense.com))
## :scroll: License
[MIT][license] © [Ionică Bizău][website]
[license]: /LICENSE
[website]: https://ionicabizau.net
[contributing]: /CONTRIBUTING.md
[docs]: /DOCUMENTATION.md
[badge_patreon]: https://ionicabizau.github.io/badges/patreon.svg
[badge_amazon]: https://ionicabizau.github.io/badges/amazon.svg
[badge_paypal]: https://ionicabizau.github.io/badges/paypal.svg
[badge_paypal_donate]: https://ionicabizau.github.io/badges/paypal_donate.svg
[patreon]: https://www.patreon.com/ionicabizau
[amazon]: http://amzn.eu/hRo9sIZ
[paypal-donations]: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=RVXDDLKKLQRJW