Sha256: ed0494134082f0a5f0b961150a3808e32857357311f12468431f15cab853ea88

Contents?: true

Size: 1.17 KB

Versions: 1

Compression:

Stored size: 1.17 KB

Contents

@import "settings.global";

@mixin toasts {
  display: block;
  position: absolute;
  width: $toasts-width;
  max-height: 100%;
  overflow-y: auto;
  background-color: $toasts-background-color;
  z-index: $toasts-z-index;
}

@mixin toasts--topleft {
  top: 0;
  left: 0;
}

@mixin toasts--topright {
  top: 0;
  right: 0;
}

@mixin toasts--bottomleft {
  bottom: 0;
  left: 0;
}

@mixin toasts--bottomright {
  bottom: 0;
  right: 0;
}

@mixin toast--color($background-color: $toast-background-color, $color: $toast-color) {
  background-color: $background-color;
  color: $color;
}

@mixin toast {
  display: block;
  position: relative;
  padding: $toast-padding;
  margin: $toast-margin;
  @include toast--color;
  border-radius: $toast-border-radius;
  cursor: pointer;
}

@mixin toast--primary {
  @include toast--color($toast-primary-background-color, $toast-primary-color);
}

@mixin toast--secondary {
  @include toast--color($toast-secondary-background-color, $toast-secondary-color);
}

@mixin toast--success {
  @include toast--color($toast-success-background-color, $toast-success-color);
}

@mixin toast--error {
  @include toast--color($toast-error-background-color, $toast-error-color);
}

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
blaze-css-rails-0.0.1 app/assets/stylesheets/mixins/_components.toasts.scss