1
0
mirror of https://github.com/twbs/bootstrap.git synced 2025-08-21 04:41:36 +02:00

Added animation when modal backdrop is static (#29516)

This commit is contained in:
Higor Araújo dos Anjos
2019-10-25 15:12:09 -03:00
committed by XhmikosR
parent 9ee9b8a1e8
commit 46912797b2
5 changed files with 121 additions and 9 deletions

View File

@@ -48,6 +48,11 @@
.modal.show & {
transform: $modal-show-transform;
}
// When trying to close, animate focus to scale
.modal.modal-static & {
transform: $modal-scale-transform;
}
}
.modal-dialog-scrollable {

View File

@@ -1073,6 +1073,7 @@ $modal-sm: 300px !default;
$modal-fade-transform: translate(0, -50px) !default;
$modal-show-transform: none !default;
$modal-transition: transform .3s ease-out !default;
$modal-scale-transform: scale(1.02) !default;
// Alerts