diff options
author | Johann-S <johann.servoire@gmail.com> | 2019-10-28 17:28:11 +0300 |
---|---|---|
committer | XhmikosR <xhmikosr@gmail.com> | 2019-11-02 11:02:07 +0300 |
commit | dd96b832f787e91db03ebc687a934deea335bed5 (patch) | |
tree | d559dd6c2bee13b13db7efbcea9692d7f1c1ad3f /scss | |
parent | 29f585365fe71a74958d56beac98ab4b7e27a6b1 (diff) |
backport #29516: added animation when modal backdrop is static
Diffstat (limited to 'scss')
-rw-r--r-- | scss/_modal.scss | 5 | ||||
-rw-r--r-- | scss/_variables.scss | 1 |
2 files changed, 6 insertions, 0 deletions
diff --git a/scss/_modal.scss b/scss/_modal.scss index 9a036883a0..9053c173f8 100644 --- a/scss/_modal.scss +++ b/scss/_modal.scss @@ -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 { diff --git a/scss/_variables.scss b/scss/_variables.scss index cc4e0ad5e4..28db6f9943 100644 --- a/scss/_variables.scss +++ b/scss/_variables.scss @@ -976,6 +976,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 |