diff options
author | Martijn Cuppens <martijn.cuppens@gmail.com> | 2018-08-13 10:00:53 +0300 |
---|---|---|
committer | XhmikosR <xhmikosr@gmail.com> | 2018-08-13 10:00:53 +0300 |
commit | 57661dff6d444ac50bcb685425a704544bb653d9 (patch) | |
tree | 4b2e9dcf5732694c4f5e20d10d234717e49c8435 /scss | |
parent | c0b40745e0bc777fa9a435070f7f08442a248b87 (diff) |
Tweak modal transform (#27005)
Diffstat (limited to 'scss')
-rw-r--r-- | scss/_modal.scss | 4 | ||||
-rw-r--r-- | scss/_variables.scss | 2 |
2 files changed, 4 insertions, 2 deletions
diff --git a/scss/_modal.scss b/scss/_modal.scss index 5eadbf5b84..df8da68ffa 100644 --- a/scss/_modal.scss +++ b/scss/_modal.scss @@ -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; } } diff --git a/scss/_variables.scss b/scss/_variables.scss index 8ac3bc583a..be13b56476 100644 --- a/scss/_variables.scss +++ b/scss/_variables.scss @@ -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; |