Skip to content

Commit

Permalink
#430 calculate center position using transform
Browse files Browse the repository at this point in the history
  • Loading branch information
Adidi authored and fkhadra committed Apr 11, 2020
1 parent f7fe9a9 commit 6ef6fd9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scss/_toastContainer.scss
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
&--top-center {
top: 1em;
left: 50%;
margin-left: -($rt-toast-width / 2);
transform: translateX(-50%);
}
&--top-right {
top: 1em;
Expand All @@ -26,7 +26,7 @@
&--bottom-center {
bottom: 1em;
left: 50%;
margin-left: -($rt-toast-width / 2);
transform: translateX(-50%);
}
&--bottom-right {
bottom: 1em;
Expand Down

0 comments on commit 6ef6fd9

Please sign in to comment.