Skip to content

Commit

Permalink
Refactor #3498
Browse files Browse the repository at this point in the history
  • Loading branch information
mertsincan committed Nov 1, 2022
1 parent e924bff commit 379b8a3
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions components/lib/toast/Toast.css
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
.p-toast {
position: fixed;
width: 100%;
width: calc(100% - var(--toast-indent, 0px));
max-width: 25rem;
padding-left: 2rem;
}

.p-toast-message-content {
Expand All @@ -19,21 +18,25 @@
}

.p-toast-top-right {
--toast-indent: 20px;
top: 20px;
right: 20px;
}

.p-toast-top-left {
--toast-indent: 20px;
top: 20px;
left: 20px;
}

.p-toast-bottom-left {
--toast-indent: 20px;
bottom: 20px;
left: 20px;
}

.p-toast-bottom-right {
--toast-indent: 20px;
bottom: 20px;
right: 20px;
}
Expand Down

0 comments on commit 379b8a3

Please sign in to comment.