aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorJacob Thornton <[email protected]>2011-09-10 18:13:37 -0700
committerJacob Thornton <[email protected]>2011-09-10 18:13:37 -0700
commit9c76070cbddfd02c034cba9e15960906844b76d0 (patch)
tree2555577c4ccf276f0a8187484b17563311908c73 /lib
parent57a8672b77a219b99215b781740cc9cf5f7fc1a5 (diff)
downloadbootstrap-9c76070cbddfd02c034cba9e15960906844b76d0.tar.xz
bootstrap-9c76070cbddfd02c034cba9e15960906844b76d0.zip
rework the transitions for the modal a bit
Diffstat (limited to 'lib')
-rw-r--r--lib/patterns.less13
1 files changed, 7 insertions, 6 deletions
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;