css-column-span
v1.0.7
Published
Css module of single purpose classes for column span
Downloads
7
Readme
css-column-span 1.0.6
Css module of single purpose classes for column span
Stats
217 | 12 | 36 ---|---|--- bytes | selectors | declarations
Installation
With npm
npm install --save-dev css-column-span
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/css-column-span
ssh:
git clone [email protected]:tachyons-css/css-column-span.git
Usage
Using with Postcss
Import the css module
@import "css-column-span";
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/[email protected]/css/css-column-span.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.
<link rel="stylesheet" href="path/to/module/css/css-column-span">
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
/*
COLUMN SPAN
*/
.cs-non { -webkit-column-span: none; -moz-column-span: none; column-span: none; }
.cs-all { -webkit-column-span: all; -moz-column-span: all; column-span: all; }
.cs-span { -webkit-column-span: inherit; -moz-column-span: inherit; column-span: inherit; }
@media screen and (min-width: 48em) {
.cs-non-ns { -webkit-column-span: none; -moz-column-span: none; column-span: none; }
.cs-all-ns { -webkit-column-span: all; -moz-column-span: all; column-span: all; }
.cs-span-ns { -webkit-column-span: inherit; -moz-column-span: inherit; column-span: inherit; }
}
@media screen and (min-width:48em) and (max-width: 64em) {
.cs-non-m { -webkit-column-span: none; -moz-column-span: none; column-span: none; }
.cs-all-m { -webkit-column-span: all; -moz-column-span: all; column-span: all; }
.cs-span-m { -webkit-column-span: inherit; -moz-column-span: inherit; column-span: inherit; }
}
@media screen and (min-width: 64em) {
.cs-non-l { -webkit-column-span: none; -moz-column-span: none; column-span: none; }
.cs-all-l { -webkit-column-span: all; -moz-column-span: all; column-span: all; }
.cs-span-l { -webkit-column-span: inherit; -moz-column-span: inherit; column-span: inherit; }
}
Contributing
- 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
Authors
License
ISC