diff --git a/js/tabler.js b/js/tabler.js index 79ebc0a967838894ca2ebf91f0831325d6a8216b..e86be4b6bc05253f8a88ce9f004d41e6db074c69 100644 --- a/js/tabler.js +++ b/js/tabler.js @@ -58,6 +58,7 @@ $(document).ready(function() { // $('[data-toggle="tooltip"]').tooltip(); // $('[data-toggle="popover"]').popover(); + $('[data-toggle="toast"]').toast(); /* Imask plugin diff --git a/pages/_docs/toasts.md b/pages/_docs/toasts.md index 1e5598f6b8791bfff46bc3ba241c0f7cc069e2ce..faf9efda27457fdb977f32a2921288d0aabb2150 100644 --- a/pages/_docs/toasts.md +++ b/pages/_docs/toasts.md @@ -5,10 +5,25 @@ description: The toast component is like an alert box that is only shown for a c bootstrap-link: components/toasts/ --- - - ### Default markup {% example %} {% include ui/toast.html %} {% endexample %} + +### Translucent + +Toasts are slightly translucent, too, so they blend over whatever they might appear over. For browsers that support the `backdrop-filter` CSS property, we’ll also attempt to blur the elements under a toast. + +{% example html class=bg-gray %} +{% include ui/toast.html %} +{% endexample %} + +### Stacking toasts + +If you want to stack toasts just put them in the same container. + +{% example %} +{% include ui/toast.html person-id=3 %} +{% include ui/toast.html date="7 mins ago" text="This is another toast message." %} +{% endexample %} \ No newline at end of file diff --git a/pages/_includes/ui/toast.html b/pages/_includes/ui/toast.html index fd0227a9c714569b42ead438557acbea57ce2093..ded90207e4b7aecf26179d0b5236906cde238dae 100644 --- a/pages/_includes/ui/toast.html +++ b/pages/_includes/ui/toast.html @@ -1,6 +1,6 @@ {% assign person-id = include.person-id | default: 2 %} {% assign person = site.data.people[person-id] %} -