tree-list-block
v0.3.0
Published
A simple blocky-list.
Downloads
10
Readme
list-block
The list-block
object simply creates blocky lists from ul
s or ol
s.
Dependencies
The list-block
object depends on two other modules:
If you install the list-block
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.
Instalation
You can install the list-block
module via Bower, npm, or copy and paste.
Install using Bower:
$ bower install tree-list-block --save
Once installed, @import
into your project in its Objects layer:
@import "bower_components/tree-list-block/object.list-block";
Install using npm:
$ npm install tree-list-block --save
Install via file download
The least recommended option for installation is to simply download
_object.list-block.scss
into your project and @import
it into your project
in its Objects layer.
Usage
Basic usage of the list-block
object uses the required classes:
<ul class="o-list-block">
<li class="o-list-block__item">...</li>
<li class="o-list-block__item">...</li>
<li class="o-list-block__item">...</li>
</ul>
The only valid children of the .o-list-block
node is .o-list-block__item
.
Options
Other, optional classes can supplement the required base classes:
.o-list-block--[tiny|small|large|huge]
: alter the spacing between list-block items.
For example:
<ul class="o-list-block o-list-block--large">
<li class="o-list-block__item">...</li>
<li class="o-list-block__item">...</li>
<li class="o-list-block__item">...</li>
</ul>
Credits
- inuitcss Powerful, Sass-based, OOCSS framework designed with scalability and performance in mind.