Sha256: f29d1568ebfe23aa9ad252c20438550f2a8900aed3db3fc28d898db152b4fb1b

Contents?: true

Size: 1.21 KB

Versions: 51

Compression:

Stored size: 1.21 KB

Contents

@import "../tokens/spacing";
@import "../tokens/colors";
@import "../pb_body/body";

$pb_pill_height: 25px;


$confirmation_toast_colors: (
  neutral:        $neutral,
  success:        $success,
  error:          $error,
  tip:          transparent,
);

[class^=pb_fixed_confirmation_toast_kit] {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  padding: $space_xs $space-md;
  border-radius: $border_rad_mega;
  box-shadow: $shadow_deeper;

  .fa-times {
    cursor: pointer;
    opacity: 0.5;
    position: relative;
    right: -8px;
  }
  &:hover .fa-times {
    opacity: 1;
  }

  @each $color_name, $color_value in $confirmation_toast_colors {
    &[class*=_#{$color_name}]  {
      background: $color_value;
      @if $color_name == "tip" {
        @include gradient;
      }

      .pb_fixed_confirmation_toast_text {
        color: $white;
        margin: 0 $space_md 0 $space_md;
        text-align: center;
        white-space: pre;
      }

      .pb_icon {
        color: $white;
      }

      &[class*=_multi_line] .pb_fixed_confirmation_toast_text {
        color: $white;
        margin: 0 $space_md 0 $space_md;
        max-width: 100%;
        white-space: break-spaces;
      }
    }
  }
}

Version data entries

51 entries across 51 versions & 1 rubygems

Version Path
playbook_ui-10.11.0 app/pb_kits/playbook/pb_fixed_confirmation_toast/_fixed_confirmation_toast.scss
playbook_ui-10.10.0 app/pb_kits/playbook/pb_fixed_confirmation_toast/_fixed_confirmation_toast.scss
playbook_ui-10.9.0 app/pb_kits/playbook/pb_fixed_confirmation_toast/_fixed_confirmation_toast.scss
playbook_ui-10.8.1.pre.alpha.flexdeps app/pb_kits/playbook/pb_fixed_confirmation_toast/_fixed_confirmation_toast.scss
playbook_ui-10.9.0.pre.alpha1 app/pb_kits/playbook/pb_fixed_confirmation_toast/_fixed_confirmation_toast.scss
playbook_ui-10.8.0 app/pb_kits/playbook/pb_fixed_confirmation_toast/_fixed_confirmation_toast.scss
playbook_ui-10.7.1 app/pb_kits/playbook/pb_fixed_confirmation_toast/_fixed_confirmation_toast.scss
playbook_ui-10.7.0 app/pb_kits/playbook/pb_fixed_confirmation_toast/_fixed_confirmation_toast.scss
playbook_ui-10.6.2.pre.alpha.dep app/pb_kits/playbook/pb_fixed_confirmation_toast/_fixed_confirmation_toast.scss
playbook_ui-10.6.1.pre.alpha1 app/pb_kits/playbook/pb_fixed_confirmation_toast/_fixed_confirmation_toast.scss
playbook_ui-10.6.0 app/pb_kits/playbook/pb_fixed_confirmation_toast/_fixed_confirmation_toast.scss
playbook_ui-10.5.0 app/pb_kits/playbook/pb_fixed_confirmation_toast/_fixed_confirmation_toast.scss
playbook_ui-10.4.0 app/pb_kits/playbook/pb_fixed_confirmation_toast/_fixed_confirmation_toast.scss
playbook_ui-10.3.0 app/pb_kits/playbook/pb_fixed_confirmation_toast/_fixed_confirmation_toast.scss
playbook_ui-10.2.1.alpha.sisensefix app/pb_kits/playbook/pb_fixed_confirmation_toast/_fixed_confirmation_toast.scss
playbook_ui-10.2.1 app/pb_kits/playbook/pb_fixed_confirmation_toast/_fixed_confirmation_toast.scss
playbook_ui-10.2.0 app/pb_kits/playbook/pb_fixed_confirmation_toast/_fixed_confirmation_toast.scss
playbook_ui-10.1.0 app/pb_kits/playbook/pb_fixed_confirmation_toast/_fixed_confirmation_toast.scss
playbook_ui-10.0.3.pre.alpha.walkthrough2 app/pb_kits/playbook/pb_fixed_confirmation_toast/_fixed_confirmation_toast.scss
playbook_ui-10.0.3.pre.alpha.walkthrough app/pb_kits/playbook/pb_fixed_confirmation_toast/_fixed_confirmation_toast.scss