@import "../../../themes/ionic.globals.wp";

// Windows Phone Toast
// --------------------------------------------------

/// @prop - Background of the toast wrapper
$toast-wp-background: rgba(0, 0, 0, 1) !default;

/// @prop - Border radius of the toast wrapper
$toast-wp-border-radius: 0 !default;

/// @prop - Color of the toast button
$toast-wp-button-color: #fff !default;

/// @prop - Color of the toast title
$toast-wp-title-color: #fff !default;

/// @prop - Font size of the toast title
$toast-wp-title-font-size: 14px !default;

/// @prop - Padding top of the toast title
$toast-wp-title-padding-top: 15px !default;

/// @prop - Padding end of the toast title
$toast-wp-title-padding-end: $toast-wp-title-padding-top !default;

/// @prop - Padding bottom of the toast title
$toast-wp-title-padding-bottom: $toast-wp-title-padding-top !default;

/// @prop - Padding start of the toast title
$toast-wp-title-padding-start: $toast-wp-title-padding-end !default;

.toast-wp .toast-wrapper {
  position: absolute;
  z-index: $z-index-overlay-wrapper;
  display: block;
  max-width: $toast-max-width;
  background: $toast-wp-background;

  @include position-horizontal(0, 0);
  @include margin(auto);
  @include border-radius($toast-wp-border-radius);
}

.toast-wp .toast-wrapper.toast-top {
  top: 0;
  opacity: 0.01;
}

.toast-wp .toast-wrapper.toast-bottom {
  bottom: 0;
  opacity: 0.01;
}

.toast-wp .toast-wrapper.toast-middle {
  opacity: 0.01;
}

.toast-message {
  font-size: $toast-wp-title-font-size;
  color: $toast-wp-title-color;

  @include padding($toast-wp-title-padding-top, $toast-wp-title-padding-end, $toast-wp-title-padding-bottom, $toast-wp-title-padding-start);
}

.toast-button {
  color: $toast-wp-button-color;
}
