Sha256: 1150a2b612948343fa7e8293357b24a442c5736b73d1323abbc6814466d789cd
Contents?: true
Size: 1.79 KB
Versions: 454
Compression:
Stored size: 1.79 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_10 !important; display: flex; justify-content: space-around; max-width: max-content; width: 90%; &.top { top: $space_md; } &.bottom { bottom: $space_md; } &.left { left: $space_md; right: auto; } &.center { left: 50%; right: auto; transform: translateX(-50%); } &.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; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; white-space: normal; text-align: left; } } } }
Version data entries
454 entries across 454 versions & 1 rubygems