• Stars
    star
    183
  • Rank 210,154 (Top 5 %)
  • Language
    CSS
  • License
    MIT License
  • Created over 9 years ago
  • Updated about 9 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

A CSS Grid ideal for card listing design like tiles, videos or articles listing. Responsive without media-queries.

chewing-grid.css Build Status

A CSS Grid ideal for card listing design like tiles, videos or articles listing.

No media queries, yet chewing-grid will adjust the number of columns depending on the available width and your settings regarding:

  • the maximum number of columns
  • the minim and maximum card width

chewing-grid provides atomic classes ready to use in your HTML (1 to 12 columns and widths in 50px intervals). You can also use it with Sass to generate your own classes, or even to build a custom semantic grid.

Here's a GIF to show you how it looks. If you want to play with it, check out the live demo.

Demonstration screencast

Quick start

Install chewing-grid via npm

npm install chewing-grid.css --save

or via bower

bower install chewing-grid.css --save

For example: the following HTML use atomic classes to create a grid where the cells are:

  • Maximum 4 in the same row
  • Minimum 300px large
  • Maximum 500px large
<link rel="stylesheet" type="text/css" href="build/chewing-grid-atomic.css"/>
<ul class="chew-row chew-row--col-4 chew-row--card-min-300 chew-row--card-min-500">
    <li class="chew-cell">
        <div class="chew-card">1</div>
    </li>
    <li class="chew-cell">
        <div class="chew-card">2</div>
    </li>
    <!-- [...] -->
</ul>

Read the documentation to go further.

How to Contribute

  1. Star the project!
  2. Report a bug that you have found.
  3. Tweet and blog about chewing-grid and Let me know about it.
  4. Pull requests are also highly appreciated.

Author & Community

chewing-grid is under MIT License.
It was created & is maintained by Thomas ZILLIOX.

More Repositories

1

herow.scss

Herow, a time-saving Sass grid system.
CSS
45
star
2

profile-css.md

Structured lists of CSS links that you want to explore
19
star
3

Breaq

Breaq is a bookmarklet to test a responsive website at his critical sizes.
JavaScript
14
star
4

angular2-starter

A bootstrap architecture for an Angular2 application
JavaScript
10
star
5

camionbem.fr

Une méthodologie CSS pour tous les projets
JavaScript
6
star
6

Dexterity

A CSS game to challenge your dexterity
CSS
6
star
7

presentation-CSS-perfs

Les performances de rendu CSS
HTML
6
star
8

blog-2020

La liste des articles à écrire en 2020 sur tzi.fr
5
star
9

webtools-crawler

A cli tool to browse WebToolsWeekly archives
JavaScript
4
star
10

css-talks

4
star
11

sass-test.sh

A tool for Sass testing, with npm integration, works by comparing compiled output.
Shell
4
star
12

url2form.js

A library to fill a form with the current url queries.
JavaScript
3
star
13

BEM-references.md

How use BEM? Is it a real thing?
3
star
14

factu.net

Créer des factures rapidement
3
star
15

socle.css

A new CSS reset optimized for BEM (or any modular) styles
CSS
3
star
16

mdannotation

A collection of posthtml plugins to enable annotations in your Markdown
JavaScript
3
star
17

angular1.4-starter

A bootstrap architecture for an Angular1.4 application
JavaScript
3
star
18

gridbox.css

A CSS toolbox of handy grids
CSS
2
star
19

formidable.css

A CSS library to have nice, accesible & customizable forms
CSS
2
star
20

jquery.smart-sticky.js

An easy-to-use script for sticky element.
JavaScript
2
star
21

chasse-au-tresor

Collection de un outil de triangulation de coordonnées GPS, parce que ça peut être utile lors de chasse aux trésors
2
star
22

GobanCanvas

A nice goban done with HTML5 canvas
JavaScript
2
star
23

content-formable.js

A library to simulate content-editable with textarea
2
star
24

tropiq.js

tropiq.js is the jQuery plugin system, without jQuery
JavaScript
2
star
25

abonnement

Tiny JavaScript library to handle event callback registration
JavaScript
2
star
26

cours.tzi.fr

2
star
27

remark-hreflang

This remark plugin parses custom Markdown syntax to provides `hreflang` attributes on links.
JavaScript
2
star
28

bemcheck

Script to check & view the BEM tree in a remote web page
JavaScript
1
star
29

unindentor.js

A library to remove indentation from `textarea` and `contenteditable` elements.
JavaScript
1
star
30

metalsmith-project-template

Nunjucks
1
star
31

licenceMCD

Conception & Intégration WEB - LP Market Digital - Université Lyon 3 Jean Moulin
HTML
1
star
32

goban.fr

Provide an online Goban with HTML & CSS
PHP
1
star
33

GitFaq

A Git faq
1
star
34

cssom.php

CSS Object Model in PHP
PHP
1
star
35

tracing-paper.js

A tool to create drawings by copying
JavaScript
1
star
36

links-pwa

1
star
37

diaps

Like family's diaporama, but in JavaScript
JavaScript
1
star
38

tp-php

PHP
1
star
39

presentation-BEM

BEM une syntaxe simple qui s'adapte à toutes les situations
HTML
1
star
40

metalsmith-looper

Allow to iterate over data
JavaScript
1
star
41

stylefix.js

A JavaScript library to rewrite your CSS on the fly.
JavaScript
1
star
42

bemlinter.js

[DEPRECATED] a cli tool to lint bem component isolation in SCSS files
JavaScript
1
star
43

magasin

Tiny JavaScript library to handle state update subscription
JavaScript
1
star
44

jquery.selectivo.js

A html selectbox easily customizable
JavaScript
1
star
45

presentation-ModulesJavaScript

Des modèles clé-en-main pour organiser son code JavaScript
JavaScript
1
star