$bonusRightPadding: 20px; section.notifications { position: fixed; bottom: 10px; right: 10px; z-index: 100; .flash-message { width: 300px; transition: all 700ms cubic-bezier(0.68, -0.55, 0.265, 1.55); padding: 1rem; margin-bottom: 1rem; box-shadow: 1px 1px 4px 0px rgb(0, 0, 0, 0.1); position: relative; overflow: hidden; padding-right: $bonusRightPadding; &.alert-success { background-color: lighten($nomad-green, 50%); } &.alert-error { background-color: lighten($danger, 45%); } h3 { font-weight: bold; } span.close-button { position: absolute; top: 0; right: 0; padding: 10px; line-height: 100%; font-size: 1.5rem; cursor: pointer; } .alert-progress { width: 100%; border-radius: 3px; position: absolute; bottom: 0; left: 0; .alert-progressBar { background-color: $nomad-green; height: 2px; width: 0%; } } &.active { .alert-progress { .alert-progressBar { width: 100%; } } } .custom-action-button { width: calc(100% + $bonusRightPadding - 1rem); margin: 1.5rem 0 0; } } }