No description, website, or topics provided.
CSS HTML
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
css
src
.gitignore
index.html
license
package.json
readme.md

readme.md

tachyons-display-verbose 1.0.0

Performance based css module.

Stats

426 36 36
bytes selectors declarations

Installation

With npm

npm install --save-dev tachyons-display-verbose

With Git

git clone https://github.com/tachyons-css/tachyons-display-verbose

Usage

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

Using the 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">

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

/*

   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; }
}

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

MIT