Skip to content

treeframework/object.table

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Install via file download

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.

About

Basic table styles.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages