/* * Notifications */ .notifications-container { position: fixed; top: 1em; left: 50%; z-index: 777; -webkit-transform: translateX(-50%); transform: translateX(-50%); } [class*="notification-"] { border-radius: $global-border-radius; overflow: hidden; display: block; } .notification { &-alert { background: $pm-global-warning; color: $pm-global-light; } &-success { background: $pm-global-success; color: $pm-global-light; } &-warning { background: $pm-global-attention; color: $pm-global-grey; } &-info { background: $pm-primary; color: $white; } } .notificationIn { animation-duration: 1s; animation-fill-mode: forwards; animation-timing-function: ease; animation-name: notificationIn; } .notificationOut { animation-duration: 1s; animation-fill-mode: forwards; animation-timing-function: ease; animation-name: notificationOut; } @keyframes notificationIn { 0% { opacity: 0; -webkit-transform: translateY(-50px); transform: translateY(-50px); } 100% { opacity: 1; -webkit-transform: translateY(0); transform: translateY(0); } } @keyframes notificationOut { 0% { opacity: 1; -webkit-transform: scale(1); transform: scale(1); } 100% { opacity: 0; -webkit-transform: scale(0); transform: scale(0); max-height: 0; padding: 0; margin-bottom: 0; } } @include respond-to($breakpoint-small) { .notifications-container { text-align: center; } } @include respond-to($breakpoint-tiny) { .notifications-container, [class*="notification-"] { -webkit-transform: none; transform: none; left: 1em; right: 1em; width: calc(100% - 2em); } }