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 --- lib/patterns.less | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) (limited to 'lib/patterns.less') diff --git a/lib/patterns.less b/lib/patterns.less index 53ad3f991..65b16ce05 100644 --- a/lib/patterns.less +++ b/lib/patterns.less @@ -725,9 +725,7 @@ input[type=submit].btn { .modal-backdrop { background-color:#000; - &.fade { - opacity: 0; - } + &.fade { opacity: 0; } position: fixed; top: 0; left: 0; @@ -737,7 +735,7 @@ input[type=submit].btn { } .modal-backdrop, .modal-backdrop.fade.in { - .opacity(50); + .opacity(70); } .modal { @@ -754,9 +752,12 @@ input[type=submit].btn { .border-radius(6px); .box-shadow(0 3px 7px rgba(0,0,0,0.3)); .background-clip(padding-box); - .close { - margin-top: 7px; + .close { margin-top: 7px; } + &.fade { + .transition(e('opacity .25s linear, top .25s ease-out')); + top:-50%; } + &.fade.in { top: 50%;} } .modal-header { border-bottom: 1px solid #eee; -- cgit v1.2.3