Position pop-up messages more cleanly
This commit is contained in:
@ -1,5 +1,6 @@
|
|||||||
#flash.fixed_error_messages data-message-failure=t('shared.message_failure')
|
#flash-container
|
||||||
- %w[alert danger info notice success warning].each do |severity|
|
#flash.container.fixed_error_messages data-message-failure=t('shared.message_failure')
|
||||||
div.alert.flash class="alert-#{{'alert' => 'warning', 'notice' => 'success'}.fetch(severity, severity)}"
|
- %w[alert danger info notice success warning].each do |severity|
|
||||||
p id="flash-#{severity}" = flash[severity]
|
div.alert.flash class="alert-#{{'alert' => 'warning', 'notice' => 'success'}.fetch(severity, severity)}"
|
||||||
span.fa.fa-times
|
p id="flash-#{severity}" = flash[severity]
|
||||||
|
span.fa.fa-times
|
||||||
|
@ -32,8 +32,8 @@ html lang='en'
|
|||||||
li = link_to(t('shared.help.link'), '#modal-help', data: {toggle: 'modal'})
|
li = link_to(t('shared.help.link'), '#modal-help', data: {toggle: 'modal'})
|
||||||
= render('session')
|
= render('session')
|
||||||
.container data-controller=controller_name
|
.container data-controller=controller_name
|
||||||
= render('breadcrumbs')
|
|
||||||
= render('flash')
|
= render('flash')
|
||||||
|
= render('breadcrumbs')
|
||||||
- if (controller_name == "exercises" && action_name == "implement")
|
- if (controller_name == "exercises" && action_name == "implement")
|
||||||
.container-fluid
|
.container-fluid
|
||||||
= yield
|
= yield
|
||||||
|
@ -1,3 +1,8 @@
|
|||||||
|
#flash-container {
|
||||||
|
position: relative;
|
||||||
|
top: -21px;
|
||||||
|
}
|
||||||
|
|
||||||
.flash {
|
.flash {
|
||||||
display: none;
|
display: none;
|
||||||
|
|
||||||
@ -10,14 +15,10 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.fixed_error_messages {
|
.fixed_error_messages {
|
||||||
position: fixed;
|
position: absolute;
|
||||||
z-index: 1000;
|
z-index: 1000;
|
||||||
top: 20px;
|
padding: inherit;
|
||||||
left: 0;
|
|
||||||
width: 100%;
|
width: 100%;
|
||||||
padding-left: 10%;
|
|
||||||
padding-right: 10%;
|
|
||||||
padding-top: 0;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user