2
0
mirror of https://github.com/tenrok/bootstrap.git synced 2026-05-30 15:24:08 +03:00

rework the transitions for the modal a bit

This commit is contained in:
Jacob Thornton
2011-09-10 18:13:37 -07:00
parent 57a8672b77
commit 9c76070cbd
4 changed files with 48 additions and 25 deletions
+7 -6
View File
@@ -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;