Sha256: 74175c8334ed8b93e602b7e8b7e9e6595de90c34b14b35ef7eb14083085d6e42
Contents?: true
Size: 1.8 KB
Versions: 1
Compression:
Stored size: 1.8 KB
Contents
@import "../tokens/positioning"; @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; } &.positioned_toast { position: fixed; z-index: $z_9; display: flex; justify-content: space-around; &.top { top: $space_md; } &.bottom { bottom: $space_md; } &.left { left: $space_md; right: auto; } &.center { left: 50%; right: auto; transform: translateX(-50%); } @media only screen and (max-width: 600px) { &.center { left: 5%; right: 5%; transform: translateX(-0%); } } &.right { left: auto; right: $space_md; } } @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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
playbook_ui-13.19.0.pre.alpha.play1174fixconfimationtoastmobilebug2305 | app/pb_kits/playbook/pb_fixed_confirmation_toast/_fixed_confirmation_toast.scss |