Node.js based forum software built for the modern web
.alert-window {
position: fixed;
width: 300px;
z-index: 10002;
right: 20px;
bottom: 0px;
.alert {
overflow: hidden;
position: relative;
.alert-progress {
width: 0;
&.animate {
width: calc(100% + 50px);
}
}
&.alert-info {
color: $info;
.alert-progress { background-color: $info; }
}
&.alert-warning {
color: $warning;
.alert-progress { background-color: $warning; }
}
&.alert-success {
color: $success;
.alert-progress { background-color: $success; }
}
&.alert-danger {
color: $danger;
.alert-progress { background-color: $danger; }
}
$custom-close-bg: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='#{$body-color}'><path d='M.293.293a1 1 0 0 1 1.414 0L8 6.586 14.293.293a1 1 0 1 1 1.414 1.414L9.414 8l6.293 6.293a1 1 0 0 1-1.414 1.414L8 9.414l-6.293 6.293a1 1 0 0 1-1.414-1.414L6.586 8 .293 1.707a1 1 0 0 1 0-1.414'/></svg>");
.btn-close {
--bs-btn-close-bg: #{escape-svg(#{$custom-close-bg})};
}
background-color: var(--bs-body-bg);
border: 0;
border-left: 5px solid !important;
box-shadow: 0px 2px 5px 0px rgba(0, 0, 0, 0.25), 0px 2px 10px 0px rgba(0, 0, 0, 0.25);
}
}