You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

51 lines
1.1 KiB

  1. .toast {
  2. width: $toast-max-width;
  3. max-width: 100%;
  4. @include font-size($toast-font-size);
  5. color: $toast-color;
  6. pointer-events: auto;
  7. background-color: $toast-background-color;
  8. background-clip: padding-box;
  9. border: $toast-border-width solid $toast-border-color;
  10. box-shadow: $toast-box-shadow;
  11. @include border-radius($toast-border-radius);
  12. &.showing {
  13. opacity: 0;
  14. }
  15. &:not(.show) {
  16. display: none;
  17. }
  18. }
  19. .toast-container {
  20. width: max-content;
  21. max-width: 100%;
  22. pointer-events: none;
  23. > :not(:last-child) {
  24. margin-bottom: $toast-spacing;
  25. }
  26. }
  27. .toast-header {
  28. display: flex;
  29. align-items: center;
  30. padding: $toast-padding-y $toast-padding-x;
  31. color: $toast-header-color;
  32. background-color: $toast-header-background-color;
  33. background-clip: padding-box;
  34. border-bottom: $toast-border-width solid $toast-header-border-color;
  35. @include border-top-radius(subtract($toast-border-radius, $toast-border-width));
  36. .btn-close {
  37. margin-right: $toast-padding-x * -.5;
  38. margin-left: $toast-padding-x;
  39. }
  40. }
  41. .toast-body {
  42. padding: $toast-padding-x; // apply to both vertical and horizontal
  43. word-wrap: break-word;
  44. }