_toasts.scss 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  1. //
  2. // Component: Toasts
  3. //
  4. .toasts-top-right {
  5. position: absolute;
  6. right: 0;
  7. top: 0;
  8. z-index: $zindex-toasts;
  9. &.fixed {
  10. position: fixed;
  11. }
  12. }
  13. .toasts-top-left {
  14. left: 0;
  15. position: absolute;
  16. top: 0;
  17. z-index: $zindex-toasts;
  18. &.fixed {
  19. position: fixed;
  20. }
  21. }
  22. .toasts-bottom-right {
  23. bottom: 0;
  24. position: absolute;
  25. right: 0;
  26. z-index: $zindex-toasts;
  27. &.fixed {
  28. position: fixed;
  29. }
  30. }
  31. .toasts-bottom-left {
  32. bottom: 0;
  33. left: 0;
  34. position: absolute;
  35. z-index: $zindex-toasts;
  36. &.fixed {
  37. position: fixed;
  38. }
  39. }
  40. @include dark-mode () {
  41. .toast {
  42. background-color: rgba($dark, .85);
  43. color: $white;
  44. .toast-header {
  45. background-color: rgba($dark, .7);
  46. color: $gray-100;
  47. }
  48. @each $name, $color in $theme-colors-alt {
  49. @include toast-variant($name, $color);
  50. }
  51. @each $name, $color in $colors-alt {
  52. @include toast-variant($name, $color);
  53. }
  54. }
  55. }
  56. .toast {
  57. @each $name, $color in $theme-colors {
  58. @include toast-variant($name, $color);
  59. }
  60. @each $name, $color in $colors {
  61. @include toast-variant($name, $color);
  62. }
  63. }