diff --git a/src/style.css b/src/style.css index e33f8b3..8acc1c3 100644 --- a/src/style.css +++ b/src/style.css @@ -6,7 +6,7 @@ position: fixed; display: block; max-width: 468px; - bottom: calc(var(--safe-area-gap, 0px) + 10px); + bottom: calc(var(--safe-area-gap, 0px) + 20px); right: 20px; z-index: 5000; transition: all 0.4s ease; @@ -177,23 +177,24 @@ } } -.toast-container:hover { - bottom: calc(var(--safe-area-gap, 0px) + 20px); +/* if more than 1, then apply hover effect */ +.toast-container:has(.toast-2):hover { + bottom: calc(var(--safe-area-gap, 0px) + 25px); +} - & .toast { - transform: translate3d( - 0, - calc(var(--hover-offset-y) - var(--stack-gap) * (var(--index) - 1)), - 0 - ); +.toast-container:hover .toast { + transform: translate3d( + 0, + calc(var(--hover-offset-y) - var(--stack-gap) * (var(--index) - 1)), + 0 + ); - & .toast-inner { - height: var(--height); - } + & .toast-inner { + height: var(--height); + } - & .toast-text { - opacity: 1 !important; - } + & .toast-text { + opacity: 1 !important; } }