This commit is contained in:
parent
c073051c05
commit
92d1705ff3
44
badges.md
44
badges.md
|
@ -55,6 +55,10 @@ Here are some badges for open source projects.
|
||||||
|
|
||||||
[](https://gitter.im/USER/REPO "Gitter chat")
|
[](https://gitter.im/USER/REPO "Gitter chat")
|
||||||
|
|
||||||
|
[]( https://gitter.im/rstacruz/nprogress )
|
||||||
|
|
||||||
|
[]( https://gitter.im/USER/REPO )
|
||||||
|
|
||||||
[](https://david-dm.org/USER/REPO#info=devDependencies)
|
[](https://david-dm.org/USER/REPO#info=devDependencies)
|
||||||
|
|
||||||
[](https://david-dm.org/USER/REPO#info=devDependencies)
|
[](https://david-dm.org/USER/REPO#info=devDependencies)
|
||||||
|
@ -72,7 +76,43 @@ Here are some badges for open source projects.
|
||||||
[]( https://github.com/USER/REPO/issues )
|
[]( https://github.com/USER/REPO/issues )
|
||||||
|
|
||||||
__Questions__: ask them at StackOverflow with the tag *REPO*.<br>
|
__Questions__: ask them at StackOverflow with the tag *REPO*.<br>
|
||||||
[]( http://stackoverflow.com/questions/tagged/REPO )
|
[]( http://stackoverflow.com/questions/tagged/REPO )
|
||||||
|
|
||||||
__Chat__: join us at gitter.im.<br>
|
__Chat__: join us at gitter.im.<br>
|
||||||
[]( https://gitter.im/USER/REPO )
|
[]( https://gitter.im/USER/REPO )
|
||||||
|
|
||||||
|
### Frontend js installation
|
||||||
|
|
||||||
|
Installation
|
||||||
|
------------
|
||||||
|
|
||||||
|
Add [nprogress.js] and [nprogress.css] to your project.
|
||||||
|
|
||||||
|
```html
|
||||||
|
<script src='nprogress.js'></script>
|
||||||
|
<link rel='stylesheet' href='nprogress.css'/>
|
||||||
|
```
|
||||||
|
|
||||||
|
NProgress is available via [bower] and [npm].
|
||||||
|
|
||||||
|
$ bower install --save nprogress
|
||||||
|
$ npm install --save nprogress
|
||||||
|
|
||||||
|
[](https://npmjs.org/package/nprogress "View this project on npm")
|
||||||
|
[bower]: http://bower.io/search/?q=nprogress
|
||||||
|
[npm]: https://www.npmjs.org/package/nprogress
|
||||||
|
|
||||||
|
### Acknowledgements
|
||||||
|
|
||||||
|
## Thanks
|
||||||
|
|
||||||
|
**Jsfuse** © 2014, Rico Sta. Cruz. Released under the [MIT License].<br>
|
||||||
|
Authored and maintained by Rico Sta. Cruz with help from [contributors].
|
||||||
|
|
||||||
|
> [ricostacruz.com](http://ricostacruz.com) ·
|
||||||
|
> GitHub [@rstacruz](https://github.com/rstacruz) ·
|
||||||
|
> Twitter [@rstacruz](https://twitter.com/rstacruz)
|
||||||
|
|
||||||
|
[MIT License]: License.md
|
||||||
|
[MIT License]: http://mit-license.org/
|
||||||
|
[contributors]: http://github.com/rstacruz/nprogress/contributors
|
||||||
|
|
59
css.md
59
css.md
|
@ -6,15 +6,15 @@ layout: default
|
||||||
Selectors
|
Selectors
|
||||||
---------
|
---------
|
||||||
|
|
||||||
= [attr="value"] - exact
|
[attr="value"] /* = exact */
|
||||||
~= [class~="box"] - has word
|
[class~="box"] /* ~= has word */
|
||||||
|= [class|="icon"] - exact, or prefix (eg, value-)
|
[class|="icon"] /* |= exact, or prefix (eg, value-) */
|
||||||
$= [href$=".doc"] - ends in
|
[href$=".doc"] /* $= ends in */
|
||||||
*= [class*="-is-"] - contains
|
[class*="-is-"] /* *= contains */
|
||||||
|
|
||||||
+ adjacent sibling
|
h3 + p /* + adjacent sibling */
|
||||||
~ far sibling
|
article ~ footer /* ~ far sibling */
|
||||||
> direct child
|
.container > .box /* > direct child */
|
||||||
|
|
||||||
:target (h2#foo:target)
|
:target (h2#foo:target)
|
||||||
:disabled
|
:disabled
|
||||||
|
@ -32,47 +32,42 @@ Selectors
|
||||||
|
|
||||||
:only-child
|
:only-child
|
||||||
|
|
||||||
|
|
||||||
Background
|
Background
|
||||||
----------
|
----------
|
||||||
|
|
||||||
### Shorthand
|
### Shorthand
|
||||||
|
|
||||||
background: <color> <image> <position> <size> <repeat> <attachment> <clip>
|
background: #ff0 url(bg.jpg) center top 100px auto no-repeat fixed;
|
||||||
|
/* ^ ^ ^ ^ ^ ^
|
||||||
# Example:
|
color image position size repeat attachment */
|
||||||
background: #ff0 url(bg.jpg) center top no-repeat fixed
|
|
||||||
|
|
||||||
### Other properties
|
### Other properties
|
||||||
|
|
||||||
background-clip: border-box | padding-box | content-box [, ...]*
|
background-clip: border-box | padding-box | content-box [, ...]*; /* IE9+ */
|
||||||
|
background-repeat: no-repeat | repeat-x | repeat-y;
|
||||||
background-repeat: no-repeat | repeat-x | repeat-y
|
background-attachment: scroll | fixed | local;
|
||||||
|
background: url(x), url(y); /* multiple (IE9+) */
|
||||||
background-attachment: scroll | fixed | local
|
|
||||||
|
|
||||||
### Compatibility
|
|
||||||
|
|
||||||
- background-clip: IE9+
|
|
||||||
- Multiple backgrounds: IE9+
|
|
||||||
|
|
||||||
Animations
|
Animations
|
||||||
----------
|
----------
|
||||||
|
|
||||||
### Shorthand
|
### Shorthand
|
||||||
|
|
||||||
animation: <name> <duration> <timing-function> <delay> <count> <direction> <fill-mode>
|
animation: bounce 300ms linear 100ms infinite alternate-reverse;
|
||||||
|
/* ^ ^ ^ ^ ^ ^
|
||||||
|
name duration timing-function delay count direction */
|
||||||
|
|
||||||
# Example:
|
# Example:
|
||||||
animation: bounce 300ms linear 0s infinite normal
|
animation: bounce 300ms linear 0s infinite normal;
|
||||||
animation: bounce 300ms linear infinite
|
animation: bounce 300ms linear infinite;
|
||||||
animation: bounce 300ms linear infinite alternate-reverse
|
animation: bounce 300ms linear infinite alternate-reverse;
|
||||||
|
|
||||||
### Other properties
|
animation-name: bounce;
|
||||||
|
animation-delay: 100ms;
|
||||||
animation-direction: normal | reverse | alternate | alternate-reverse
|
animation-duration: 300ms;
|
||||||
|
animation-direction: normal | reverse | alternate | alternate-reverse;
|
||||||
animation-iteration-count: infinite | <number>
|
animation-iteration-count: infinite | <number>;
|
||||||
|
animation-timing-function: ease | linear | ease-in | ease-out | ease-in-out;
|
||||||
|
|
||||||
Webkit extensions
|
Webkit extensions
|
||||||
-----------------
|
-----------------
|
||||||
|
|
Loading…
Reference in New Issue