_toasts.scss 408 B

123456789101112131415161718192021222324
  1. //
  2. // Mixins: Toasts
  3. //
  4. // Toast Variant
  5. @mixin toast-variant($name, $color) {
  6. &.bg-#{$name} {
  7. background-color: rgba($color, .9) !important;
  8. @if (color-yiq($color) == $yiq-text-light) {
  9. .close {
  10. color: color-yiq($color);
  11. text-shadow: 0 1px 0 $black;
  12. }
  13. }
  14. .toast-header {
  15. background-color: rgba($color, .85);
  16. color: color-yiq($color);
  17. }
  18. }
  19. }