aboutsummaryrefslogtreecommitdiff
path: root/less/modals.less
diff options
context:
space:
mode:
authorfat <[email protected]>2013-07-26 22:09:31 -0700
committerfat <[email protected]>2013-07-26 22:09:31 -0700
commit2cf1851d9f9ea73a9c2e446db88f5c2179ea2f40 (patch)
treeb1ac2d0239a92718c3997062647c91840a19594f /less/modals.less
parentfff2854c5eab79de987aeeeb97356b0c1ca4be97 (diff)
downloadbootstrap-2cf1851d9f9ea73a9c2e446db88f5c2179ea2f40.tar.xz
bootstrap-2cf1851d9f9ea73a9c2e446db88f5c2179ea2f40.zip
use transforms to make the dialog smooooth
Diffstat (limited to 'less/modals.less')
-rw-r--r--less/modals.less8
1 files changed, 4 insertions, 4 deletions
diff --git a/less/modals.less b/less/modals.less
index 52c1b0df8..8b7349cef 100644
--- a/less/modals.less
+++ b/less/modals.less
@@ -25,11 +25,11 @@
z-index: @zindex-modal-background;
// When fading in the modal, animate it to slide down
- &.fade {
- top: -25%;
- .transition(~"opacity 0.3s linear, top 0.3s ease-out");
+ &.fade .modal-dialog {
+ .translate(0, -25%);
+ .transition-transform(~"0.3s ease-out");
}
- &.fade.in { top: 0; }
+ &.fade.in .modal-dialog { .translate(0, 0)}
}
// Shell div to position the modal with bottom padding