ciser
Version:
Functional CSS, help quickly build and design new UI without writing css.
226 lines (185 loc) • 5.45 kB
Markdown
# tachyons-cli 1.0.11
Postprocess tachyons stylesheets
#### Stats
710 | 90 | 90
---|---|---
bytes | selectors | declarations
## Installation
#### With [npm](https://npmjs.com)
```
npm install --save-dev tachyons-cli
```
Learn more about using css installed with npm:
* https://webpack.github.io/docs/stylesheets.html
* https://github.com/defunctzombie/npm-css
#### With Git
http:
```
git clone https://github.com/tachyons-css/tachyons-cli
```
ssh:
```
git clone git@github.com:tachyons-css/tachyons-cli.git
```
## Usage
#### Using with [Postcss](https://github.com/postcss/postcss)
Import the css module
```css
@import "tachyons-cli";
```
Then process the css using the [`tachyons-cli`](https://github.com/tachyons-css/tachyons-cli)
```sh
$ 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-cli@1.0.11/css/tachyons-cli.min.css" />
```
##### Locally
The built css is located in the `css` directory. It contains an unminified and minified version.
You can either cut and paste that css or link to it directly in your html.
```html
<link rel="stylesheet" href="path/to/module/css/tachyons-cli">
```
#### 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
```css
/*
MAX WIDTHS
Docs: http://tachyons.io/docs/layout/max-widths/
Base:
mw = max-width
Modifiers
1 = 1st step in width scale
2 = 2nd step in width scale
3 = 3rd step in width scale
4 = 4th step in width scale
5 = 5th step in width scale
6 = 6st step in width scale
7 = 7nd step in width scale
8 = 8rd step in width scale
9 = 9th step in width scale
-100 = literal value 100%
-none = string value none
Media Query Extensions:
-ns = not-small
-m = medium -ml = mobile landscape
-l = large
*/
/* Max Width Scale */
.mw1 { max-width: 1rem; }
.mw1s { max-width: 1.5rem; }
.mw2 { max-width: 2rem; }
.mw2s { max-width: 3rem; }
.mw3 { max-width: 4rem; }
.mw3s { max-width: 6rem; }
.mw4 { max-width: 8rem; }
.mw4s { max-width: 12rem; }
.mw5 { max-width: 16rem; }
.mw5s { max-width: 24rem; }
.mw6 { max-width: 32rem; }
.mw6s { max-width: 40rem; }
.mw7 { max-width: 48rem; }
.mw7s { max-width: 56rem; }
.mw8 { max-width: 64rem; }
.mw8s { max-width: 80rem; }
.mw9 { max-width: 96rem; }
/* Max Width String Properties */
.mw-none { max-width: none; }
@media screen and (min-width: 30em) {
.mw1-ns { max-width: 1rem; }
.mw1s-ns { max-width: 1.5rem; }
.mw2-ns { max-width: 2rem; }
.mw2s-ns { max-width: 3rem; }
.mw3-ns { max-width: 4rem; }
.mw3s-ns { max-width: 6rem; }
.mw4-ns { max-width: 8rem; }
.mw4s-ns { max-width: 12rem; }
.mw5-ns { max-width: 16rem; }
.mw5s-ns { max-width: 24rem; }
.mw6-ns { max-width: 32rem; }
.mw6s-ns { max-width: 40rem; }
.mw7-ns { max-width: 48rem; }
.mw7s-ns { max-width: 56rem; }
.mw8-ns { max-width: 64rem; }
.mw8s-ns { max-width: 80rem; }
.mw9-ns { max-width: 96rem; }
.mw-none-ns { max-width: none; }
}
@media screen and (min-width: 30em) and (max-width: 60em) {
.mw1-m { max-width: 1rem; }
.mw1s-m { max-width: 1.5rem; }
.mw2-m { max-width: 2rem; }
.mw2s-m { max-width: 3rem; }
.mw3-m { max-width: 4rem; }
.mw3s-m { max-width: 6rem; }
.mw4-m { max-width: 8rem; }
.mw4s-m { max-width: 12rem; }
.mw5-m { max-width: 16rem; }
.mw5s-m { max-width: 24rem; }
.mw6-m { max-width: 32rem; }
.mw6s-m { max-width: 40rem; }
.mw7-m { max-width: 48rem; }
.mw7s-m { max-width: 56rem; }
.mw8-m { max-width: 64rem; }
.mw8s-m { max-width: 80rem; }
.mw9-m { max-width: 96rem; }
.mw-none-m { max-width: none; }
}
@media screen and (max-width: 60em) and (orientation: landscape) {
.mw1-ml { max-width: 1rem; }
.mw1s-ml { max-width: 1.5rem; }
.mw2-ml { max-width: 2rem; }
.mw2s-ml { max-width: 3rem; }
.mw3-ml { max-width: 4rem; }
.mw3s-ml { max-width: 6rem; }
.mw4-ml { max-width: 8rem; }
.mw4s-ml { max-width: 12rem; }
.mw5-ml { max-width: 16rem; }
.mw5s-ml { max-width: 24rem; }
.mw6-ml { max-width: 32rem; }
.mw6s-ml { max-width: 40rem; }
.mw7-ml { max-width: 48rem; }
.mw7s-ml { max-width: 56rem; }
.mw8-ml { max-width: 64rem; }
.mw8s-ml { max-width: 80rem; }
.mw9-ml { max-width: 96rem; }
.mw-none-ml { max-width: none; }
}
@media screen and (min-width: 60em) {
.mw1-l { max-width: 1rem; }
.mw1s-l { max-width: 1.5rem; }
.mw2-l { max-width: 2rem; }
.mw2s-l { max-width: 3rem; }
.mw3-l { max-width: 4rem; }
.mw3s-l { max-width: 6rem; }
.mw4-l { max-width: 8rem; }
.mw4s-l { max-width: 12rem; }
.mw5-l { max-width: 16rem; }
.mw5s-l { max-width: 24rem; }
.mw6-l { max-width: 32rem; }
.mw6s-l { max-width: 40rem; }
.mw7-l { max-width: 48rem; }
.mw7s-l { max-width: 56rem; }
.mw8-l { max-width: 64rem; }
.mw8s-l { max-width: 80rem; }
.mw9-l { max-width: 96rem; }
.mw-none-l { max-width: none; }
}
```
## 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
* [mrmrs](http://mrmrs.io)
* [johno](http://johnotander.com)
## License
ISC