_toasts.scss 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  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. }