diff --git a/app/views/application/_flash.html.slim b/app/views/application/_flash.html.slim index 0f854179..2b8563a4 100644 --- a/app/views/application/_flash.html.slim +++ b/app/views/application/_flash.html.slim @@ -1,3 +1,3 @@ -#flash data-message-failure=t('shared.message_failure') +#flash.fixed_error_messages data-message-failure=t('shared.message_failure') - %w[alert danger info notice success warning].each do |severity| p.alert.flash class="alert-#{{'alert' => 'warning', 'notice' => 'success'}.fetch(severity, severity)}" id="flash-#{severity}" = flash[severity] diff --git a/lib/assets/stylesheets/flash.css.scss b/lib/assets/stylesheets/flash.css.scss index 1c805ebf..8d2899bf 100644 --- a/lib/assets/stylesheets/flash.css.scss +++ b/lib/assets/stylesheets/flash.css.scss @@ -1,3 +1,13 @@ .flash { display: none; } + +.fixed_error_messages { + position: fixed; + top: 0; + left: 0; + width: 100%; + padding-left: 10%; + padding-right: 10%; + padding-top: 2%; +}