项目作者: supercycle91

项目描述 :
Lightweight CSS Grid
高级语言: CSS
项目地址: git://github.com/supercycle91/lightweight-css-grid.git
创建时间: 2018-01-07T08:53:48Z
项目社区:https://github.com/supercycle91/lightweight-css-grid

开源协议:

下载


Lightweight CSS Grid

This is a simple lightweight css grid stylesheet to apply for a responsive and bootstrap-like ruleset. To apply these properties you need to structure as such: container -> row -> columns. There can be a total of 8 for column space in a row.

Couple rules to live by:

  • Add as many rows in containers as you wish
  • 1,2, or 4 columns in a row

Classes

.container

This is the holy container of all rows and columns. Best use is to have an outer container with multiple children rows.

.grid-row

Welcome to the first child. This is a row (horizontal) and is your container for any columns.

.grid-item-{2,4,8}

Column heaven. Unlike bootstrap, we use 1,2, and 4 size columns with a max of 8 column spaces per row.

.align-center

Want contents in your column centered vertically? Use this class!

.justify-center

Want contents in your column centered horizontally? Use this class!