css-background-repeat 1.0.6
Css module of single purpose classes for background repeat
Stats
254 | 24 | 24 |
---|---|---|
bytes | selectors | declarations |
Installation
npm
Withnpm install --save-dev css-background-repeat
Learn more about using css installed with npm:
With Git
http:
git clone https://github.com/tachyons-css/css-background-repeat
ssh:
git clone git@github.com:tachyons-css/css-background-repeat.git
Usage
Postcss
Using withImport the css module
@import "css-background-repeat";
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/css-background-repeat@1.0.6/css/css-background-repeat.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-background-repeat">
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
/*
BACKGROUND REPEAT
*/
.bg-norep { background-repeat: no-repeat; }
.bg-x { background-repeat: repeat-x; }
.bg-y { background-repeat: repeat-y; }
.bg-rep { background-repeat: repeat; }
.bg-spc { background-repeat: space; }
.bg-rnd { background-repeat: round; }
@media screen and (min-width: 48em) {
.bg-norep-ns { background-repeat: no-repeat; }
.bg-x-ns { background-repeat: repeat-x; }
.bg-y-ns { background-repeat: repeat-y; }
.bg-rep-ns { background-repeat: repeat; }
.bg-spc-ns { background-repeat: space; }
.bg-rnd-ns { background-repeat: round; }
}
@media screen and (min-width:48em) and (max-width: 64em) {
.bg-norep-m { background-repeat: no-repeat; }
.bg-x-m { background-repeat: repeat-x; }
.bg-y-m { background-repeat: repeat-y; }
.bg-rep-m { background-repeat: repeat; }
.bg-spc-m { background-repeat: space; }
.bg-rnd-m { background-repeat: round; }
}
@media screen and (min-width: 64em) {
.bg-norep-l { background-repeat: no-repeat; }
.bg-x-l { background-repeat: repeat-x; }
.bg-y-l { background-repeat: repeat-y; }
.bg-rep-l { background-repeat: repeat; }
.bg-spc-l { background-repeat: space; }
.bg-rnd-l { background-repeat: round; }
}
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