diff --git a/css/toast.css b/css/toast.css new file mode 100644 index 0000000..af4e659 --- /dev/null +++ b/css/toast.css @@ -0,0 +1,16 @@ +#toast-container { + position: sticky; + z-index: 1055; + top: 0; +} + +#toast-wrapper { + position: absolute; + top: 0; + right: 0; + margin: 5px; +} + +.toast { + min-width: 150px; +} \ No newline at end of file diff --git a/dist/toast.min.js b/dist/toast.min.js index afa762a..93d744e 100644 --- a/dist/toast.min.js +++ b/dist/toast.min.js @@ -1,3 +1,3 @@ -(function(b){b.toast=function(a,h,g,l,k){b("#toast-container").length||(b("body").prepend('
'),b("#toast-container").append(''));var c="",d="",e="text-muted",f="",m="object"===typeof a?a.title||"":a||"Notice!";h="object"===typeof a?a.subtitle||"":h||"";g="object"===typeof a?a.content||"":g||"";k="object"===typeof a?a.delay||3E3:k||3E3;switch("object"===typeof a?a.type||"":l||""){case "success":c="bg-success"; -f=e=d="text-white";break;case "info":c="bg-info";f=e=d="text-white";break;case "warning":case "warn":c="bg-warning";f=e=d="text-white";break;case "error":case "danger":c="bg-danger",f=e=d="text-white"}a='