-
-
Notifications
You must be signed in to change notification settings - Fork 533
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* AnimationEnd | Null check SelectedSlide (#5312) * SnackbarInfo Initialize IntervalBeforeClose correctly (#5313) * ModalService | Refactor to capture the Action<ModalProviderParameterBuilder<TComponent>> and re-evaluate to sync with any user parameter changes (#5322) * wip hiding and showing states * Refactorting modal animations * Use keyframes for BS5 and BS5 modal animation * Combine animations for centered modals * Fix Tailwind * Reformat merge conflict * Add comments --------- Co-authored-by: David Moreira <[email protected]>
- Loading branch information
1 parent
ff0567e
commit da543e1
Showing
37 changed files
with
595 additions
and
120 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,92 @@ | ||
.modal { | ||
&.fade { | ||
transition: opacity var(--modal-animation-duration, 300ms) linear; | ||
&.show { | ||
display: block; | ||
|
||
.modal-dialog { | ||
transition: -webkit-transform var(--modal-animation-duration, 300ms) ease-out; | ||
transition: transform var(--modal-animation-duration, 300ms) ease-out; | ||
&:not(.modal-dialog-centered) { | ||
animation: modal-slidein var(--modal-animation-duration, 300ms) ease-out; | ||
} | ||
|
||
&.modal-dialog-centered { | ||
animation: modal-slidein, modal-slidein-centered var(--modal-animation-duration, 300ms) ease-out; | ||
} | ||
} | ||
} | ||
|
||
&:not(.show) { | ||
display: none; | ||
animation: modal-slideaway var(--modal-animation-duration, 300ms) linear; | ||
|
||
.modal-dialog { | ||
&:not(.modal-dialog-centered) { | ||
animation: modal-slideaway var(--modal-animation-duration, 300ms) ease-out; | ||
} | ||
|
||
&.modal-dialog-centered { | ||
animation: modal-slideaway, modal-slideaway-centered var(--modal-animation-duration, 300ms) ease-out; | ||
} | ||
} | ||
} | ||
} | ||
|
||
.modal-backdrop.fade { | ||
transition-property: opacity; | ||
transition-duration: var(--modal-animation-duration, 300ms); | ||
transition-timing-function: linear; | ||
} | ||
|
||
@keyframes modal-slidein { | ||
0% { | ||
display: none; | ||
opacity: 0; | ||
transform: $modal-fade-transform; | ||
} | ||
|
||
1% { | ||
display: block; | ||
opacity: 0; | ||
} | ||
|
||
100% { | ||
opacity: 1; | ||
} | ||
} | ||
|
||
@keyframes modal-slidein-centered { | ||
0% { | ||
display: none; | ||
opacity: 0; | ||
transform: $modal-fade-transform; | ||
} | ||
|
||
100% { | ||
display: flex; | ||
align-items: center; | ||
opacity: 1; | ||
} | ||
} | ||
|
||
@keyframes modal-slideaway { | ||
from { | ||
display: block; | ||
opacity: 1; | ||
} | ||
|
||
to { | ||
transform: $modal-fade-transform; | ||
opacity: 0; | ||
} | ||
} | ||
|
||
@keyframes modal-slideaway-centered { | ||
from { | ||
display: flex; | ||
align-items: center; | ||
opacity: 1; | ||
} | ||
|
||
to { | ||
transform: $modal-fade-transform; | ||
opacity: 0; | ||
} | ||
} |
Oops, something went wrong.