1
0
mirror of https://github.com/twbs/bootstrap.git synced 2025-08-31 00:59:51 +02:00

Tweak modal transform (#27005)

This commit is contained in:
Martijn Cuppens
2018-08-13 09:00:53 +02:00
committed by XhmikosR
parent c0b40745e0
commit 57661dff6d
3 changed files with 10 additions and 2 deletions

View File

@@ -43,10 +43,10 @@
// When fading in the modal, animate it to slide down
.modal.fade & {
@include transition($modal-transition);
transform: translate(0, -25%);
transform: $modal-fade-transform;
}
.modal.show & {
transform: translate(0, 0);
transform: $modal-show-transform;
}
}

View File

@@ -831,6 +831,8 @@ $modal-lg: 800px !default;
$modal-md: 500px !default;
$modal-sm: 300px !default;
$modal-fade-transform: translate(0, -50px) !default;
$modal-show-transform: none !default;
$modal-transition: transform .3s ease-out !default;