diff options
| author | Matias Niemelä | 2013-04-02 19:41:16 -0400 | 
|---|---|---|
| committer | Igor Minar | 2013-04-03 17:40:15 -0700 | 
| commit | 19f1801379104bc1f74fbb9d288f71034ba829c9 (patch) | |
| tree | eaf2d28c5056b80669b33478c808df88431d6a4e /docs/src/templates/css | |
| parent | 303df9dafee4314e5cfbc805f3321f4f4297a41a (diff) | |
| download | angular.js-19f1801379104bc1f74fbb9d288f71034ba829c9.tar.bz2 | |
docs: add animations into docs and directive examples
Diffstat (limited to 'docs/src/templates/css')
| -rw-r--r-- | docs/src/templates/css/animations.css | 73 | ||||
| -rw-r--r-- | docs/src/templates/css/docs.css | 9 | 
2 files changed, 82 insertions, 0 deletions
| diff --git a/docs/src/templates/css/animations.css b/docs/src/templates/css/animations.css new file mode 100644 index 00000000..3defa5ad --- /dev/null +++ b/docs/src/templates/css/animations.css @@ -0,0 +1,73 @@ +.reveal-setup { +  -webkit-transition:1s linear all; +  -moz-transition:1s linear all; +  -ms-transition:1s linear all; +  -o-transition:1s linear all; +  transition:1s linear all; + +  opacity:0; +} +.reveal-setup.reveal-start { +  opacity:1; +} + +.slide-reveal-setup { +  -webkit-transition:0.5s linear all; +  -moz-transition:0.5s linear all; +  -ms-transition:0.5s linear all; +  -o-transition:0.5s linear all; +  transition:0.5s linear all; +  opacity:0.5; +} +.slide-reveal-setup.slide-reveal-start { +  opacity:1; +} + +.slide-enter-setup { +  -webkit-transition:0.5s linear all; +  -moz-transition:0.5s linear all; +  -ms-transition:0.5s linear all; +  -o-transition:0.5s linear all; +  transition:0.5s linear all; + +  position:relative; +  left:10px; +  opacity:0; +} +.slide-enter-setup.slide-enter-start { +  left:0; +  opacity:1; +} + +.slide-leave-setup { +  -webkit-transition:0.5s linear all; +  -moz-transition:0.5s linear all; +  -ms-transition:0.5s linear all; +  -o-transition:0.5s linear all; +  transition:0.5s linear all; + +  opacity:1; +} +.slide-leave-setup.slide-leave-start { +  opacity:0; +} + +.example-animate-container { +  position:relative; +  background:white; +  border:1px solid black; +  height:40px; +  overflow:hidden; +} + +.example-animate-container > div { +  padding:1em; +} + +.animator-container.animations-off * { +  -webkit-transition: none; +  -moz-transition: none; +  -ms-transition: none; +  -o-transition: color 0 ease-in; /* opera is special :) */ +  transition: none; +} diff --git a/docs/src/templates/css/docs.css b/docs/src/templates/css/docs.css index 70d98a3c..bed88f80 100644 --- a/docs/src/templates/css/docs.css +++ b/docs/src/templates/css/docs.css @@ -3,6 +3,15 @@ img.AngularJS-small {    height: 25px;  } +/* this is here to avoid the display=block shuffling of ngShow */ +.breadcrumb li > * { +  float:left; +  margin:0 2px 0 0; +} + +.breadcrumb { +  padding-bottom:2px; +}  .clear-navbar {    margin-top: 60px; | 
