diff options
| author | Matias Niemelä | 2013-04-04 08:49:04 -0400 |
|---|---|---|
| committer | Misko Hevery | 2013-04-11 23:06:07 -0700 |
| commit | 3c3247fe174ce408459bd018c9d83e84490789f5 (patch) | |
| tree | 9b34bfbb5314109ff022c7dfc83f184be2d84dc7 /docs/src/templates/css | |
| parent | a0bc71e27107c58282e71415c4e8d89e916ae99c (diff) | |
| download | angular.js-3c3247fe174ce408459bd018c9d83e84490789f5.tar.bz2 | |
fix(ngdocs): improve the animations used in the docs menu
Diffstat (limited to 'docs/src/templates/css')
| -rw-r--r-- | docs/src/templates/css/animations.css | 48 | ||||
| -rw-r--r-- | docs/src/templates/css/docs.css | 7 |
2 files changed, 34 insertions, 21 deletions
diff --git a/docs/src/templates/css/animations.css b/docs/src/templates/css/animations.css index 3defa5ad..c312f729 100644 --- a/docs/src/templates/css/animations.css +++ b/docs/src/templates/css/animations.css @@ -1,7 +1,6 @@ .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; @@ -11,45 +10,55 @@ opacity:1; } +.nav-list li { + height:20px; + overflow:hidden; +} + .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; + + position:relative; + opacity:0; + top:10px; } .slide-reveal-setup.slide-reveal-start { + top:0; 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; +.expand-enter-setup { + -webkit-transition:0.3s cubic-bezier(0.250, 0.460, 0.450, 0.940) all; + -moz-transition:0.3s cubic-bezier(0.250, 0.460, 0.450, 0.940) all; + -o-transition:0.3s cubic-bezier(0.250, 0.460, 0.450, 0.940) all; + transition:0.3s cubic-bezier(0.250, 0.460, 0.450, 0.940) all; - position:relative; - left:10px; opacity:0; + line-height:0; + height:0!important; } -.slide-enter-setup.slide-enter-start { - left:0; +.expand-enter-setup.expand-enter-start { opacity:1; + line-height:20px; + height:20px!important; } -.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; +.expand-leave-setup { + -webkit-transition:0.3s cubic-bezier(0.250, 0.460, 0.450, 0.940) all; + -moz-transition:0.3s cubic-bezier(0.250, 0.460, 0.450, 0.940) all; + -o-transition:0.3s cubic-bezier(0.250, 0.460, 0.450, 0.940) all; + transition:0.3s cubic-bezier(0.250, 0.460, 0.450, 0.940) all; opacity:1; + height:20px; } -.slide-leave-setup.slide-leave-start { +.expand-leave-setup.expand-leave-start { opacity:0; + height:0; } .example-animate-container { @@ -67,7 +76,6 @@ .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 bed88f80..7d22baab 100644 --- a/docs/src/templates/css/docs.css +++ b/docs/src/templates/css/docs.css @@ -56,7 +56,12 @@ img.AngularJS-small { } .form-search > ul.nav > li.last { - margin-bottom: 1em; + padding-bottom: 1em; +} + +.form-search > ul.nav > li.last + li.api-list-item { + margin-top:-1em; + padding-bottom: 1em; } .form-search .well { |
