From 3c3247fe174ce408459bd018c9d83e84490789f5 Mon Sep 17 00:00:00 2001 From: Matias Niemelä Date: Thu, 4 Apr 2013 08:49:04 -0400 Subject: fix(ngdocs): improve the animations used in the docs menu --- docs/src/templates/css/animations.css | 48 ++++++++++++++++++++--------------- docs/src/templates/css/docs.css | 7 ++++- docs/src/templates/index.html | 14 +++++----- 3 files changed, 41 insertions(+), 28 deletions(-) (limited to 'docs/src/templates') 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 { diff --git a/docs/src/templates/index.html b/docs/src/templates/index.html index 6e3be195..53f23939 100644 --- a/docs/src/templates/index.html +++ b/docs/src/templates/index.html @@ -217,13 +217,13 @@
Filtered results:
-