1.0.0 • Published 9 years ago

tachyons-modular-border-widths v1.0.0

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

tachyons-modular-border-widths 1.0.0

Border width CSS module for Tachyons.

Stats

3081010
bytesselectorsdeclarations

Installation

With npm

npm install --save-dev tachyons-modular-border-widths

Learn more about using css installed with npm:

With Git

http:

git clone https://github.com/particlecss/tachyons-modular.git

ssh:

git clone git@github.com:particlecss/tachyons-modular.git

Usage

Using with Postcss

Import the css module

@import "tachyons-modular-border-widths";

Then process the css using the tachyons-cli

$ npm i -g tachyons-cli
$ tachyons path/to/css-file.css > dist/t.css

Using the css

CDN

The easiest and most simple way to use the css is to use the cdn hosted version. Include it in the head of your html with:

<link rel="stylesheet" href="http://unpkg.com/tachyons-modular-border-widths@1.0.0/build/build.min.css" />
Locally

The built css is located in the build directory. It contains an unminified and minified version. You can either cut and paste that css or link to it directly in your html.

<link rel="stylesheet" href="path/to/module/build/build.min.css">

Development

The source css files can be found in the src directory. Running $ npm start will process the source css and place the built css in the css directory.

The css

/*

   BORDER WIDTHS
   Docs: http://tachyons.io/docs/themes/borders/

   Base:
     bw = border-width

   Modifiers:
     0 = 0 width border
     1 = 1st step in border-width scale
     2 = 2nd step in border-width scale
     3 = 3rd step in border-width scale
     4 = 4th step in border-width scale
     5 = 5th step in border-width scale

   Media Query Extensions:
     -ns = not-small
     -m  = medium
     -l  = large

*/
.bw0 { border-width: 0; }
.bw1 { border-width: .125rem; }
.bw2 { border-width: .25rem; }
.bw3 { border-width: .5rem; }
.bw4 { border-width: 1rem; }
.bw5 { border-width: 2rem; }
/* Resets */
.bt-0 { border-top-width: 0; }
.br-0 { border-right-width: 0; }
.bb-0 { border-bottom-width: 0; }
.bl-0 { border-left-width: 0; }

Contributing

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request

Authors

License

ISC