From 9c76070cbddfd02c034cba9e15960906844b76d0 Mon Sep 17 00:00:00 2001 From: Jacob Thornton Date: Sat, 10 Sep 2011 18:13:37 -0700 Subject: rework the transitions for the modal a bit --- bootstrap-1.3.0.css | 21 ++++++++++++++++----- 1 file changed, 16 insertions(+), 5 deletions(-) (limited to 'bootstrap-1.3.0.css') diff --git a/bootstrap-1.3.0.css b/bootstrap-1.3.0.css index ee57571fb..1c16d405a 100644 --- a/bootstrap-1.3.0.css +++ b/bootstrap-1.3.0.css @@ -6,7 +6,7 @@ * http://www.apache.org/licenses/LICENSE-2.0 * * Designed and built with all the love in the world @twitter by @mdo and @fat. - * Date: Sat Sep 10 15:29:50 PDT 2011 + * Date: Sat Sep 10 18:12:41 PDT 2011 */ /* Reset.less * Props to Eric Meyer (meyerweb.com) for his CSS reset file. We're using an adapted version here that cuts out some of the reset HTML elements we will never need here (i.e., dfn, samp, etc). @@ -1977,10 +1977,10 @@ button.btn::-moz-focus-inner, input[type=submit].btn::-moz-focus-inner { opacity: 0; } .modal-backdrop, .modal-backdrop.fade.in { - filter: alpha(opacity=50); - -khtml-opacity: 0.5; - -moz-opacity: 0.5; - opacity: 0.5; + filter: alpha(opacity=70); + -khtml-opacity: 0.7; + -moz-opacity: 0.7; + opacity: 0.7; } .modal { position: fixed; @@ -2008,6 +2008,17 @@ button.btn::-moz-focus-inner, input[type=submit].btn::-moz-focus-inner { .modal .close { margin-top: 7px; } +.modal.fade { + -webkit-transition: opacity .25s linear, top .25s ease-out; + -moz-transition: opacity .25s linear, top .25s ease-out; + -ms-transition: opacity .25s linear, top .25s ease-out; + -o-transition: opacity .25s linear, top .25s ease-out; + transition: opacity .25s linear, top .25s ease-out; + top: -50%; +} +.modal.fade.in { + top: 50%; +} .modal-header { border-bottom: 1px solid #eee; padding: 5px 15px; -- cgit v1.2.3