package.src.scss._body.scss Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of sweetalert2 Show documentation
Show all versions of sweetalert2 Show documentation
A beautiful, responsive, customizable and accessible (WAI-ARIA) replacement for JavaScript's popup boxes, supported fork of sweetalert
The newest version!
@import 'toasts-body';
@mixin sweetalert2-body() {
&.swal2-shown {
@include not('.swal2-no-backdrop', '.swal2-toast-shown') {
overflow: hidden; // not overflow-y because of Sarari, #1253
}
}
&.swal2-height-auto {
height: auto !important; // #781 #1107
}
&.swal2-no-backdrop {
.swal2-container {
background-color: transparent !important;
pointer-events: none;
.swal2-popup {
pointer-events: all;
}
.swal2-modal {
box-shadow: 0 0 10px $swal2-backdrop;
}
}
}
@media print {
&.swal2-shown {
@include not('.swal2-no-backdrop', '.swal2-toast-shown') {
overflow-y: scroll !important;
> [aria-hidden='true'] {
display: none;
}
.swal2-container {
position: static !important;
}
}
}
}
}