0.2.1 • Published 9 years ago

tree-table v0.2.1

Weekly downloads
6
License
MIT
Repository
github
Last release
9 years ago

Table

Some useful helpers for common table patterns.

Dependencies

The table object depends on three other modules:

If you install the table object using Bower or npm, you will get these dependencies at the same time. If not using Bower or npm, please be sure to install and @import these dependencies in the relevant way.

Installation

You can install table module via Bower, npm, or copy and paste.

Install using Bower:

$ bower install tree-table --save

Once installed, @import into your project in its Object layer:

@import "bower_components/tree-table/object.table";

Install using npm:

$ npm install tree-table --save

The least recommended option for installation is to simply download _object.table.scss into your project and @import it into your project in its Objects layer.

Usage

Basic usage of the table object uses the required classes:

<table class="o-table">...</table>

Options

Other, optional classes can supplement the required base classes:

  • .o-table--fixed: force tables into having equal-width columns.
  • .o-table--compact: tightly packed cells.
  • .o-table--cosy: lightly packed cells.
  • .o-table--comfy: very widely padded cells.
  • .o-table--cells: adds border around a table.
  • .o-table--rows: adds border only to table's rows.
  • .o-table--columns: adds border only to table's columns.

For example:

<table class="o-table  o-table--cosy">...</table>

Credits

  • inuitcss Powerful, Sass-based, OOCSS framework designed with scalability and performance in mind.