Performance based css module.
426 | 36 | 36 |
---|---|---|
bytes | selectors | declarations |
With npm
npm install --save-dev tachyons-display-verbose
git clone https://github.com/tachyons-css/tachyons-display-verbose
Using with PostCSS
Import the css module
@import "tachyons-display-verbose";
Then process the CSS using the tachyons-cli
$ npm i -g tachyons-cli
$ tachyons path/to/css-file.css > dist/t.css
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.
<link rel="stylesheet" href="path/to/module/css/tachyons-display-verbose">
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.
/*
DISPLAY
Base:
d = display
Modifiers:
n = none
b = block
ib = inline-block
it = inline-table
t = table
tc = table-cell
tr = table-row
tcol = table-column
tcolg = table-column-group
Media Query Extensions:
-ns = not-small
-m = medium
-l = large
*/
.display-none { display: none; }
.display-inline { display: inline; }
.display-block { display: block; }
.display-inline-block { display: inline-block; }
.display-inline-table { display: inline-table; }
.display-table { display: table; }
.display-table-cell { display: table-cell; }
.display-table-column { display: table-column; }
.display-table-column-group { display: table-column-group; }
@media screen and (min-width: 48em) {
.display-none-ns { display: none; }
.display-inline-ns { display: inline; }
.display-block-ns { display: block; }
.display-inline-block-ns { display: inline-block; }
.display-inline-table-ns { display: inline-table; }
.display-table-ns { display: table; }
.display-table-cell-ns { display: table-cell; }
.display-table-column-ns { display: table-column; }
.display-table-column-group-ns { display: table-column-group; }
}
@media screen and (min-width: 48em) and (max-width: 64em) {
.display-none-m { display: none; }
.display-inline-m { display: inline; }
.display-block-m { display: block; }
.display-inline-block-m { display: inline-block; }
.display-inline-table-m { display: inline-table; }
.display-table-m { display: table; }
.display-table-cell-m { display: table-cell; }
.display-table-column-m { display: table-column; }
.display-table-column-group-m { display: table-column-group; }
}
@media screen and (min-width: 64em) {
.display-none-l { display: none; }
.display-inline-l { display: inline; }
.display-block-l { display: block; }
.display-inline-block-l { display: inline-block; }
.display-inline-table-l { display: inline-table; }
.display-table-l { display: table; }
.display-table-cell-l { display: table-cell; }
.display-table-column-l { display: table-column; }
.display-table-column-group-l { display: table-column-group; }
}
- Fork it
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request
MIT