_toast.scss 751 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. // Color palettes
  2. @import '~@resources/scss/base/core/colors/palette-variables.scss';
  3. /* Generate:
  4. * Border color according to event class
  5. */
  6. @each $color_name, $color in $colors {
  7. @each $color_type, $color_value in $color {
  8. @if $color_type== 'base' {
  9. .b-toast-#{$color_name} {
  10. .toast-header {
  11. background-color: $color_value !important;
  12. color: $white !important;
  13. .close {
  14. color: $white;
  15. text-shadow: none;
  16. }
  17. }
  18. }
  19. }
  20. }
  21. }
  22. .b-toast {
  23. &.b-toast-solid {
  24. .toast {
  25. background-color: $white;
  26. color: $body-color;
  27. }
  28. }
  29. }
  30. // Reason: Close button vertical alignment
  31. .toast-header {
  32. .close {
  33. margin-bottom: 2px !important;
  34. }
  35. }