stacker.news/components/toast.module.css

78 lines
1.1 KiB
CSS

.toastContainer {
transform: translate3d(0, 0, 0);
}
.toast {
width: auto;
color: #fff;
border-width: 1px;
border-style: solid;
text-overflow: ellipsis;
}
.success {
border-color: var(--bs-success-border-subtle);
}
.danger {
border-color: var(--bs-danger-border-subtle);
}
.warning {
border-color: var(--bs-warning-border-subtle);
}
.toastClose {
color: #fff;
font-family: "lightning";
font-size: 150%;
line-height: 1rem;
margin-bottom: -0.25rem;
cursor: pointer;
display: flex;
align-items: center;
}
.progressBar {
width: 0;
height: 5px;
filter: brightness(66%);
animation-name: progressBar;
animation-iteration-count: 1;
animation-timing-function: linear;
/* animation-duration set via JS */
}
.progressBar.success {
background-color: var(--bs-success);
}
.progressBar.danger {
background-color: var(--bs-danger);
}
.progressBar.warning {
background-color: var(--bs-warning);
}
@keyframes progressBar {
0% {
width: 0;
}
100% {
width: 100%;
}
}
.toastClose:hover {
opacity: 0.7;
}
@media screen and (min-width: 400px) {
.toast {
width: var(--bs-toast-max-width);
}
}