95 lines
1.9 KiB
SCSS
95 lines
1.9 KiB
SCSS
|
#toastr {
|
||
|
visibility: hidden;
|
||
|
min-width: 250px;
|
||
|
max-width: 360px;
|
||
|
position: fixed;
|
||
|
z-index: 66;
|
||
|
right: 30px;
|
||
|
top: 30px;
|
||
|
font-size: 17px;
|
||
|
|
||
|
padding: 1.25rem 2.5rem 1.25rem 1.5rem;
|
||
|
border-radius: 6px;
|
||
|
|
||
|
&.error {
|
||
|
background-color: $danger-color;
|
||
|
color: $button-alternate-color;
|
||
|
}
|
||
|
|
||
|
&.success {
|
||
|
background-color: $success-color;
|
||
|
color: $button-font-color;
|
||
|
}
|
||
|
|
||
|
&.show {
|
||
|
visibility: visible;
|
||
|
animation: toastrFadein 0.5s, toastrFadeout 0.5s 2.5s;
|
||
|
}
|
||
|
|
||
|
button {
|
||
|
width: 20px;
|
||
|
font-size: 0;
|
||
|
height: 20px;
|
||
|
max-height: 20px;
|
||
|
max-width: 20px;
|
||
|
min-height: 20px;
|
||
|
min-width: 20px;
|
||
|
outline: 0;
|
||
|
border: none;
|
||
|
border-radius: 9999px;
|
||
|
cursor: pointer;
|
||
|
pointer-events: auto;
|
||
|
display: inline-block;
|
||
|
user-select: none;
|
||
|
right: .5rem;
|
||
|
position: absolute;
|
||
|
top: .5rem;
|
||
|
background-color: rgba(10, 10, 10, 0.2);
|
||
|
|
||
|
&:hover {
|
||
|
background-color: rgba(10,10,10,.3);
|
||
|
}
|
||
|
|
||
|
&::before,
|
||
|
&::after {
|
||
|
background-color: var(--default-color);
|
||
|
content: "";
|
||
|
display: block;
|
||
|
left: 50%;
|
||
|
position: absolute;
|
||
|
top: 50%;
|
||
|
transform: translateX(-50%) translateY(-50%) rotate(45deg);
|
||
|
transform-origin: center center;
|
||
|
}
|
||
|
&::before {
|
||
|
height: 2px;
|
||
|
width: 50%;
|
||
|
}
|
||
|
&::after {
|
||
|
height: 50%;
|
||
|
width: 2px;
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
|
||
|
@keyframes toastrFadein {
|
||
|
from {
|
||
|
top: 0;
|
||
|
opacity: 0;
|
||
|
}
|
||
|
to {
|
||
|
top: 30px;
|
||
|
opacity: 1;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
@keyframes toastrFadeout {
|
||
|
from {
|
||
|
top: 30px;
|
||
|
opacity: 1;
|
||
|
}
|
||
|
to {
|
||
|
top: 0;
|
||
|
opacity: 0;
|
||
|
}
|
||
|
}
|