div#flash_notices { position: fixed; right: 0; z-index: 400000; width: 400px; top: 0; .flash.error { cursor: pointer; padding-right: 24px; &:before { content: fa-content($fa-var-times); position: absolute; right: 2*$default-padding; top: 11px; font-size: $small-font-size; font-family: 'Font Awesome 5 Free'; } } } div.flash { border-radius: $default-border-radius; opacity: 0.95; padding: 8px 8px 8px 30px; font-weight: bold; border-width: 1px; border-style: solid; z-index: 1000; margin: $default-margin $default-margin 2*$default-margin; position: relative; min-height: 2.6em; word-break: break-all; transition-property: opacity, transform; transition-duration: 0.4s; .icon { position: absolute; top: 10px; left: 8px; color: inherit; } &.dismissed { display: block; opacity: 0; transform: translate3d(0, -100%, 0); } &.notice { border-color: $success_border_color; color: $success_text_color; background-color: $success_background_color; } &.error { border-color: $error_border_color; color: $error_text_color; background-color: $error_background_color; } &.info { border-color: $info_border_color; color: $info_text_color; background-color: $info_background_color; } &.warn, &.warning, &.alert { border-color: $warning_border_color; color: $warning_text_color; background-color: $warning_background_color; } }