Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
..
Failed to load latest commit information.
lib
README.md
index.css
lg.css
md.css
package.json
responsive.css
sm.css

README.md

sircus-tools-align

npm version

Installation

npm:

$ npm install sircus-tools-align sircus-variables

Usage

CSS:

@import "sircus-tools-align";
@import "sircus-variables";

html

/* text-align */
<p class="t-alignLeft">...</p>
<p class="t-alignRight">...</p>
<p class="t-alignCenter">...</p>
<p class="t-alignJustify">...</p>

/* vertical-align */
<span class="t-alignBaseline">...</span>
<span class="t-alignTop">...</span>
<span class="t-alignMiddle">...</span>
<span class="t-alignBottom">...</span>
<span class="t-alignTextTop">...</span>
<span class="t-alignTextBottom">...</span>

Responsive classes

@import "sircus-tools-align/responsive";
/*  OR  */
@import "sircus-tools-align/sm";
@import "sircus-tools-align/md";
@import "sircus-tools-align/lg";

e.g:

<p class="t-sm-alignLeft">...</p>
<p class="t-md-alignLeft">...</p>
<p class="t-lg-alignLeft">...</p>

License

Released under the MIT license.