项目作者: zuck

项目描述 :
A micro (and modular) CSS framework based on 8pt grid
高级语言: CSS
项目地址: git://github.com/zuck/eight.css.git
创建时间: 2017-05-03T06:33:22Z
项目社区:https://github.com/zuck/eight.css

开源协议:MIT License

下载


eight.css

eight.css

A micro (and modular) CSS framework based on 8pt grid

npm version

Demo

You can take a look of all eight.css features on demo page: try it!

Usage

Eight.css is a modular CSS framework, so you can use it as a single bundle
or importing only the modules you need.

All eight.css‘s CSS files are minimized but source maps are provided
for reach one of them.

As a single bundle

You can simply link to the main CSS file in your HTML page:

  1. <link rel="stylesheet" href="eight.css">

As separated modules

You can import each eight.css‘s module as a separated CSS file.

IMPORTANT: please, note that by default eight.css imports
Normalize.css and Source Sans Pro font when used as single bundle.
When you import separated modules, instead, they are not included!
This means you have to include them manually BEFORE importing eight.css
modules.

  1. <!-- Not included by default -->
  2. <link rel="stylesheet" href="//fonts.googleapis.com/css?family=Source+Sans+Pro">
  3. <link rel="stylesheet" href="normalize.css">
  4. <!-- Now you can import eight.css modules -->
  5. <link rel="stylesheet" href="eight.grid.css">
  6. <link rel="stylesheet" href="eight.typography.css">
  7. <link rel="stylesheet" href="eight.images.css">
  8. <link rel="stylesheet" href="eight.tables.css">
  9. <link rel="stylesheet" href="eight.forms.css">
  10. <link rel="stylesheet" href="eight.buttons.css">

As a package

You can also install eight.css using npm:

  1. $ npm install eight.css

Compile CSS from scratch

You can (re)compile CSS from Stylus source files:

  1. git clone git@github.com:zuck/eight.css.git
  2. cd eight.css
  3. npm install
  4. npm run build

All (minimized) CSS files and source maps will be compiled in lib/.

Reference

License

The MIT License (MIT)

Read more…

Copyright (c) 2017 Emanuele Bertoldi